Short circuit handshake if default account does not exist.
This commit is contained in:
parent
a6e0f3bc2a
commit
3e2f67fda7
1 changed files with 3 additions and 1 deletions
|
@ -581,7 +581,9 @@ func Handshake(rpc RPCConn) error {
|
|||
// track recently-seen blocks.
|
||||
a, err := accountstore.Account("")
|
||||
if err != nil {
|
||||
return err
|
||||
// No account yet is not a handshake error, but means our
|
||||
// handshake is done.
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO(jrick): if height is less than the earliest-saved block
|
||||
|
|
Loading…
Add table
Reference in a new issue