burrow: github.com/hyperledger/burrow/forensics Index | Files | Directories

package forensics

import "github.com/hyperledger/burrow/forensics"

Index

Package Files

capture.go replay.go

func CompareCaptures Uses

func CompareCaptures(exp, act []*ReplayCapture) (uint64, error)

CompareCaptures of two independent replays

func CompareStateAtHeight Uses

func CompareStateAtHeight(exp, act *state.State, height uint64) error

CompareStateAtHeight of two replays

type Replay Uses

type Replay struct {
    Src *Source
    Dst *Source
}

Replay is a kernel for state replaying

func NewReplay Uses

func NewReplay(src, dst *Source) *Replay

func (*Replay) Block Uses

func (re *Replay) Block(height uint64) (*ReplayCapture, error)

Block loads and commits a block

func (*Replay) Blocks Uses

func (re *Replay) Blocks(startHeight, endHeight uint64) ([]*ReplayCapture, error)

Blocks iterates through the given range

func (*Replay) Commit Uses

func (re *Replay) Commit(height uint64) (*ReplayCapture, error)

Commit block at height to state cache, saving a capture

type ReplayCapture Uses

type ReplayCapture struct {
    Height        uint64
    AppHashBefore binary.HexBytes
    AppHashAfter  binary.HexBytes
    TxExecutions  []*exec.TxExecution
}

func (*ReplayCapture) Compare Uses

func (exp *ReplayCapture) Compare(act *ReplayCapture) error

Compare the app hashes of two block replays

func (*ReplayCapture) String Uses

func (rc *ReplayCapture) String() string

type Source Uses

type Source struct {
    Explorer *bcm.BlockStore
    State    *state.State
    // contains filtered or unexported fields
}

Source is a kernel for tracking state

func NewSource Uses

func NewSource(burrowDB, tmDB dbm.DB, genesisDoc *genesis.GenesisDoc) *Source

func NewSourceFromDir Uses

func NewSourceFromDir(genesisDoc *genesis.GenesisDoc, dbDir string) *Source

func NewSourceFromGenesis Uses

func NewSourceFromGenesis(genesisDoc *genesis.GenesisDoc) *Source

func (*Source) LatestBlockchain Uses

func (src *Source) LatestBlockchain() (*bcm.Blockchain, error)

func (*Source) LatestHeight Uses

func (src *Source) LatestHeight() (uint64, error)

func (*Source) LoadAt Uses

func (src *Source) LoadAt(height uint64) (err error)

LoadAt height

Directories

PathSynopsis
storage

Package forensics imports 23 packages (graph) and is imported by 4 packages. Updated 2020-05-03. Refresh now. Tools for package owners.