core: fix comment typo (#17236)

This commit is contained in:
Wenbiao Zheng 2018-07-24 18:17:12 +08:00 committed by Péter Szilágyi
parent 21c059b67e
commit d0082bb7ec

View File

@ -35,7 +35,7 @@ var (
The State Transitioning Model The State Transitioning Model
A state transition is a change made when a transaction is applied to the current world state A state transition is a change made when a transaction is applied to the current world state
The state transitioning model does all all the necessary work to work out a valid new state root. The state transitioning model does all the necessary work to work out a valid new state root.
1) Nonce handling 1) Nonce handling
2) Pre pay gas 2) Pre pay gas
@ -178,8 +178,8 @@ func (st *StateTransition) preCheck() error {
} }
// TransitionDb will transition the state by applying the current message and // TransitionDb will transition the state by applying the current message and
// returning the result including the the used gas. It returns an error if it // returning the result including the used gas. It returns an error if failed.
// failed. An error indicates a consensus issue. // An error indicates a consensus issue.
func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bool, err error) { func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bool, err error) {
if err = st.preCheck(); err != nil { if err = st.preCheck(); err != nil {
return return