Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PRT-improve-timeout-handling (lavanet#1249)
* refactored the rpcconsumer send, WIP * added TODO * progress, WIP * wip * wip * relay_processor done * change timeouts across the protocol * handle non deterministic apis in the quorum * lint * fix tests * fix deadlock * fix nil getSessions * increase hanging api time * add unitest for usedProviders * added tests + refactor for simplicity * added more tests * added more testing * lint * add unitests * on init do not fail init relays on pairing * change csm get provider error to warning * added errors when failing relays * remove data reliability errors on latest block requests * disabled data reliability latest also on node errors * add more information on error during quorum * allow empty results for queries without an error * add missing consumer consistency * empty response quorum * add more info on provider error * added basic consumer unitest * added a check for consumer to be up during unitest * refactor code for reuse in unitest * added provider and consumer unitests * added rpcproviderServer creation to unitest * added provider dialing * fixed bug in rpcconsumer, finished unitest * fix panic in relayErrors * sanitize unique errors get * prevent port conflict * rename * fix addUsed with len(0) resetting the wait * simplify port selection in unitests * add timeouts and fails to relays in unitest * fix tests * added timeout to the scenarios * lint * add a new test for tx sending * sort logs better :) * fix Caching error spam when missing cache * adding nil protection for used Providers * set default 0 * adding error logs and nil protection. * adding some checks to avoid nil deref * allow error for connection reset by peer when in emergency mode.. as we shut down the node. * adding debugging information for next time ts fails. * es lint.. * eslint fix --------- Co-authored-by: Ran Mishael <[email protected]>
- Loading branch information