Skip to content

Store network information in DB#3755

Merged
ma2bd merged 8 commits intolinera-io:mainfrom
ma2bd:network_information
May 2, 2025
Merged

Store network information in DB#3755
ma2bd merged 8 commits intolinera-io:mainfrom
ma2bd:network_information

Conversation

@ma2bd
Copy link
Contributor

@ma2bd ma2bd commented Apr 11, 2025

Motivation

We currently pass around a genesis configuration when deploying a validator but this is not really needed.
This is the first step to simplify things.

Proposal

  • Create a notion of network description to be persisted in DB
  • Use it in the proxy
  • Upgrade the RPC to return the full NetworkInformation while we're at it.

Incidentally, we won't compute the genesis config hash over and over again.

Test Plan

CI

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

@ma2bd ma2bd requested review from Twey, afck and ndr-ds April 12, 2025 17:08
Copy link
Contributor

@deuszx deuszx left a comment

Choose a reason for hiding this comment

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

Apart from the comments/rename - LGTM.

description.genesis_config_hash, genesis_config_hash
);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Here it might be useful to also print both network names. (Also below.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mmm I'm going to send another PR for this.

@ma2bd ma2bd marked this pull request as draft April 13, 2025 20:08
@ma2bd ma2bd force-pushed the network_information branch 2 times, most recently from 0dc33c4 to c31beab Compare May 1, 2025 19:18
@ma2bd ma2bd marked this pull request as ready for review May 2, 2025 17:56
@ma2bd ma2bd force-pushed the network_information branch from 9a0913b to 8bf0112 Compare May 2, 2025 17:56
@ma2bd ma2bd merged commit 1820109 into linera-io:main May 2, 2025
26 checks passed
@ma2bd ma2bd deleted the network_information branch May 2, 2025 18:53
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