aboutsummaryrefslogtreecommitdiff
path: root/miner
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-17 03:08:39 -0400
committerDeterminant <[email protected]>2020-09-17 03:08:39 -0400
commitaedd4b46cdc0a48c1b06a3e920bf57f8c28d401d (patch)
tree2614d9060c915cb368828e76c4a2d9a2bc20c61f /miner
parent8a12d92f6460bc6caa1217cbfadb7799670c3b1c (diff)
fix the block completion race
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index e8e59a4..bbe704f 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -135,3 +135,7 @@ func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscript
func (miner *Miner) GenBlock() {
miner.worker.genBlock()
}
+
+func (miner *Miner) GetWorkerMux() *event.TypeMux {
+ return miner.worker.mux
+}