Log accepted blocks via submitblock.

ok @davecgh
This commit is contained in:
David Hill 2014-07-14 11:08:07 -04:00
parent e495dcbc2f
commit 2f0cab1a48

View file

@ -2959,6 +2959,10 @@ func handleSubmitBlock(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{})
return fmt.Sprintf("rejected: %s", err.Error()), nil
}
blockSha, err := block.Sha()
if err == nil {
rpcsLog.Infof("Accepted block %s via submitblock", blockSha)
}
return nil, nil
}