-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Parity 1.11.6 is rejecting transactions from local accounts #9087
Comments
@tomusdrw can you have a look? |
@ppratscher are you submitting the transactions via The situation is indeed a bit different if we have a local account, but the transaction is received over the network (i.e. sent from some other node). Is that the use case you are having? |
Yeah, the node does receive that transaction via the P2P network and not via a local RPC call. |
I guess the solution would be to add a CLI flag to bring back the previous behaviour. The optimization here was introduced to improve performance of the node in case the queue is full, and avoid doing (very costly) ecrecover for every incoming transaction. So with the flag it would be possible to opt-in to the less performant old behaviour. @ppratscher As a workaround I'd suggest:
|
Thanks, we will try to increase the queue size and check how it affects the mining performance and uncle rate of the node. Unfortunately the second workaround is not really an option as we also need to include external transactions in the blocks. Indeed it would be great to have an opt-in flag for the previous behavior available as the additional ecrecover operations should not be an issue with our hardware. |
@tomusdrw Unfortunately as soon as we increase the tx queue size we are again running into #9070 and the import of a locally mined block takes more than two seconds. The import of normal blocks is in the range of 30-250ms. Log of a block mined with 1.11.6 and a tx-queue-size of 256000:
Log of a block mined with 1.11.6 and a tx-queue-size of 2048 as per your recommendations:
Therefore increasing the tx queue size is not feasible for us. |
@ppratscher The long time you are seeing is related to how the informant is implemented, it waits for all the local work to be finished before reporting the block time, but it's not the actual time it takes to import the block. Indeed clearing out larger queues takes longer (seconds), but recently in 1.11.6 new pending block is created before the queue is being cleared (see #9024 (comment)), so it shouldn't increase uncle rate or prevent propagation. Let me know if that's not the case, I'll look into optimizing that further. A log captured with |
@tomusdrw I sent you the logs directly via DM on gitter + some additional info |
@ppratscher could you please also post it here (in a gist?) for the record :) |
@Tbaut stratum notification is being sent after |
Before filing a new issue, please provide the following information.
Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.
The new tx queue implementation in 1.11.6 seems to treat transactions from local accounts different compared to previous versions. Previously the tx queue always accepted transactions from local accounts. The new tx queue implementation rejects them with the following message:
Expected behavior: Transactions with sender = local account should never be rejected from the tx queue independent of the status of the tx pool.
Edit: Might be caused by 7f4d825
The text was updated successfully, but these errors were encountered: