mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Fix an off by one error in tx depth migration.
This commit is contained in:
parent
087a4f2447
commit
7867841579
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue