Fix a bug where we'd attempt to migrate depths of pending transactions.

This commit is contained in:
Mike Hearn 2012-09-09 14:45:34 +02:00
parent 7867841579
commit d3a540bb1e

View File

@ -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);
}
}