Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
add one common problem; code review updates
Browse files Browse the repository at this point in the history
Signed-off-by: Merlin Ran <[email protected]>
  • Loading branch information
merlinran committed Oct 13, 2021
1 parent 648e0db commit 1223805
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Problems can arise, especially when you are new to bidbot. Here are some common
* `--running-bytes-limit` to limit the total bytes bidbot processes in a period of time.
* `--sealing-sectors-limit` to pause bidding if the miner node has more than desired sectors in sealing.

1. We've seen a case when bidbot importing data long after winning the bids, it got errors like "normal shutdown of state machine" or "given data does not match expected commP ..." even though the real problem was the deal start epoch being exceeded. When in doubt, check your `lotus-miner` logs around that time for the real reason.

It is also suggested to set `--log-debug=true` and keep the logs when you want to seek help from Textile or the community.

## Contributing
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ var dealsListCmd = &cobra.Command{
}

var dealsShowCmd = &cobra.Command{
Use: "show <id>",
Use: "show <bid-id>",
Short: "Show details of one deal",
Long: `Show details of one deal, specified by the bid ID, which can be obtained by 'bidbot deals list'`,
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -548,9 +548,9 @@ var dealsShowCmd = &cobra.Command{
}

var downloadCmd = &cobra.Command{
Use: "download <cid> <uri>",
Use: "download <payload-cid> <data-uri>",
Short: "Download and write storage deal data to disk",
Long: `Downloads and writes storage deal data to disk by cid and uri.
Long: `Downloads and writes storage deal data to disk by the payload cid and data uri.
Deal data is written to BIDBOT_DEAL_DATA_DIRECTORY in CAR format.
`,
Expand Down
2 changes: 1 addition & 1 deletion service/lotusclient/lotusclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Client struct {

// New returns a new *LotusClient.
func New(maddr string, authToken string, marketMaddr string, marketAuthToken string,
connRetries int, fakeMode bool) (*Client, error) {
connRetries int, fakeMode bool) (*Client, error) {
fin := finalizer.NewFinalizer()
ctx, cancel := context.WithCancel(context.Background())
fin.Add(finalizer.NewContextCloser(cancel))
Expand Down

0 comments on commit 1223805

Please sign in to comment.