Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NONEVM-984][solana] - Reorg Detection + lighter rpc call (#951)
* refactor so txm owns blockhash assignment * lastValidBlockHeight shouldn't be exported * better comment * refactor sendWithRetry to make it clearer * confirm loop refactor * fix infinite loop * move accountID inside msg * lint fix * base58 does not contain lower l * fix hash errors * fix generate random hash * remove blockhash as we only need block height * expired tx changes without tests * add maybe to mocks * expiration tests * send txes through queue * revert pendingtx leakage of information. overwrite blockhash * fix order of confirm loop and not found signature check * fix mocks * prevent confirmation loop to mark tx as errored when it needs to be rebroadcasted * fix test * fix pointer * add comments * reduce rpc calls + refactors * tests + check to save rpc calls * address feedback + remove redundant impl * iface comment * address feedback on compute unit limit and lastValidBlockHeight assignment * blockhash assignment inside txm.sendWithRetry * address feedback * Merge branch 'develop' into nonevm-706-support-custom-bumping-strategy-rpc-expiration-within-confirmation * refactors after merge * fix interactive rebase * fix whitespace diffs * fix import * fix mocks * add on prebroadcaste error * remove rebroadcast count and fix package * improve docs * track status on each signature to detect reorgs * move things arround + add reorg detection * linting errors * fix some state tracking instances * remove redundant sig update * move state from txes to sigs * fix listAllExpiredBroadcastedTxs * handle reorg after confirm cycle * associate sigs to retry ctx * remove unused ctx * add errored state and remove finalized * comment * Revert "comment" This reverts commit 6bc0c62. * Revert "remove unused ctx" This reverts commit 2902ec0. * Revert "associate sigs to retry ctx" This reverts commit 8c18891. * Revert "fix listAllExpiredBroadcastedTxs" This reverts commit f4c6069. * Revert "move state from txes to sigs" This reverts commit 3a6e643. * fix tx state * address feedback * fix ci * fix lint * handle multiple sigs case * improve comment * improve logic and comments * fix comparison against blockHeight instead of slotHeight * address feedback * fix lint * fix log * address feedback * remove useless slot height * address feedback * add comment * tests and fix some bugs * address feedback * address feedback * validate that tx doesn't exist in any of maps when adding new tx * get height instead of whole block optimization * fix mocks on expiration * fix test * rebroadcast with new blockhash + add integration tests * fix integration tests * remove unused params and better comments * handle reorg equally for processed and confirmed at a sig level * add comments and rename txHasReorg to IsTxReorged for better readability * change test name to solve github CI failing check * fix ci * fix tests removing parallel * fix integration tests * capture range var * address feedback * address feedback
- Loading branch information