aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-12-22 19:49:16 +0800
committerGitHub <noreply@github.com>2016-12-22 19:49:16 +0800
commit115364b0a9838263c77fe195d7f586c8a295dad3 (patch)
tree7dab84f57fcd372389377df4070ea057922e1d21 /les
parent6d15d00ac4b5f162737a27dfa6f8e9976383776e (diff)
parent12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4 (diff)
downloaddexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar.gz
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar.bz2
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar.lz
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar.xz
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.tar.zst
dexon-115364b0a9838263c77fe195d7f586c8a295dad3.zip
Merge pull request #3475 from fjl/rpc-hex-improvements
rpc: remove HexBytes, HexNumber
Diffstat (limited to 'les')
-rw-r--r--les/backend.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/les/backend.go b/les/backend.go
index 726664227..d21d5a98c 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -26,6 +26,7 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/compiler"
+ "github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
@@ -135,8 +136,8 @@ func (s *LightDummyAPI) Coinbase() (common.Address, error) {
}
// Hashrate returns the POW hashrate
-func (s *LightDummyAPI) Hashrate() *rpc.HexNumber {
- return rpc.NewHexNumber(0)
+func (s *LightDummyAPI) Hashrate() hexutil.Uint {
+ return 0
}
// Mining returns an indication if this node is currently mining.