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

Function newAccountSet

core/tx_pool.go:1294–1299  ·  view source on GitHub ↗

newAccountSet creates a new address set with an associated signer for sender derivations.

(signer types.Signer)

Source from the content-addressed store, hash-verified

1292// newAccountSet creates a new address set with an associated signer for sender
1293// derivations.
1294func newAccountSet(signer types.Signer) *accountSet {
1295 return &accountSet{
1296 accounts: make(map[common.Address]struct{}),
1297 signer: signer,
1298 }
1299}
1300
1301// contains checks if a given address is contained within the set.
1302func (as *accountSet) contains(addr common.Address) bool {

Callers 1

NewTxPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected