mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Fix a bug where we'd attempt to migrate depths of pending transactions.
This commit is contained in:
parent
7867841579
commit
d3a540bb1e
@ -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…
Reference in New Issue
Block a user