Skip to content

Commit 5797e4d

Browse files
author
Nikita Khateev
committed
Fix problem with txn count and failed node
Signed-off-by: Nikita Khateev <[email protected]>
1 parent 64e4aa2 commit 5797e4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libindy/src/services/pool/catchup.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl CatchupHandler {
7878
//sending ledger status
7979
//TODO not send ledger status directly as response on ping, wait pongs from all nodes?
8080
let ls: LedgerStatus = LedgerStatus {
81-
txnSeqNo: self.nodes.len(),
81+
txnSeqNo: self.merkle_tree.count,
8282
merkleRoot: self.merkle_tree.root_hash().as_slice().to_base58(),
8383
ledgerId: 0,
8484
ppSeqNo: None,
@@ -290,6 +290,7 @@ impl CatchupHandler {
290290
}
291291

292292
PoolWorker::dump_new_txns(&self.pool_name, &vec_to_dump)?;
293+
self.merkle_tree = PoolWorker::restore_merkle_tree_from_pool_name(&self.pool_name)?;
293294

294295
process.merkle_tree = temp_mt;
295296
}

0 commit comments

Comments
 (0)