Remove plaintext check from GetFilteredNotes

Co-authored by Sean Bowe (ewillbefull@gmail.com)
This commit is contained in:
therealyingtong 2020-07-02 07:18:46 +08:00
parent ee83424c6f
commit eeda663ff7
1 changed files with 1 additions and 9 deletions

View File

@ -5079,16 +5079,8 @@ void CWallet::GetFilteredNotes(
// its plaintext had been successfully decrypted previously.
assert(false);
}
// We don't need to check the leadbyte here: if wtx exists in
// the wallet, it must have already passed the leadbyte check
auto maybe_pt = SaplingNotePlaintext::plaintext_checks_without_height(
*optDeserialized,
nd.ivk,
wtx.vShieldedOutput[op.n].ephemeralKey,
wtx.vShieldedOutput[op.n].cmu);
assert(static_cast<bool>(maybe_pt));
auto notePt = maybe_pt.get();
auto notePt = optDeserialized.get();
auto maybe_pa = nd.ivk.address(notePt.d);
assert(static_cast<bool>(maybe_pa));
auto pa = maybe_pa.get();