mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-16 04:43:12 +00:00
chore: more debug message
This commit is contained in:
parent
9557ed96bb
commit
afcbf0a544
@ -155,7 +155,7 @@ method validateRoot*(
|
||||
first = false
|
||||
rootsStr.add("]")
|
||||
debug "Valid Merkle roots in validateRoot", roots = rootsStr, root_to_validate = root
|
||||
|
||||
|
||||
# Check if the root is in the valid roots queue
|
||||
if g.indexOfRoot(root) >= 0:
|
||||
return true
|
||||
|
||||
@ -103,6 +103,12 @@ proc fetchMerkleProofElements*(
|
||||
let membershipIndexUint256 = stuint(membershipIndex, 256)
|
||||
let index40 = stuint(membershipIndex, 40)
|
||||
|
||||
debug "------ checking if membership index is validity ------",
|
||||
membershipIndex = membershipIndex,
|
||||
membershipIndexUint256 = membershipIndexUint256,
|
||||
currentCommitmentIndex = currentCommitmentIndex,
|
||||
index40 = index40
|
||||
|
||||
if membershipIndexUint256 >= currentCommitmentIndex:
|
||||
return err(
|
||||
"Invalid membership index: " & $membershipIndex &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user