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

Method SaveBlock

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

Source from the content-addressed store, hash-verified

76 LatestSnapshot(context.Context) (*state.Snapshot, uint64, error)
77
78 SaveBlock(context.Context, *legacy.Block) error
79 FinalizeBlock(context.Context, uint64) error
80 SaveSnapshot(context.Context, uint64, *state.Snapshot) error
81}

Callers 3

TestGetBlockFunction · 0.65
CommitAppliedBlockMethod · 0.65
fetchSnapshotFunction · 0.65

Implementers 2

MemStoreprotocol/prottest/memstore/memstore.go
Storecore/txdb/store.go

Calls

no outgoing calls

Tested by 1

TestGetBlockFunction · 0.52