Skip to content

Commit

Permalink
Merge pull request #556 from jbhurat/missing-private-bloom-state
Browse files Browse the repository at this point in the history
Writing private block bloom for miner
  • Loading branch information
jpmsam authored Nov 7, 2018
2 parents 347f6fc + a3ec05d commit 134059e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 134059e

Please sign in to comment.