diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-15 00:59:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 00:59:00 +0800 |
commit | a973d1d5233bbd36cbaed0b7235311d4cd529580 (patch) | |
tree | 61ed1bd31a9c2a2e6a052a122a737deaee70c6cb /miner/miner.go | |
parent | 15a609d5d6613e37e819975ceba01cb5ba735242 (diff) | |
parent | c12f4df910e2da1cc5dd28c5c4bbe2d8721e1057 (diff) | |
download | dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar.gz dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar.bz2 dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar.lz dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar.xz dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.tar.zst dexon-a973d1d5233bbd36cbaed0b7235311d4cd529580.zip |
Merge pull request #3674 from obscuren/gaz64
params: core, core/vm, miner: 64bit gas instructions
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/miner.go b/miner/miner.go index 61cd3e049..83059f4b1 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -171,7 +171,7 @@ func (self *Miner) HashRate() (tot int64) { } func (self *Miner) SetExtra(extra []byte) error { - if uint64(len(extra)) > params.MaximumExtraDataSize.Uint64() { + if uint64(len(extra)) > params.MaximumExtraDataSize { return fmt.Errorf("Extra exceeds max length. %d > %v", len(extra), params.MaximumExtraDataSize) } self.worker.setExtra(extra) |