diff options
author | Determinant <[email protected]> | 2019-09-26 16:16:56 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-09-26 16:16:56 -0400 |
commit | a96fc7a942fb6f0a9da5b5bf9c84a98af42a24dc (patch) | |
tree | 8cb685aa6df55f15758e93ffe24b6c5d075859a5 /coreth.go | |
parent | 2e0b38c332a3ab4e11b97a38ff6d8427a3d96215 (diff) |
remove 1s limit from block generation; more API
Diffstat (limited to 'coreth.go')
-rw-r--r-- | coreth.go | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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) { |