Merge pull request #345 from nguyenbatam/add_broadcast_log_when_insert_block

broadcast log when insert block
This commit is contained in:
Tuna 2018-12-12 15:38:24 +07:00 committed by GitHub
commit a3ce354e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,7 @@ func (p *StateProcessor) ProcessBlockNoValidator(cBlock *CalculatedBlock, stated
return nil, nil, 0, ErrStopPreparingBlock
}
receipts[i] = receipt
allLogs = append(allLogs, receipt.Logs...)
}
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
p.engine.Finalize(p.bc, header, statedb, block.Transactions(), block.Uncles(), receipts)