Force consensus goes into a weird loop where it is not able to do anything in case a transaction is dropped by chain and it tries to reset the nonce.
Describe the bug
Acquiring the rw lock using aiorwlock_aqcuire_release (without acquiring semaphore) first is causing some weird behavior making the Force consensus service go into a state where it can't make any more transactions.
To Reproduce
Steps to reproduce the behavior:
Start Force Consensus Service
Wait for one of the transactions to be dropped by the chain or simulate the reset nonce behavior
Observe Force Consensus service behavior
Proposed Solution
Even for nonce reset first semaphore should be acquired using semaphore_then_aiorwlock_aqcuire_release instead of aiorwlock_aqcuire_release
Force consensus goes into a weird loop where it is not able to do anything in case a transaction is dropped by chain and it tries to reset the nonce.
Describe the bug
Acquiring the rw lock using
aiorwlock_aqcuire_release
(without acquiring semaphore) first is causing some weird behavior making the Force consensus service go into a state where it can't make any more transactions.To Reproduce
Steps to reproduce the behavior:
Proposed Solution Even for nonce reset first semaphore should be acquired using
semaphore_then_aiorwlock_aqcuire_release
instead ofaiorwlock_aqcuire_release