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