diff --git a/core/state_quota.go b/core/state_quota.go index 750c855f50..008223470c 100644 --- a/core/state_quota.go +++ b/core/state_quota.go @@ -28,6 +28,10 @@ import ( "math/big" ) +var ( + big0 = big.NewInt(0) +) + func (st *StateTransition) preQuotaCheck() error { if st.uploading() { // log.Debug("state_transition", "uploading", st.uploading(), "st.state.GetNum(st.to())", st.state.GetNum(st.to())) diff --git a/core/state_transition.go b/core/state_transition.go index ec94cce29b..2499e4798c 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -91,9 +91,6 @@ The state transitioning model does all the necessary work to work out a valid ne 5) Run Script section 6) Derive new state root */ -var ( - big0 = big.NewInt(0) -) // StateTransition is the state of current tx in vm type StateTransition struct {