From 3e2f67fda7231a226cb863342cc28fdb44c90f8c Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 9 Jan 2014 19:20:11 -0500 Subject: [PATCH] Short circuit handshake if default account does not exist. --- sockets.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sockets.go b/sockets.go index e8bbb4e..0d23a01 100644 --- a/sockets.go +++ b/sockets.go @@ -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