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

Method Flatten

core/tx_list.go:413–415  ·  view source on GitHub ↗

Flatten creates a nonce-sorted slice of transactions based on the loosely sorted internal representation. The result of the sorting is cached in case it's requested again before any modifications are made to the contents.

()

Source from the content-addressed store, hash-verified

411// sorted internal representation. The result of the sorting is cached in case
412// it's requested again before any modifications are made to the contents.
413func (l *txList) Flatten() types.Transactions {
414 return l.txs.Flatten()
415}
416
417// AllBefore returns a batch of transactions added before the given time.
418func (l *txList) AllBefore(t time.Time) []types.Transactions {

Callers 6

loopMethod · 0.45
resetMethod · 0.45
ContentMethod · 0.45
PendingMethod · 0.45
localMethod · 0.45
promoteExecutablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected