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

Start mocked QGB testnet #953

Closed
2 tasks done
Tracked by #952
rach-id opened this issue Nov 3, 2022 · 4 comments
Closed
2 tasks done
Tracked by #952

Start mocked QGB testnet #953

rach-id opened this issue Nov 3, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@rach-id
Copy link
Member

rach-id commented Nov 3, 2022

Starting a QGB V1 testnet that can be exposed to developers to start tinkering with the QGB.
Currently, QGB V1 is at qgb-integration branch. And, we're working on a mocked version using a mocked validator set to be able to run it for any test network without the need to make everyone run an orchestrator.

Some of the tasks that will need to be accomplished for this are:

@evan-forbes
Copy link
Member

instead of starting a full blown testnet for v1, we should be able to deploy the QGB contracts using a mock validator set. This would entail creating a validator set of one that never changes, then querying data commitments for arbitrary block ranges, signing them, and manually relaying them to the contracts.

This way, we would be able to use the block data from mocha and arabica, so users of the QGB could just post data to those networks, this script would create data commitments over that block data, and post it to the contracts using the mocked validator set.

@rach-id
Copy link
Member Author

rach-id commented Dec 19, 2022

A potential approach, since mocha and arabica have the QGB state machine plugged in, would be to make changes on QGB V1 to do the following:

  • Get the attestations from the state machine (this part is already implemented).

  • Sign the attestation using 1 validator key: if the attestation is a valset, update its content to contain only the key and the power of the validator signing instead of the whole validator set.

  • send that attesation to the relayer to be submitted: this would require making the following changes:

    • Merge the QGB CLI config of the orchestrator and the relayer
    • Start the Relayer when starting the orchestrator
    • update the relayer not to get the confirms from the state machine but get them as a parameter (or it might be easier to just listen on a channel. This channel will contain the signatures pushed by the orchestrator after the orchestrator signs an attestation).
  • Remove the use of queries that are not supported in V2: checking the main branch QGB queries and only use the ones defined there.

@evan-forbes evan-forbes changed the title QGB V1 start testnet Start mocked QGB V1 testnet Jan 2, 2023
@evan-forbes evan-forbes added this to the Incentivized Testnet milestone Jan 2, 2023
@evan-forbes evan-forbes changed the title Start mocked QGB V1 testnet Start mocked QGB testnet Jan 12, 2023
@evan-forbes
Copy link
Member

is this still planned @sweexordious ?

@rach-id
Copy link
Member Author

rach-id commented Apr 2, 2023

I don' think we need this anymore, we've done the above tasks using v2 on Robusta. Should we should be good to close this. Thanks for pointing it.

@rach-id rach-id closed this as completed Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants