-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
f9824d9
to
5af6e3b
Compare
6a5ad63
to
0814e65
Compare
0814e65
to
0e323dc
Compare
ffdf094
to
d458a66
Compare
0e323dc
to
b950630
Compare
b950630
to
879540c
Compare
d88d2a1
to
dcc64ff
Compare
dcc64ff
to
dd2bdd4
Compare
aaah I gotta update a bunch of test code |
dd2bdd4
to
43d8a1d
Compare
43d8a1d
to
4569743
Compare
ugh and the docker e2e test doesn't have the right configs and stuff |
alright let's allow there to be a single-oasis-node-with-given-chain-context setting as well. |
a719bdd
to
faef8ed
Compare
gotta update those e2e test configs |
b8880b6
to
aa35fc3
Compare
storage/oasis/nodeapi/history/sdk.go
Outdated
|
||
// 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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 👍
|
aa35fc3
to
24d18cb
Compare
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>
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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.