Limit changed node count

This commit is contained in:
JoelKatz
2015-09-07 08:57:02 -07:00
committed by Nik Bougalis
parent 91eee1a42d
commit 88f885f2e7
10 changed files with 56 additions and 1 deletions

View File

@@ -532,7 +532,11 @@ Transactor::operator()()
bool didApply = isTesSuccess (terResult);
auto fee = tx().getTransactionFee ();
if (isTecClaim (terResult) && !(view().flags() & tapRETRY))
if (view().size() > 5200)
terResult = tecOVERSIZE;
if ((terResult == tecOVERSIZE) ||
(isTecClaim (terResult) && !(view().flags() & tapRETRY)))
{
// only claim the transaction fee
JLOG(j_.debug) <<