From d77a9bfc2fb74e55df43f5022f4bf0123e7ff2b0 Mon Sep 17 00:00:00 2001 From: romever <360876221@qq.com> Date: Sun, 14 Jul 2024 21:55:24 +0800 Subject: [PATCH] fix: proposal GetEpochBlock height, default genesisHeight --- .../logic/governance/governanceproposalwithvoteslogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/logic/governance/governanceproposalwithvoteslogic.go b/api/internal/logic/governance/governanceproposalwithvoteslogic.go index 3748763..1f5d988 100644 --- a/api/internal/logic/governance/governanceproposalwithvoteslogic.go +++ b/api/internal/logic/governance/governanceproposalwithvoteslogic.go @@ -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()