diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-12-23 17:28:11 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-12-23 17:28:11 +0800 |
commit | 89a32267f78497e53f89208c2c54f7a3011f7e8a (patch) | |
tree | 870befd9e4086864dff926224105c83fa1ec0880 /eth/api.go | |
parent | 115364b0a9838263c77fe195d7f586c8a295dad3 (diff) | |
download | dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar.gz dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar.bz2 dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar.lz dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar.xz dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.tar.zst dexon-89a32267f78497e53f89208c2c54f7a3011f7e8a.zip |
eth: fix miner start API to accept int, not hexint
Diffstat (limited to 'eth/api.go')
-rw-r--r-- | eth/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api.go b/eth/api.go index 6010d149c..9e25c3b2d 100644 --- a/eth/api.go +++ b/eth/api.go @@ -138,13 +138,13 @@ func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI { // Start the miner with the given number of threads. If threads is nil the number of // workers started is equal to the number of logical CPU's that are usable by this process. -func (s *PrivateMinerAPI) Start(threads *hexutil.Uint) (bool, error) { +func (s *PrivateMinerAPI) Start(threads *int) (bool, error) { s.e.StartAutoDAG() var err error if threads == nil { err = s.e.StartMining(runtime.NumCPU()) } else { - err = s.e.StartMining(int(*threads)) + err = s.e.StartMining(*threads) } return err == nil, err } |