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

Method Init

txnpool/common/transaction_pool.go:58–62  ·  view source on GitHub ↗

Init creates a new transaction pool to gather.

()

Source from the content-addressed store, hash-verified

56
57// Init creates a new transaction pool to gather.
58func (tp *TXPool) Init() {
59 tp.Lock()
60 defer tp.Unlock()
61 tp.txList = make(map[common.Uint256]*TXEntry)
62}
63
64// AddTxList adds a valid transaction to the transaction pool. If the
65// transaction is already in the pool, just return false. Parameter

Callers 4

TestTxPoolFunction · 0.95
Test_RCVFunction · 0.45
TestMainFunction · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestTxPoolFunction · 0.76
Test_RCVFunction · 0.36
TestMainFunction · 0.36