Skip to content

Commit afbf9f8

Browse files
committed
x
1 parent 9fe5447 commit afbf9f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action/protocol/staking/protocol.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ func (p *Protocol) ReadState(ctx context.Context, sr protocol.StateReader, metho
467467
resp, height, err = readStateCandidateByAddress(ctx, csr, r.GetCandidateByAddress())
468468
case iotexapi.ReadStakingDataMethod_TOTAL_STAKING_AMOUNT:
469469
//if p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= p.hu.FairbankBlockHeight() {
470-
if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= 5160956 {
470+
//if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= 5160956 {
471+
if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= p.hu.FairbankBlockHeight()-1 {
471472
//if p.candBucketsIndexer != nil {
472473
resp, height, err = p.candBucketsIndexer.GetStakingBalance(inputHeight)
473474
//} else {

0 commit comments

Comments
 (0)