Skip to content

Commit

Permalink
minor error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jan 30, 2024
1 parent 7a98c69 commit 467c56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethereum/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (e *Ethereum) attemptBroadcast(

response, nonceErr := messageTransmitter.UsedNonces(co, [32]byte(crypto.Keccak256(key)))
if nonceErr != nil {
logger.Debug("Error querying whether nonce was used. Continuing...")
logger.Debug("Error querying whether nonce was used. Continuing...", "error:", nonceErr)
} else {
fmt.Printf("received used nonce response: %d\n", response)
if response.Uint64() == uint64(1) {
Expand Down
3 changes: 2 additions & 1 deletion noble/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (n *Noble) StartListener(
}
}
case <-ctx.Done():
fmt.Println("sup here")
timer.Stop()
return
}
Expand All @@ -95,7 +96,7 @@ func (n *Noble) StartListener(
block := <-blockQueue
res, err := n.cc.RPCClient.TxSearch(ctx, fmt.Sprintf("tx.height=%d", block), false, nil, nil, "")
if err != nil {
logger.Debug(fmt.Sprintf("unable to query Noble block %d", block))
logger.Debug(fmt.Sprintf("unable to query Noble block %d", block), "error:", err)
blockQueue <- block
}

Expand Down

0 comments on commit 467c56f

Please sign in to comment.