mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Fix a bug where we'd attempt to migrate depths of pending transactions.
This commit is contained in:
parent
7867841579
commit
d3a540bb1e
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ public class WalletProtobufSerializer {
|
|||
confidence.setDepthInBlocks(confidenceProto.getDepth());
|
||||
} else {
|
||||
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
|
||||
if (chainHeight != 0) {
|
||||
if (chainHeight != 0 && confidenceProto.hasAppearedAtHeight()) {
|
||||
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight() + 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue