MCPcopy
hub / github.com/bnb-chain/bsc / testAddBalance

Function testAddBalance

core/txpool/legacypool/legacypool_test.go:310–314  ·  view source on GitHub ↗
(pool *LegacyPool, addr common.Address, amount *big.Int)

Source from the content-addressed store, hash-verified

308}
309
310func testAddBalance(pool *LegacyPool, addr common.Address, amount *big.Int) {
311 pool.mu.Lock()
312 pool.currentState.AddBalance(addr, amount)
313 pool.mu.Unlock()
314}
315
316func testSetNonce(pool *LegacyPool, addr common.Address, nonce uint64) {
317 pool.mu.Lock()

Callers 15

TestInvalidTransactionsFunction · 0.85
TestQueueFunction · 0.85
TestQueue2Function · 0.85
TestNegativeValueFunction · 0.85
TestMissingNonceFunction · 0.85
TestNonceRecoveryFunction · 0.85
TestDroppingFunction · 0.85
TestPostponingFunction · 0.85
TestGapFillingFunction · 0.85
TestQueueAccountLimitingFunction · 0.85
testQueueGlobalLimitingFunction · 0.85
testQueueTimeLimitingFunction · 0.85

Calls 3

LockMethod · 0.80
AddBalanceMethod · 0.65
UnlockMethod · 0.45

Tested by

no test coverage detected