tendermint/proxy/state.go

16 lines
305 B
Go
Raw Normal View History

2016-08-17 22:28:08 -04:00
package proxy
2016-08-23 21:44:07 -04:00
import (
"github.com/tendermint/tendermint/types"
)
2016-08-17 22:28:08 -04:00
type State interface {
2016-08-23 21:44:07 -04:00
ReplayBlocks(*types.Header, types.PartSetHeader, AppConnConsensus, BlockStore) error
2016-08-17 22:28:08 -04:00
}
type BlockStore interface {
2016-08-23 21:44:07 -04:00
Height() int
LoadBlockMeta(height int) *types.BlockMeta
LoadBlock(height int) *types.Block
2016-08-17 22:28:08 -04:00
}