state: move methods to funcs

This commit is contained in:
Ethan Buchman
2017-12-27 14:27:37 -05:00
parent 139eca0177
commit f55135578c
9 changed files with 299 additions and 295 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
cmn "github.com/tendermint/tmlibs/common"
)
@ -337,7 +338,7 @@ func BlockResults(heightPtr *int64) (*ctypes.ResultBlockResults, error) {
// load the results
state := consensusState.GetState()
results, err := state.LoadABCIResponses(height)
results, err := sm.LoadABCIResponses(state.DB(), height)
if err != nil {
return nil, err
}