aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-14 00:47:11 +0800
committerobscuren <geffobscura@gmail.com>2015-03-14 00:47:11 +0800
commit03403399fcd4abf106a098f15bc7186197bd09bc (patch)
treeb5ebbf0330c6cc2d6aff3100511c4843c2d8593a /core/state_transition.go
parenta0266489b4592af751d87c59087ed25a32899de6 (diff)
downloaddexon-03403399fcd4abf106a098f15bc7186197bd09bc.tar.gz
dexon-03403399fcd4abf106a098f15bc7186197bd09bc.tar.zst
dexon-03403399fcd4abf106a098f15bc7186197bd09bc.zip
Return proper error
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index ee99ec7aa..f49aed874 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -148,6 +148,9 @@ func (self *StateTransition) preCheck() (err error) {
// Pre-pay gas / Buy gas of the coinbase account
if err = self.BuyGas(); err != nil {
+ if state.IsGasLimitErr(err) {
+ return err
+ }
return InvalidTxError(err)
}