Merge pull request #556 from jbhurat/missing-private-bloom-state

Writing private block bloom for miner
This commit is contained in:
Samer Falah 2018-11-07 17:52:01 +01:00 committed by GitHub
commit 134059e5f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -333,6 +333,12 @@ func (self *worker) wait() {
log.Error("Failed writing block to chain", "err", err)
continue
}
if err := core.WritePrivateBlockBloom(self.chainDb, block.NumberU64(), work.privateReceipts); err != nil {
log.Error("Failed writing private block bloom", "err", err)
continue
}
// check if canon block and write transactions
if stat == core.CanonStatTy {
// implicit by posting ChainHeadEvent