Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CompareCaptures(exp, act []*ReplayCapture) (uint64, error)
 - func CompareStateAtHeight(exp, act *state.State, height uint64) error
 - type Replay
 - func (re *Replay) Block(height uint64) (*ReplayCapture, error)
 - func (re *Replay) Blocks(startHeight, endHeight uint64) ([]*ReplayCapture, error)
 - func (re *Replay) Commit(height uint64) (*ReplayCapture, error)
 - func (re *Replay) LatestBlockchain() (*bcm.Blockchain, error)
 - func (re *Replay) LatestHeight() (uint64, error)
 - func (re *Replay) LoadAt(height uint64) (err error)
 
- type ReplayCapture
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareCaptures ¶ added in v0.28.0
func CompareCaptures(exp, act []*ReplayCapture) (uint64, error)
CompareCaptures of two independent replays
Types ¶
type Replay ¶ added in v0.23.3
type Replay struct {
	Explorer *bcm.BlockStore
	State    *state.State
	// contains filtered or unexported fields
}
    Replay is a kernel for state replaying
func NewReplay ¶ added in v0.23.3
func NewReplay(burrowDB, tmDB dbm.DB, genesisDoc *genesis.GenesisDoc) *Replay
func NewReplayFromDir ¶ added in v0.28.0
func NewReplayFromDir(genesisDoc *genesis.GenesisDoc, dbDir string) *Replay
func (*Replay) Block ¶ added in v0.23.3
func (re *Replay) Block(height uint64) (*ReplayCapture, error)
Block loads and commits a block
func (*Replay) Blocks ¶ added in v0.24.0
func (re *Replay) Blocks(startHeight, endHeight uint64) ([]*ReplayCapture, error)
Blocks iterates through the given range
func (*Replay) Commit ¶ added in v0.28.0
func (re *Replay) Commit(height uint64) (*ReplayCapture, error)
Commit block at height to state cache, saving a capture
func (*Replay) LatestBlockchain ¶ added in v0.28.0
func (re *Replay) LatestBlockchain() (*bcm.Blockchain, error)
func (*Replay) LatestHeight ¶ added in v0.28.0
type ReplayCapture ¶ added in v0.23.3
type ReplayCapture struct {
	Height        uint64
	AppHashBefore binary.HexBytes
	AppHashAfter  binary.HexBytes
	TxExecutions  []*exec.TxExecution
}
    func (*ReplayCapture) Compare ¶ added in v0.28.0
func (exp *ReplayCapture) Compare(act *ReplayCapture) error
Compare the app hashes of two block replays
func (*ReplayCapture) String ¶ added in v0.24.0
func (rc *ReplayCapture) String() string
 Click to show internal directories. 
   Click to hide internal directories.