adridadou / eth-contract-api

EthereumJ native API or how to call contracts easily and with type safety
http://www.davidroon.com/ethcontractapi/
Apache License 2.0
60 stars 34 forks source link

stress tests #86

Closed adridadou closed 7 years ago

adridadou commented 7 years ago

It seems that if we create too many tx per sec, the system becomes unstable and most if not all the txs are being dropped.

I need to test that and see if I can resolve the isuse

kivanov82 commented 7 years ago

The root cause is the wrong way how required nonce is calculated. Currently, we take the nonce from repository and add the amount of 'pending' transactions. However, on the next transaction scheduling it can happen that previous trancastion already increased nonce in the repo and hasn't decrease the map of 'pending'. So that next transaction will be called with 'previous nonce' +2

kivanov82 commented 7 years ago

We need to keep in sync changes in Ethereum Repo and amount of items in the map of 'pending'