From 896ef5a15f86f796b7c6cbc03af3a6419e4a9a54 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 1 Jul 2021 00:12:33 +0000 Subject: [PATCH] Fixed an issue doing the set_roots repeatedly for the same set. Instead doing the per chunks. (#18314) (#18337) (cherry picked from commit a67d26a1e89ce8b9b65c07c14a4e9dfa4326b3e4) Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> --- ledger/src/blockstore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index 5140afd147..81892338d0 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -3108,7 +3108,7 @@ impl Blockstore { return Ok(()); } trace!("{:?}", chunk); - self.set_roots(&roots_to_fix)?; + self.set_roots(chunk)?; } } else { debug!(