mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
This commit is contained in:
parent
d6efa69187
commit
2fbc454355
@ -316,7 +316,9 @@ func (self *worker) wait() {
|
|||||||
for _, log := range work.state.Logs() {
|
for _, log := range work.state.Logs() {
|
||||||
log.BlockHash = block.Hash()
|
log.BlockHash = block.Hash()
|
||||||
}
|
}
|
||||||
|
self.currentMu.Lock()
|
||||||
stat, err := self.chain.WriteBlockWithState(block, work.receipts, work.state)
|
stat, err := self.chain.WriteBlockWithState(block, work.receipts, work.state)
|
||||||
|
self.currentMu.Unlock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed writing block to chain", "err", err)
|
log.Error("Failed writing block to chain", "err", err)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user