Bugfix: !online -> online
Caused panic.
Juan Batiz-Benet committed
Sep 30, 2014 at 11:34 UTC
c7af4a6fa21e091f5aa636941f78e946070fbb7b
1 file changed
+1
-1
core/core.go
+1
-1
@@ -183,7 +183,7 @@ func initIdentity(cfg *config.Config, online bool) (*peer.Peer, error) {
183
)
184
185
// when not online, don't need to parse private keys (yet)
186
- if !online {
186
+ if online {
187
skb, err := base64.StdEncoding.DecodeString(cfg.Identity.PrivKey)
188
if err != nil {
189
return nil, err