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

Method Cap

core/tx_list.go:369–371  ·  view source on GitHub ↗

Cap places a hard limit on the number of items, returning all transactions exceeding that limit.

(threshold int)

Source from the content-addressed store, hash-verified

367// Cap places a hard limit on the number of items, returning all transactions
368// exceeding that limit.
369func (l *txList) Cap(threshold int) types.Transactions {
370 return l.txs.Cap(threshold)
371}
372
373// Remove deletes a transaction from the maintained list, returning whether the
374// transaction was found, and also returning any transaction invalidated due to

Callers 4

SetGasPriceMethod · 0.45
promoteExecutablesMethod · 0.45
demoteUnexecutablesMethod · 0.45
WriteBlockWithStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected