Remove count limit for local transactions (#2634)
This commit is contained in:
parent
d66bd3c83a
commit
18062f11dc
@ -310,9 +310,9 @@ impl TransactionSet {
|
|||||||
let r = gas.overflowing_add(order.gas);
|
let r = gas.overflowing_add(order.gas);
|
||||||
if r.1 { return false }
|
if r.1 { return false }
|
||||||
gas = r.0;
|
gas = r.0;
|
||||||
// Own and retracted transactions are allowed to go above the gas limit, bot not above the count limit.
|
// Own and retracted transactions are allowed to go above all limits.
|
||||||
(gas > self.gas_limit && order.origin != TransactionOrigin::Local && order.origin != TransactionOrigin::RetractedBlock) ||
|
order.origin != TransactionOrigin::Local && order.origin != TransactionOrigin::RetractedBlock &&
|
||||||
count > self.limit
|
(gas > self.gas_limit || count > self.limit)
|
||||||
})
|
})
|
||||||
.map(|order| by_hash.get(&order.hash)
|
.map(|order| by_hash.get(&order.hash)
|
||||||
.expect("All transactions in `self.by_priority` and `self.by_address` are kept in sync with `by_hash`."))
|
.expect("All transactions in `self.by_priority` and `self.by_address` are kept in sync with `by_hash`."))
|
||||||
|
Loading…
Reference in New Issue
Block a user