Skip to content

Commit

Permalink
add todo to wire in context
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Sep 15, 2023
1 parent 5c372db commit 7a26546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/host/l1/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func (p *Publisher) FetchLatestPeersList() ([]string, error) {
// - This method will increment the wallet nonce only if the transaction is successfully broadcast
// - This method will continue to resend the tx using latest gas price until it is successfully broadcast or the L1 is unavailable/this service is shutdown
// - **ONLY** the L1 publisher service is publishing transactions for this wallet (to avoid nonce conflicts)
// todo (@matt) this method should take a context so we can try to cancel if the tx is no longer required
func (p *Publisher) publishTransaction(tx types.TxData) error {
// the nonce to be used for this tx attempt
nonce := p.hostWallet.GetNonceAndIncrement()
Expand Down

0 comments on commit 7a26546

Please sign in to comment.