diff --git a/chain/wallet/wallet.go b/chain/wallet/wallet.go index 337ac1e89..a94ba69ef 100644 --- a/chain/wallet/wallet.go +++ b/chain/wallet/wallet.go @@ -5,6 +5,8 @@ import ( "strings" "github.com/filecoin-project/go-bls-sigs" + "github.com/filecoin-project/go-lotus/node/repo" + "github.com/minio/blake2b-simd" "golang.org/x/xerrors" @@ -71,6 +73,9 @@ func (w *Wallet) findKey(addr address.Address) (*Key, error) { } ki, err := w.keystore.Get(KNamePrefix + addr.String()) if err != nil { + if xerrors.Is(err, repo.ErrKeyNotFound) { + return nil, nil + } return nil, xerrors.Errorf("getting from keystore: %w", err) } k, err = NewKey(ki)