mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 03:35:52 +00:00
Fix an off by one error in tx depth migration.
This commit is contained in:
parent
087a4f2447
commit
7867841579
@ -404,7 +404,7 @@ public class WalletProtobufSerializer {
|
|||||||
} else {
|
} else {
|
||||||
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
|
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
|
||||||
if (chainHeight != 0) {
|
if (chainHeight != 0) {
|
||||||
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight());
|
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight() + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (confidenceProto.hasWorkDone()) {
|
if (confidenceProto.hasWorkDone()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user