polyswarmclient.ethereum.transaction.noncemanager

Module Contents

polyswarmclient.ethereum.transaction.noncemanager.logger[source]
class polyswarmclient.ethereum.transaction.noncemanager.NonceManager(client, chain)[source]

Manages the nonce for some Ethereum chain

static find_gaps(nonces)[source]

Finds any gaps between base nonce and the last nonce in the given nonces list.

Parameters

nonces (list[int]) – list of nonces being checked

Returns

(list[int]): Any missing nonces between base_nonce and the last given nonce