Skip to content

Commit 5983c85

Browse files
committed
use trace for logging and update comments
1 parent 90b8678 commit 5983c85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

waku/waku_rln_relay/group_manager/on_chain/group_manager.nim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,15 @@ method register*(
230230
var gasPrice: int
231231
g.retryWrapper(gasPrice, "Failed to get gas price"):
232232
let fetchedGasPrice = uint64(await ethRpc.provider.eth_gasPrice())
233-
# Check for overflow when multiplying by 2
233+
## Multiply by 2 to speed up the transaction
234+
## Check for overflow when casting to int
234235
if fetchedGasPrice > uint64(high(int) div 2):
235-
debug "Gas price overflow detected, capping at maximum int value",
236+
trace "Gas price overflow detected, capping at maximum int value",
236237
fetchedGasPrice = fetchedGasPrice, maxInt = high(int)
237238
high(int)
238239
else:
239240
let calculatedGasPrice = int(fetchedGasPrice) * 2
240-
debug "Gas price calculated",
241+
trace "Gas price calculated",
241242
fetchedGasPrice = fetchedGasPrice, gasPrice = calculatedGasPrice
242243
calculatedGasPrice
243244
let idCommitmentHex = identityCredential.idCommitment.inHex()

0 commit comments

Comments
 (0)