Skip to content

Commit

Permalink
[Wallet] IsEquivalentTo commented for now to not add an extra round o…
Browse files Browse the repository at this point in the history
…f serialization + hash calculation in every read transaction in the wallet startup.
  • Loading branch information
furszy committed Dec 28, 2019
1 parent f2d4291 commit 24fb46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -486,7 +486,7 @@ void CWallet::SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator> ran
CWalletTx* copyTo = &mapWallet[hash];
if (copyFrom == copyTo) continue;
assert(copyFrom && "Oldest wallet transaction in range assumed to have been found.");
if (!copyFrom->IsEquivalentTo(*copyTo)) continue;
//if (!copyFrom->IsEquivalentTo(*copyTo)) continue;
copyTo->mapValue = copyFrom->mapValue;
copyTo->vOrderForm = copyFrom->vOrderForm;
// fTimeReceivedIsTxTime not copied on purpose
Expand Down

0 comments on commit 24fb46d

Please sign in to comment.