charge peers for sending emitted txns over wire

This commit is contained in:
Richard Holland
2023-01-18 08:49:48 +00:00
parent 1c3c9cd91f
commit 91c6c64b72

View File

@@ -1546,7 +1546,7 @@ PeerImp::handleTransaction(
if (stx->isFieldPresent(sfEmitDetails))
{
JLOG(p_journal_.warn()) << "Ignoring Network relayed Tx containing sfEmitDetails (handleTransaction).";
//fee_ = Resource::feeHighBurdenPeer; // RH TODO: enable when relay bug is fixed
fee_ = Resource::feeHighBurdenPeer;
return;
}
@@ -3066,7 +3066,7 @@ PeerImp::checkTransaction(
if (stx->isFieldPresent(sfEmitDetails))
{
JLOG(p_journal_.warn()) << "Ignoring Network relayed Tx containing sfEmitDetails (checkSignature).";
//charge(Resource::feeHighBurdenPeer); //RH TODO: enable this charging when relay bug fix
charge(Resource::feeHighBurdenPeer);
return;
}