MCPcopy Create free account
hub / github.com/DNAProject/DNA / AddBlock

Method AddBlock

core/store/store.go:47–47  ·  view source on GitHub ↗
(block *types.Block, stateMerkleRoot common.Uint256)

Source from the content-addressed store, hash-verified

45 Close() error
46 AddHeaders(headers []*types.Header) error
47 AddBlock(block *types.Block, stateMerkleRoot common.Uint256) error
48 ExecuteBlock(b *types.Block) (ExecuteResult, error) // called by consensus
49 SubmitBlock(b *types.Block, exec ExecuteResult) error // called by consensus
50 GetStateMerkleRoot(height uint32) (result common.Uint256, err error)

Callers 9

saveBlockMethod · 0.65
SaveBlockMethod · 0.65
AddBlockMethod · 0.65
execTxCheckResFunction · 0.65
ReceiveMethod · 0.65
setBlockSealedMethod · 0.65
TestAddBlockFunction · 0.65
ReceiveMethod · 0.65

Implementers 1

LedgerStoreImpcore/store/ledgerstore/ledger_store.go

Calls

no outgoing calls

Tested by 1

TestAddBlockFunction · 0.52