chore: more debug message

This commit is contained in:
darshankabariya 2025-04-04 19:01:53 +05:30
parent 9557ed96bb
commit afcbf0a544
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 &