mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 08:23:08 +00:00
chore: update merkleProof everytime
This commit is contained in:
parent
b2a2aa286f
commit
f9536b1e81
@ -233,11 +233,10 @@ proc trackRootChanges*(g: OnchainGroupManager) {.async.} =
|
||||
while true:
|
||||
let rootUpdated = await g.updateRoots()
|
||||
|
||||
if rootUpdated:
|
||||
let proofResult = await g.fetchMerkleProofElements()
|
||||
if proofResult.isErr():
|
||||
error "Failed to fetch Merkle proof", error = proofResult.error
|
||||
g.merkleProofCache = proofResult.get()
|
||||
let proofResult = await g.fetchMerkleProofElements()
|
||||
if proofResult.isErr():
|
||||
error "Failed to fetch Merkle proof", error = proofResult.error
|
||||
g.merkleProofCache = proofResult.get()
|
||||
|
||||
debug "--- track update ---",
|
||||
len = g.validRoots.len,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user