aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-06 17:54:11 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-06 18:43:05 +0800
commite6bb9c1cadd311475f54ed60630fc20eb2f54871 (patch)
tree60d3b8e8f0cfcf002a6838404f7de21ea1ef5c29 /core/state_transition.go
parentaa4502060b50733a3a82a0ab575eac0731cdb7ca (diff)
downloaddexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.gz
dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.tar.zst
dexon-e6bb9c1cadd311475f54ed60630fc20eb2f54871.zip
core, miner: removed vm errors from consensus err checking
Removed VM errors from the consensus errors. They now used for output only.
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 465000e87..5bcf6c45d 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -203,16 +203,23 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
glog.V(logger.Core).Infoln("Insufficient gas for creating code. Require", dataGas, "and have", self.gas)
}
}
+ glog.V(logger.Core).Infoln("VM create err:", err)
} else {
// Increment the nonce for the next transaction
self.state.SetNonce(sender.Address(), sender.Nonce()+1)
ret, err = vmenv.Call(sender, self.To().Address(), self.data, self.gas, self.gasPrice, self.value)
+ glog.V(logger.Core).Infoln("VM call err:", err)
}
if err != nil && IsValueTransferErr(err) {
return nil, nil, InvalidTxError(err)
}
+ // We aren't interested in errors here. Errors returned by the VM are non-consensus errors and therefor shouldn't bubble up
+ if err != nil {
+ err = nil
+ }
+
if vm.Debug {
vm.StdErrFormat(vmenv.StructLogs())
}