aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-09-26 16:16:56 -0400
committerDeterminant <[email protected]>2019-09-26 16:16:56 -0400
commita96fc7a942fb6f0a9da5b5bf9c84a98af42a24dc (patch)
tree8cb685aa6df55f15758e93ffe24b6c5d075859a5 /coreth.go
parent2e0b38c332a3ab4e11b97a38ff6d8427a3d96215 (diff)
remove 1s limit from block generation; more API
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) {