Skip to content

Commit c4dc19d

Browse files
committed
x
1 parent 37c288b commit c4dc19d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action/protocol/staking/protocol.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ func (p *Protocol) ReadState(ctx context.Context, sr protocol.StateReader, metho
477477
case iotexapi.ReadStakingDataMethod_TOTAL_STAKING_AMOUNT:
478478
if p.archiveMode && p.hu.IsPre(config.Greenland, inputHeight) {
479479
resp, height, err = readStateTotalStakingAmountFromIndexer(sr, r.GetTotalStakingAmount(), inputHeight)
480-
if err != nil {
481-
resp, height, err = readStateTotalStakingAmount(ctx, csr, r.GetTotalStakingAmount())
482-
}
480+
//if err != nil {
481+
// resp, height, err = readStateTotalStakingAmount(ctx, csr, r.GetTotalStakingAmount())
482+
//}
483483
} else {
484484
resp, height, err = readStateTotalStakingAmount(ctx, csr, r.GetTotalStakingAmount())
485485
}

tools/minicluster/create_buckets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func injectBuckets() {
7878

7979
startNonce := uint64(1)
8080
count := uint64(4)
81-
for startNonce <= 20 {
81+
for startNonce <= 20000 {
8282
for nonce := startNonce; nonce < startNonce+count; nonce++ {
8383
fixedAmount := unit.ConvertIotxToRau(100).String()
8484
candidateName := candidateNames[rand.Intn(len(candidateNames))]

0 commit comments

Comments
 (0)