Prettify coinstake rejecting error message in AcceptToMemoryPoolWorker()

main.cpp
This commit is contained in:
lateminer
2018-10-24 23:32:35 +03:00
parent 15e2eddfd7
commit ea42219781

View File

@@ -1171,8 +1171,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
// Coinstake is also only valid in a block, not as a loose transaction
if (tx.IsCoinStake())
return state.DoS(100, error("AcceptToMemoryPool: coinstake as individual tx"),
REJECT_INVALID, "coinstake");
return state.DoS(100, false, REJECT_INVALID, "coinstake");
// Don't relay version 2 transactions until CSV is active, and we can be
// sure that such transactions will be mined (unless we're on