diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-06 19:58:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-06 22:34:19 +0800 |
commit | 158d603528d2ba36b633a8f22a2bff8329f69717 (patch) | |
tree | 7e95ceca2b57686e766182b6e6d14fe10704dcf8 /core/gaspool.go | |
parent | 702bef8493f0f3486072f1a7593fa582a1fb53d0 (diff) | |
download | dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar.gz dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar.bz2 dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar.lz dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar.xz dexon-158d603528d2ba36b633a8f22a2bff8329f69717.tar.zst dexon-158d603528d2ba36b633a8f22a2bff8329f69717.zip |
consensus, core: drop all the legacy custom core error types
Diffstat (limited to 'core/gaspool.go')
-rw-r--r-- | core/gaspool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/gaspool.go b/core/gaspool.go index f1c64c97a..ef99908cf 100644 --- a/core/gaspool.go +++ b/core/gaspool.go @@ -35,7 +35,7 @@ func (gp *GasPool) AddGas(amount *big.Int) *GasPool { func (gp *GasPool) SubGas(amount *big.Int) error { i := (*big.Int)(gp) if i.Cmp(amount) < 0 { - return &GasLimitErr{Have: new(big.Int).Set(i), Want: amount} + return ErrGasLimitReached } i.Sub(i, amount) return nil |