Short circuit handshake if default account does not exist.

This commit is contained in:
Josh Rickmar 2014-01-09 19:20:11 -05:00
parent a6e0f3bc2a
commit 3e2f67fda7

View file

@ -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