MCPcopy Create free account
hub / github.com/CPChain/chain / InsertChain

Method InsertChain

consensus/consensus.go:69–69  ·  view source on GitHub ↗

InsertChain inserts blocks to chain, returns fail index and error

(chain types.Blocks)

Source from the content-addressed store, hash-verified

67
68 // InsertChain inserts blocks to chain, returns fail index and error
69 InsertChain(chain types.Blocks) (int, error)
70}
71
72// ChainReadWriter includes reader and writer

Callers 8

testForkFunction · 0.65
TestLastBlockFunction · 0.65
testReorgFunction · 0.65
CommitMethod · 0.65
ImportChainFunction · 0.65
insertBlocksMethod · 0.65

Implementers 2

BlockChaincore/blockchain.go
Dporconsensus/dpor/dpor.go

Calls

no outgoing calls

Tested by 5

testForkFunction · 0.52
TestLastBlockFunction · 0.52
testReorgFunction · 0.52