Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(connector-besu): tx poll per second not at full CPU speed
1. Prior to this change the polling function that waits for transactions to be confirmed was running in while loop without any delay, meaning that the code that fetches the latest block is executing thousands of times each second (or however fast the CPU in the machine/network connection are). 2. Now there is a second delay between each execution of the loop so that we are not hammering the node of the ledger we are connected to. 3. This also has the added benefit of the test cases using this method using much less CPU power. Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information