Skip to content

Commit f1c3978

Browse files
committed
x
1 parent 1741117 commit f1c3978

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

action/protocol/staking/protocol.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -468,12 +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-
}
471+
//if inputHeight < p.hu.FairbankBlockHeight()-1 {
472+
// resp, height, err = &iotextypes.AccountMeta{
473+
// Address: "io000000000000000000000000stakingprotocol",
474+
// Balance: "0",
475+
// }, inputHeight, nil
476+
//}
477477
if p.candBucketsIndexer != nil && p.archiveMode && inputHeight < p.hu.GreenlandBlockHeight() && inputHeight >= p.hu.FairbankBlockHeight()-1 {
478478
//if p.candBucketsIndexer != nil {
479479
resp, height, err = p.candBucketsIndexer.GetStakingBalance(inputHeight)

0 commit comments

Comments
 (0)