Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates job status on queue inclusion #217

Merged
merged 15 commits into from
Jun 14, 2024

Conversation

r0wdy1
Copy link

@r0wdy1 r0wdy1 commented May 13, 2024

No description provided.

@r0wdy1 r0wdy1 requested a review from AllFi June 10, 2024 10:09
zp-relayer/pool/BasePool.ts Outdated Show resolved Hide resolved
async onConfirmed(res: ProcessResult<RelayPool>, txHash: string, callback?: () => Promise<void>): Promise<void> {}
async onFailed(txHash: string, jobId?: string): Promise<void> {
super.onFailed(txHash, jobId);
this.txStore.removeAll();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we remove only one index? If the previous transaction was confirmed not too long ago and is not indexed by the indexer yet, then we remove it as well if I understand correctly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed by 0edb5e8

zp-relayer/pool/RelayPool.ts Outdated Show resolved Hide resolved
zp-relayer/workers/sentTxWorker.ts Outdated Show resolved Hide resolved
Copy link

@AllFi AllFi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@r0wdy1 r0wdy1 merged commit b52416b into feature/decentralized-relayer Jun 14, 2024
2 checks passed
r0wdy1 added a commit that referenced this pull request Aug 7, 2024
* Initial TRON support

* Fix error catching

* Support for TRON address type in /limits endpoint

* Minor refactoring

* Remove mock proof

* Make configurable feeLimit

* Add MPC guard service

* MPC relayer

* Fix guard signatures

* Fix guard signature

* Update launch scripts

* Add debug logs

* Handle trongrid error

* Initial

* Update launch script

* Ingore legacy ts errors

* Fix memo offset

* Fix commitment-watcher

* Fix fetching limits from external accounting contract

* Add /fee and /address endpoints for prover

* Fix job state & RelayPool fetcher

* Add /proverFee endpoint

* Fix fee manager init

* Fix RelayPool validation

* Fix commitment processing condition (#215)

* Add indexer service & make relayer stateless

* Fix build

* Add proxy optimistic state

* Fix indexer sync

* Add TxStore

* Fix build

* Fix indexer offset

* Fix prover sync bug (#216)

* Add direct deposits

* Fix watcher init

* updates job status on queue inclusion (#217)

* updates job status on queue inclusion

* Remove additional logic from getTransactionV2

* Added /proverAddress endpoint

* Propagating job validation error

* Job error description

* Trying to restore balance waiting routine

* Optimistic state for sent transactions

* Updating txHash in cached txs, introducing pendingDeltaIndex field in /info endpoint

* Setting reverted state to failed txs

* Clearing pending cache on tx revert

* Fix minor bugs (#218)

* Fix potential indexer gap

* Fix prover fee

* Don't import FeeOptions

* Use applyDenominator

* Move INDEXER_BLOCK_CONFIRMATIONS to config

* Update zp-relayer/workers/sentTxWorker.ts

Co-authored-by: Alexander Filippov <[email protected]>

* Update zp-relayer/pool/RelayPool.ts

Co-authored-by: Alexander Filippov <[email protected]>

* Update zp-relayer/pool/BasePool.ts

Co-authored-by: Alexander Filippov <[email protected]>

* make jobId mandatory for onFailed callback

---------

Co-authored-by: Alexander Filippov <[email protected]>
Co-authored-by: EvgenKor <[email protected]>

* Fix basic dd logic (#219)

* Add COMMITMENT_WATCHER_DIRECT_DEPOSIT_PARAMS_PATH

* Fix dd indexing logic

* Support both formats

* Mark job as failed if the indexer isn't synced yet

* Remove obsolete job

* Fix sync

* Fix sync

* Attempt to fix dd flow

* Remove unnecessary code

* Refactor code

* remove redundant methods

---------

Co-authored-by: Alexander Filippov <[email protected]>
Co-authored-by: r0wdy1 <[email protected]>
Co-authored-by: EvgenKor <[email protected]>
Co-authored-by: vladimir <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants