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 {
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
if (chainHeight != 0) {
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight());
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight() + 1);
}
}
if (confidenceProto.hasWorkDone()) {