From eeda663ff78515bd5537c3bcd63215e9cf4943c9 Mon Sep 17 00:00:00 2001 From: therealyingtong Date: Thu, 2 Jul 2020 07:18:46 +0800 Subject: [PATCH] Remove plaintext check from GetFilteredNotes Co-authored by Sean Bowe (ewillbefull@gmail.com) --- src/wallet/wallet.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index e514740e1..fd4edc5be 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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(maybe_pt)); - auto notePt = maybe_pt.get(); + auto notePt = optDeserialized.get(); auto maybe_pa = nd.ivk.address(notePt.d); assert(static_cast(maybe_pa)); auto pa = maybe_pa.get();