Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkTransactionPool ¶
type NetworkTransactionPool struct { M sync.Mutex Transactions map[string]*TransactionState Expected int // Last time a transaction was sent LastSend time.Time // Prevents concurrent transaction send ExclusiveSend sync.Mutex }
NetworkTransactionPool is used locally to share transactions between providers under the same network
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New(name string, cfg *config.ProviderConfig, signerConfig *config.SignerServiceConfig, walletConfig *config.WalletConfig, txPool *NetworkTransactionPool) *Provider
type TransactionPool ¶
type TransactionPool map[string]*NetworkTransactionPool
TransactionPool is used locally to share transactions between providers under the same pool
type TransactionState ¶
type TransactionState struct { // Transaction hash Hash common.Hash // Mutex M sync.Mutex SentAt time.Time ProviderSource string FirstSeen time.Time // Map of providers that have seen this transaction, and when // Once all providers have seen the transaction it is removed from the pool SeenBy map[string]time.Time }
Click to show internal directories.
Click to hide internal directories.