Skip to content

Commit 38c3ce2

Browse files
committed
x
1 parent 4085676 commit 38c3ce2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action/protocol/staking/protocol.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ func (p *Protocol) saveStakingAddressHistory(height uint64, sm protocol.StateMan
273273
}
274274
//height1 := height - 1
275275
//hei := byteutil.Uint64ToBytesBigEndian(height - 1)
276-
hei := byteutil.Uint64ToBytesBigEndian(height - 1)
276+
//hei := byteutil.Uint64ToBytesBigEndian(height - 1)
277+
hei := byteutil.Uint64ToBytesBigEndian(height)
277278
historyKey := append(bucketPoolAddrKey, hei...)
278279
fmt.Println("saveStakingAddressHistory2", height, hex.EncodeToString(historyKey), balance.amount)
279280

0 commit comments

Comments
 (0)