Skip to content

Commit e6aa803

Browse files
committed
x
1 parent afbf9f8 commit e6aa803

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action/protocol/staking/protocol.go

+6
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,12 @@ func (p *Protocol) ReadState(ctx context.Context, sr protocol.StateReader, metho
468468
case iotexapi.ReadStakingDataMethod_TOTAL_STAKING_AMOUNT:
469469
//if p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= p.hu.FairbankBlockHeight() {
470470
//if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= 5160956 {
471+
if inputHeight < p.hu.FairbankBlockHeight()-1 {
472+
resp, height, err = &iotextypes.AccountMeta{
473+
Address: "io000000000000000000000000stakingprotocol",
474+
Balance: "0",
475+
}, inputHeight, nil
476+
}
471477
if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= p.hu.FairbankBlockHeight()-1 {
472478
//if p.candBucketsIndexer != nil {
473479
resp, height, err = p.candBucketsIndexer.GetStakingBalance(inputHeight)

0 commit comments

Comments
 (0)