aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2017-01-13 07:37:23 +0800
committerGitHub <noreply@github.com>2017-01-13 07:37:23 +0800
commitc5df37c1119107ddcc517127b3bd7c2ab4e3649f (patch)
tree22b72545e83ab83ddab5c531d46bdcffc8b8ae59 /eth
parente0ceeab0d111ada7d847c83992d2ff3128bfb959 (diff)
downloaddexon-c5df37c1119107ddcc517127b3bd7c2ab4e3649f.tar.gz
dexon-c5df37c1119107ddcc517127b3bd7c2ab4e3649f.tar.zst
dexon-c5df37c1119107ddcc517127b3bd7c2ab4e3649f.zip
eth: accept leading zeros for nonce parameter of submitWork (#3558)
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api.go b/eth/api.go
index d798c196e..023e9a9bb 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -96,8 +96,8 @@ func (s *PublicMinerAPI) Mining() bool {
// SubmitWork can be used by external miner to submit their POW solution. It returns an indication if the work was
// accepted. Note, this is not an indication if the provided work was valid!
-func (s *PublicMinerAPI) SubmitWork(nonce hexutil.Uint64, solution, digest common.Hash) bool {
- return s.agent.SubmitWork(uint64(nonce), digest, solution)
+func (s *PublicMinerAPI) SubmitWork(nonce types.BlockNonce, solution, digest common.Hash) bool {
+ return s.agent.SubmitWork(nonce, digest, solution)
}
// GetWork returns a work package for external miner. The work package consists of 3 strings