mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
This commit is contained in:
committed by
Péter Szilágyi
parent
d6efa69187
commit
2fbc454355
@@ -316,7 +316,9 @@ func (self *worker) wait() {
|
||||
for _, log := range work.state.Logs() {
|
||||
log.BlockHash = block.Hash()
|
||||
}
|
||||
self.currentMu.Lock()
|
||||
stat, err := self.chain.WriteBlockWithState(block, work.receipts, work.state)
|
||||
self.currentMu.Unlock()
|
||||
if err != nil {
|
||||
log.Error("Failed writing block to chain", "err", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user