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

Function TestTransactionQueueTimeLimiting

core/tx_pool_test.go:853–853  ·  view source on GitHub ↗

Tests that if an account remains idle for a prolonged amount of time, any non-executable transactions queued up are dropped to prevent wasting resources on shuffling them around. This logic should not hold for local transactions, unless the local tracking mechanism is disabled.

(t *testing.T)

Source from the content-addressed store, hash-verified

851// This logic should not hold for local transactions, unless the local tracking
852// mechanism is disabled.
853func TestTransactionQueueTimeLimiting(t *testing.T) { testTransactionQueueTimeLimiting(t, false) }
854func TestTransactionQueueTimeLimitingNoLocals(t *testing.T) { testTransactionQueueTimeLimiting(t, true) }
855
856func testTransactionQueueTimeLimiting(t *testing.T, nolocals bool) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected