MCPcopy Index your code
hub / github.com/chain/txvm / SaveBlock

Method SaveBlock

protocol/protocol.go:104–104  ·  view source on GitHub ↗
(context.Context, *bc.Block)

Source from the content-addressed store, hash-verified

102 LatestSnapshot(context.Context) (*state.Snapshot, error)
103
104 SaveBlock(context.Context, *bc.Block) error
105 FinalizeHeight(context.Context, uint64) error
106 SaveSnapshot(context.Context, *state.Snapshot) error
107}

Callers 4

TestGetBlockFunction · 0.65
CommitAppliedBlockMethod · 0.65
CommitBlockMethod · 0.65

Implementers 1

MemStoreprotocol/prottest/memstore/memstore.go

Calls

no outgoing calls

Tested by 2

TestGetBlockFunction · 0.52