aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-10 16:43:01 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-04-10 16:43:01 +0800
commitbfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4 (patch)
tree724676c86df67ae523cbfda2600e7ba466b2955d /eth/api.go
parentf32b72ca5d7c477e5f5d3ab0d5b6548bf3fdc139 (diff)
downloadgo-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.gz
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.bz2
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.lz
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.xz
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.tar.zst
go-tangerine-bfe5eb7f8c05c49563b0f1165f98d0a18f0fdbd4.zip
eth: accept transactions when starting CPU mining (#13882)
Diffstat (limited to 'eth/api.go')
-rw-r--r--eth/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api.go b/eth/api.go
index 947070515..0decd57ca 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -103,7 +103,7 @@ func (api *PublicMinerAPI) SubmitWork(nonce types.BlockNonce, solution, digest c
// result[2], 32 bytes hex encoded boundary condition ("target"), 2^256/difficulty
func (api *PublicMinerAPI) GetWork() ([3]string, error) {
if !api.e.IsMining() {
- if err := api.e.StartMining(); err != nil {
+ if err := api.e.StartMining(false); err != nil {
return [3]string{}, err
}
}
@@ -153,7 +153,7 @@ func (api *PrivateMinerAPI) Start(threads *int) error {
}
// Start the miner and return
if !api.e.IsMining() {
- return api.e.StartMining()
+ return api.e.StartMining(true)
}
return nil
}