Return proper error

This commit is contained in:
obscuren
2015-03-13 17:47:11 +01:00
parent a0266489b4
commit 03403399fc
4 changed files with 7 additions and 1 deletions

View File

@ -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)
}