Merge pull request #889 from harmony-ek/exit_gracefully_if_account_index_is_out_of_range

Do not panic upon out-of-range account index
pull/891/head
Eugene Kim 6 years ago committed by GitHub
commit 8f020cfb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      node/node.go

@ -206,7 +206,7 @@ func (node *Node) Blockchain() *core.BlockChain {
if err != nil { if err != nil {
err = ctxerror.New("cannot get shard chain", "shardID", shardID). err = ctxerror.New("cannot get shard chain", "shardID", shardID).
WithCause(err) WithCause(err)
panic(err) //ctxerror.Log15(utils.GetLogger().Crit, err) ctxerror.Log15(utils.GetLogger().Crit, err)
} }
return bc return bc
} }

Loading…
Cancel
Save