We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae9e9ef + 98cbe13 commit b0fb48cCopy full SHA for b0fb48c
miner/worker.go
@@ -302,6 +302,17 @@ func (self *worker) wait() {
302
glog.V(logger.Error).Infoln("error writing block to chain", err)
303
continue
304
}
305
+
306
+ // update block hash since it is now available and not when the receipt/log of individual transactions were created
307
+ for _, r := range work.receipts {
308
+ for _, l := range r.Logs {
309
+ l.BlockHash = block.Hash()
310
+ }
311
312
+ for _, log := range work.state.Logs() {
313
+ log.BlockHash = block.Hash()
314
315
316
// check if canon block and write transactions
317
if stat == core.CanonStatTy {
318
// This puts transactions in a extra db for rpc
0 commit comments