aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/coreth.go b/coreth.go
index f3180e6..4bb0ae8 100644
--- a/coreth.go
+++ b/coreth.go
@@ -96,8 +96,20 @@ func (self *ETHChain) SetOnSeal(cb func(*types.Block) error) {
self.cb.OnSeal = cb
}
-func (self *ETHChain) SetOnSealMiner(cb func(*types.Block) error) {
- self.mcb.OnSeal = cb
+func (self *ETHChain) SetOnSealHash(cb func(*types.Header)) {
+ self.cb.OnSealHash = cb
+}
+
+func (self *ETHChain) SetOnSealFinish(cb func(*types.Block) error) {
+ self.mcb.OnSealFinish = cb
+}
+
+func (self *ETHChain) SetOnHeaderNew(cb func(*types.Header)) {
+ self.mcb.OnHeaderNew = cb
+}
+
+func (self *ETHChain) SetOnSealDrop(cb func(*types.Block)) {
+ self.mcb.OnSealDrop = cb
}
func (self *ETHChain) SetOnAPIs(cb dummy.OnAPIsCallbackType) {