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

Relayer query right valset for confirmations #372

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Apr 29, 2022

Queries the right valsets/data commitment confirmations when relaying + final changes for a working QGB contract.
Closes #363

QGB contract in action: https://rinkeby.etherscan.io/address/0xEAcC249c0831f8DE0B6afe27e6179Ca29Dec9b74

Still investigating why it reverted at data commitment nonce 6...

Edit: for some reason, I restarted the relayer after an hour, and it just continued. Needs to be investigated. The only difference between the two byte codes is the signatures. So, probably we have an issue when querying for the signatures (issue tracking this #374)

@rach-id rach-id added the C: QGB label Apr 29, 2022
@rach-id rach-id self-assigned this Apr 29, 2022
@rach-id rach-id marked this pull request as draft April 29, 2022 12:01
@rach-id rach-id linked an issue Apr 29, 2022 that may be closed by this pull request
@rach-id
Copy link
Member Author

rach-id commented Apr 29, 2022

Can be merged after #351

…nfirmations

# Conflicts:
#	x/qgb/orchestrator/orchestrator.go
#	x/qgb/orchestrator/orchestrator_client.go
#	x/qgb/orchestrator/querier.go
#	x/qgb/orchestrator/relayer.go
#	x/qgb/orchestrator/relayer_client.go
@rach-id rach-id changed the title WIP Relayer query right valset for confirmations Relayer query right valset for confirmations Apr 29, 2022
@rach-id rach-id marked this pull request as ready for review April 29, 2022 15:47
@rach-id
Copy link
Member Author

rach-id commented Apr 29, 2022

Nevermind the ugly history, everything will be squashed.
It is because I was working on branches that we squashed into the QGB integration branch that had tons of commits.

Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@rach-id rach-id merged commit bdfd247 into celestiaorg:qgb-integration Apr 29, 2022
@rach-id rach-id deleted the relayer_query_right_valset_for_confirmations branch April 29, 2022 16:45
rach-id added a commit to rach-id/celestia-app that referenced this pull request May 9, 2022
* adds valset request by nonce

* add querier, broadcaster and updates orchestrator to use them

* partially fix the tests for the new design

* update the deployer for the new design

* update orchestrator to new design

* Adds querier and evm client update

* update relayer to new design

* fix query.proto

* update deploy_command to use new Querier

* formatting

* formatting

* go.sum

* adds query last unbonding height

* adds orchestrator valset replay

* adds orchestrator data commitment replay

* cosmetics

* puts valset signature catchup in a separate function

* puts data commitment signature catchup in a separate function

* Querier cosmetics

* go.sum

* rename querier and catchup functions

* adds genesis case to querylastvalset

* format + todo

* initialized tm logger in test

* update orchestrator code to use uint64 instead of int64

* better logging

* adds last valset request before  height query

* regenerating correct query.pb.go

* adds logs

* adds querier QueryLastValsetBeforeHeight and QueryDataCommitmentConfirmsByExactRange

* fixes relayer to correctly send commitments

* Update x/qgb/orchestrator/orchestrator_client.go

Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>

* formats import

* rename addOldValsetAttestations and addOldDataCommitmentAttestations

* defering logging instead of repeating it on every return

* adds comment

* nit

* use the right function for data commitment to tm.hash

* better logging

* missing from merge

* add comments

Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Query data commitment confirmations specific to a certain valset
2 participants