mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-30 23:02:15 +00: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());
|
confidence.setDepthInBlocks(confidenceProto.getDepth());
|
||||||
} else {
|
} else {
|
||||||
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
|
// TEMPORARY CODE FOR MIGRATING 0.5 WALLETS TO 0.6
|
||||||
if (chainHeight != 0) {
|
if (chainHeight != 0 && confidenceProto.hasAppearedAtHeight()) {
|
||||||
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight() + 1);
|
confidence.setDepthInBlocks(chainHeight - confidence.getAppearedAtChainHeight() + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user