aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-08-03 17:16:53 -0400
committerDeterminant <[email protected]>2020-08-03 17:16:53 -0400
commitc73ba009031126e16da6999468851b33f93e8005 (patch)
tree961111c84794cf3807946d073bcef36ec8ba6025 /coreth.go
parent746a107e2a7bb1f66049240d320e29d0a0536eae (diff)
allow using extra binary data in a block for state transition
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/coreth.go b/coreth.go
index 099bd08..c8a0e41 100644
--- a/coreth.go
+++ b/coreth.go
@@ -143,6 +143,10 @@ func (self *ETHChain) SetOnFinalizeAndAssemble(cb dummy.OnFinalizeAndAssembleCal
self.cb.OnFinalizeAndAssemble = cb
}
+func (self *ETHChain) SetOnExtraStateChange(cb dummy.OnExtraStateChangeType) {
+ self.cb.OnExtraStateChange = cb
+}
+
func (self *ETHChain) SetOnQueryAcceptedBlock(cb func() *types.Block) {
self.bcb.OnQueryAcceptedBlock = cb
}