mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Log accepted blocks via submitblock.
ok @davecgh
This commit is contained in:
parent
e495dcbc2f
commit
2f0cab1a48
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user