Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Major = "0" //
View Source
var Minor = "2" // replay refactor
View Source
var Revision = "2" // validation -> commit
View Source
var Spec = "1" // async
kind of arbitrary
Functions ¶
This section is empty.
Types ¶
type Handshaker ¶
type Handshaker struct {
// contains filtered or unexported fields
}
func NewHandshaker ¶
func NewHandshaker(stateDB dbm.DB, state sm.State, store types.BlockStore) *Handshaker
func (*Handshaker) Handshake ¶
func (h *Handshaker) Handshake(proxyApp proxy.AppConns) error
TODO: retry the handshake/replay if it fails ?
func (*Handshaker) NBlocks ¶
func (h *Handshaker) NBlocks() int
func (*Handshaker) ReplayBlocks ¶
func (h *Handshaker) ReplayBlocks(state sm.State, appHash []byte, appBlockHeight int64, proxyApp proxy.AppConns) ([]byte, error)
Replay all blocks since appBlockHeight and ensure the result matches the current state. Returns the final AppHash or an error
func (*Handshaker) SetLogger ¶
func (h *Handshaker) SetLogger(l log.Logger)
Click to show internal directories.
Click to hide internal directories.