Skip to content

Commit

Permalink
fixing proposal record index when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed Jun 20, 2024
1 parent fd33df1 commit c9ec769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Client/store.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit c9ec769

Please sign in to comment.