From c9ec7699f591f96afea3d317eadc6fb5a31430ba Mon Sep 17 00:00:00 2001 From: Janis Erdmanis Date: Fri, 21 Jun 2024 01:10:07 +0300 Subject: [PATCH] fixing proposal record index when loading --- src/Client/store.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client/store.jl b/src/Client/store.jl index f280eb1..c32344c 100644 --- a/src/Client/store.jl +++ b/src/Client/store.jl @@ -428,11 +428,12 @@ function load(store::ProposalStore, ::Type{ConsistencyProof}, index::Int) return proof, next_index end + function load(store::ProposalStore) proposal = load(store, Proposal) ack = load(store, AckInclusion{ChainState}) - index = ack.commit.state.index + index = ack.proof.index commit = load(store, Commit{BallotBoxState})