Skip to content

Commit

Permalink
fix: proposal GetEpochBlock height, default genesisHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Jul 14, 2024
1 parent d3bc195 commit d77a9bf
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)
return nil, errort.NewDefaultError()
proposalHeight = chainStatus.GenesisHeight
}

totalVotes := quantity.NewQuantity()
Expand Down

0 comments on commit d77a9bf

Please sign in to comment.