aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-10 20:31:46 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-10 20:31:46 -0400
commit33a53bc13b1ddb7b0d9ba74a87ab5ffd9d11b31f (patch)
treed076660a00a1adb195233c829835ea4458be20ca /src/main.cpp
parent133dce6a37e634aebf6f9e41b8535393ac5f819e (diff)
downloadbitcoin-33a53bc13b1ddb7b0d9ba74a87ab5ffd9d11b31f.tar.xz
CTxMemPool::accept(): do not log FetchInputs failure redundantly
FetchInputs already logs failures internally. This commit makes the logging more consistent with other FetchInputs callsites also. Prior to this commit, two log lines were logged for one condition: ERROR: FetchInputs() : de15fde415 mempool Tx prev not found a2c75da227 ERROR: CTxMemPool::accept() : FetchInputs failed de15fde415 After this commit, only one line is logged: ERROR: FetchInputs() : e0507ab2c7 mempool Tx prev not found 9a620262cd
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3cc186399e..98f9b71ef5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -527,7 +527,7 @@ bool CTxMemPool::accept(CTxDB& txdb, CTransaction &tx, bool fCheckInputs,
return error("CTxMemPool::accept() : FetchInputs found invalid tx %s", hash.ToString().substr(0,10).c_str());
if (pfMissingInputs)
*pfMissingInputs = true;
- return error("CTxMemPool::accept() : FetchInputs failed %s", hash.ToString().substr(0,10).c_str());
+ return false;
}
// Check for non-standard pay-to-script-hash in inputs