Enable txindex=1 as default #37
1 changed files with 1 additions and 0 deletions
|
@ -3882,6 +3882,7 @@ func handleSubmitBlock(s *rpcServer, cmd interface{}, closeChan <-chan struct{})
|
||||||
// nodes. This will in turn relay it to the network like normal.
|
// nodes. This will in turn relay it to the network like normal.
|
||||||
_, err = s.cfg.SyncMgr.SubmitBlock(block, blockchain.BFNone)
|
_, err = s.cfg.SyncMgr.SubmitBlock(block, blockchain.BFNone)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
rpcsLog.Infof("Rejected block %s via submitblock: %s", block.Hash(), err)
|
||||||
return fmt.Sprintf("rejected: %s", err.Error()), nil
|
return fmt.Sprintf("rejected: %s", err.Error()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue