3
0
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:
Mike Hearn 2012-09-08 23:28:26 +02:00
parent 087a4f2447
commit 7867841579

View File

@ -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()) {