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

config: archive node configuration #352

Merged
merged 8 commits into from
Apr 7, 2023
Merged

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented Mar 8, 2023

new config format to allow setting multiple nodes, for archive access. see the sample configs for how to migrate your config files.

indexer devs: no more client factory system. just create a consensus client or runtime client directly. see existing analyzers for how to do this.

indexer devs: the analyzer no longer runs with a set chain context. in general, don't verify signatures. our node(s) will do that.

@pro-wh pro-wh force-pushed the pro-wh/feature/holders8 branch 2 times, most recently from f9824d9 to 5af6e3b Compare March 9, 2023 20:29
Base automatically changed from pro-wh/feature/holders8 to main March 9, 2023 23:41
@pro-wh pro-wh force-pushed the pro-wh/feature/cobaltconf branch from 6a5ad63 to 0814e65 Compare March 9, 2023 23:44
@pro-wh pro-wh changed the base branch from main to ptrus/feature/runtime-stats March 11, 2023 01:00
@ptrus ptrus force-pushed the ptrus/feature/runtime-stats branch 3 times, most recently from ffdf094 to d458a66 Compare March 13, 2023 23:33
Base automatically changed from ptrus/feature/runtime-stats to main March 13, 2023 23:41
storage/oasis/runtime.go Outdated Show resolved Hide resolved
storage/oasis/consensus.go Outdated Show resolved Hide resolved
storage/oasis/client.go Outdated Show resolved Hide resolved
@pro-wh pro-wh force-pushed the pro-wh/feature/cobaltconf branch 2 times, most recently from d88d2a1 to dcc64ff Compare March 16, 2023 00:23
storage/oasis/client.go Outdated Show resolved Hide resolved
@pro-wh pro-wh marked this pull request as ready for review March 16, 2023 20:58
@pro-wh
Copy link
Collaborator Author

pro-wh commented Mar 16, 2023

aaah I gotta update a bunch of test code

storage/oasis/client_test.go Outdated Show resolved Hide resolved
@pro-wh
Copy link
Collaborator Author

pro-wh commented Mar 17, 2023

ugh and the docker e2e test doesn't have the right configs and stuff

@pro-wh
Copy link
Collaborator Author

pro-wh commented Mar 20, 2023

alright let's allow there to be a single-oasis-node-with-given-chain-context setting as well.

@pro-wh pro-wh force-pushed the pro-wh/feature/cobaltconf branch 7 times, most recently from a719bdd to faef8ed Compare April 3, 2023 23:08
@pro-wh
Copy link
Collaborator Author

pro-wh commented Apr 3, 2023

gotta update those e2e test configs

@pro-wh pro-wh force-pushed the pro-wh/feature/cobaltconf branch 3 times, most recently from b8880b6 to aa35fc3 Compare April 4, 2023 23:20
@Andrew7234 Andrew7234 mentioned this pull request Apr 5, 2023

// SDKConnect creates an Oasis SDK Connection to a node running the current
// version of oasis-node.
func SDKConnect(ctx context.Context, chainContext string, nodeConfig *config.NodeConfig, fastStartup bool) (connection.Connection, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit, nonblocking: Not sure this has to do with history much ... Can you think of a better home? storage/oasis? Same for raw_grpc.go.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh ok I can move these into a separate directory 👍

@pro-wh pro-wh requested a review from mitjat April 6, 2023 17:24
@pro-wh
Copy link
Collaborator Author

pro-wh commented Apr 6, 2023

custom_chain is added, action-oriented comments resolved. we can feel free to add test-oriented chains to the go code as well. but I like having it possible to specify one in the config

@pro-wh pro-wh force-pushed the pro-wh/feature/cobaltconf branch from aa35fc3 to 24d18cb Compare April 6, 2023 23:33
tests/e2e/config/e2e-dev.yml Outdated Show resolved Hide resolved
pro-wh and others added 2 commits April 7, 2023 13:45
turns out server.chain_name in the config is only used to convert the runtime name to its ID

Co-authored-by: mitjat <mitjat@users.noreply.github.com>
@pro-wh pro-wh merged commit 47add3c into main Apr 7, 2023
@pro-wh pro-wh deleted the pro-wh/feature/cobaltconf branch April 7, 2023 21:27
Comment on lines 1022 to -1027
required: [latest_chain_id, latest_block, latest_update]
properties:
latest_chain_id:
x-go-name: LatestChainID # oapi-codegen generates LatestChainId (with a lowercase d) by default.
Copy link
Member

Choose a reason for hiding this comment

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

Leftover latest_chain_id in required

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

o thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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.

None yet

3 participants