From 7a26546b0d8b63b88accf30b4dcbc59b54b3908f Mon Sep 17 00:00:00 2001 From: Matt Curtis Date: Fri, 15 Sep 2023 10:53:19 +0100 Subject: [PATCH] add todo to wire in context --- go/host/l1/publisher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/host/l1/publisher.go b/go/host/l1/publisher.go index 5f0aa36854..e392ccffea 100644 --- a/go/host/l1/publisher.go +++ b/go/host/l1/publisher.go @@ -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()