Don't log mempool error for staking tx, fix default destination for staking tx

This commit is contained in:
miketout
2018-11-01 13:40:51 -07:00
parent 4ac64cd2a0
commit f1f6dfbb85
3 changed files with 14 additions and 12 deletions

View File

@@ -1575,8 +1575,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
CStakeParams p;
if (ValidateStakeTransaction(tx, p, false))
{
return state.DoS(0, error("AcceptToMemoryPool: attempt to add staking transaction to the mempool"),
REJECT_INVALID, "staking");
return state.DoS(0, false, REJECT_INVALID, "staking");
}
// is it already in the memory pool?