aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/block_processor.go')
-rw-r--r--core/block_processor.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index d59d7feca..349de85e0 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -19,6 +19,10 @@ import (
"gopkg.in/fatih/set.v0"
)
+type PendingBlockEvent struct {
+ Block *types.Block
+}
+
var statelogger = logger.NewLogger("BLOCK")
type EthManager interface {
@@ -154,6 +158,10 @@ done:
block.Reward = cumulativeSum
block.Header().GasUsed = totalUsedGas
+ if transientProcess {
+ go self.eventMux.Post(PendingBlockEvent{block})
+ }
+
return receipts, handled, unhandled, erroneous, err
}