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

Function TestTransactionQueueGlobalLimiting

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

Tests that if the transaction count belonging to multiple accounts go above some threshold, the higher transactions are dropped to prevent DOS attacks. 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

761// This logic should not hold for local transactions, unless the local tracking
762// mechanism is disabled.
763func TestTransactionQueueGlobalLimiting(t *testing.T) {
764 testTransactionQueueGlobalLimiting(t, false)
765}
766func TestTransactionQueueGlobalLimitingNoLocals(t *testing.T) {
767 testTransactionQueueGlobalLimiting(t, true)
768}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected