Skip to content

Commit

Permalink
fix: proposal GetEpochBlock height, default currentHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Jul 14, 2024
1 parent d77a9bf commit 0f41ce7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (l *GovernanceProposalWithVotesLogic) GovernanceProposalWithVotes(req *type
proposalHeight, err := l.svcCtx.Beacon.GetEpochBlock(l.ctx, beacon.EpochTime(m.ClosedEpoch))
if err != nil {
logc.Errorf(l.ctx, "getEpochBlock error, %v", err)
proposalHeight = chainStatus.GenesisHeight
proposalHeight = currentHeight
}

totalVotes := quantity.NewQuantity()
Expand Down

0 comments on commit 0f41ce7

Please sign in to comment.