Skip to content

Commit 55a9cdd

Browse files
committed
x
1 parent 9f7bf25 commit 55a9cdd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

action/protocol/staking/protocol.go

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ func (p *Protocol) ReadState(ctx context.Context, sr protocol.StateReader, metho
443443
resp, height, err = readStateCandidateByAddress(ctx, csr, r.GetCandidateByAddress())
444444
case iotexapi.ReadStakingDataMethod_TOTAL_STAKING_AMOUNT:
445445
resp, height, err = readStateTotalStakingAmount(ctx, csr, r.GetTotalStakingAmount())
446+
log.L().Info("ReadStakingDataMethod_TOTAL_STAKING_AMOUNT", zap.Uint64("csr height", csr.Height()), zap.Uint64("returned height", height))
446447
default:
447448
err = errors.New("corresponding method isn't found")
448449
}

action/protocol/staking/read_state.go

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func readStateCandidateByAddress(ctx context.Context, csr CandidateStateReader,
134134

135135
func readStateTotalStakingAmount(ctx context.Context, csr CandidateStateReader,
136136
_ *iotexapi.ReadStakingDataRequest_TotalStakingAmount) (*iotextypes.AccountMeta, uint64, error) {
137+
137138
meta := iotextypes.AccountMeta{}
138139
meta.Address = address.StakingBucketPoolAddr
139140
total, err := getTotalStakedAmount(ctx, csr)

0 commit comments

Comments
 (0)