mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 02:09:29 +01: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 {
|
||||
// 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…
Reference in New Issue
Block a user