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

Function buildTestBlockPool

consensus/vbft/block_pool_test.go:37–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35)
36
37func buildTestBlockPool(t *testing.T) (*BlockPool, error) {
38 store := newTestChainStore(t)
39 return newBlockPool(nil, 64, store)
40}
41
42func buildTestBlock(t *testing.T, lastBlock *types.Block, lgr *ledger.Ledger) (*Block, error) {
43 timestamp := uint32(time.Now().Unix())

Callers 1

TestAddBlockFunction · 0.85

Calls 2

newTestChainStoreFunction · 0.85
newBlockPoolFunction · 0.85

Tested by

no test coverage detected