From e0df838f7f86dcd5ae420704e19218ed13d460df Mon Sep 17 00:00:00 2001 From: Tom Dudzik Date: Thu, 24 Aug 2017 11:17:56 +0200 Subject: [PATCH] remove unnecessary code in IsFee() method --- src/primitives/transaction.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 67f833f3dd..89f30dcef3 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -235,10 +235,7 @@ public: bool IsFee() const { - CAsset asset; - if (scriptPubKey == CScript() && nValue.IsExplicit() && nAsset.IsExplicit()) - return true; - return false; + return scriptPubKey == CScript() && nValue.IsExplicit() && nAsset.IsExplicit(); } friend bool operator==(const CTxOut& a, const CTxOut& b)