Skip to content

Update substrate to polkadot stable2409 #1387

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

Merged
merged 23 commits into from
Apr 15, 2025

Conversation

JesseAbram
Copy link
Member

@JesseAbram JesseAbram commented Apr 3, 2025

Left a few issues in the comments still needed to fix but this PR should be able to go in without the fixes

This updates substrate and fixes the benchmarks issues

!self.accepted_measurement_values.is_empty(),
"At least one accepted measurement value is required"
);
// assert!(self.threshold > 0, "Threhsold too low");
Copy link
Member Author

Choose a reason for hiding this comment

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

opened #1388

Comment on lines +132 to +133
cmd.arg("--unsafe-force-node-key-generation");
cmd.arg("--public-addr=/ip4/0.0.0.0/tcp/30333");
Copy link
Member Author

Choose a reason for hiding this comment

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

@entropyxyz/system-reliability-engineers Ill get more information on these commands for production system and we can jam on adding it into the substrate node start process

https://github.com/entropyxyz/devops-infrastructure/issues/121

@@ -85,12 +85,6 @@ pub mod module {
#[pallet::genesis_build]
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
fn build(&self) {
assert!(self.threshold > 0, "Threhsold too low");
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -84,6 +79,7 @@ use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
use pallet_session::historical as pallet_session_historical;
#[cfg(any(feature = "std", test))]
pub use pallet_staking::StakerStatus;
#[allow(deprecated)]
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -547,6 +548,9 @@ parameter_types! {
pub MaximumMultiplier: Multiplier = Bounded::max_value();
}

// Can't use `FungibleAdapter` here until Treasury pallet migrates to fungibles
// <https://github.com/paritytech/polkadot-sdk/issues/226>
#[allow(deprecated)]
Copy link
Member Author

Choose a reason for hiding this comment

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

@JesseAbram JesseAbram marked this pull request as ready for review April 14, 2025 12:38
@JesseAbram JesseAbram requested a review from ameba23 April 14, 2025 12:38
Copy link
Collaborator

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

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

💯 Great work, i am so thankful you did this.

I can confirm i can successfully build and run the benchmarks on this branch using the reference machine setup from https://github.com/entropyxyz/devops-infrastructure/pull/124

There are still a bunch of warnings when building with the runtime-benchmarks feature - i will make an issue, i expect they will be easy to fix.


fn setup_db(key: [u8; 32]) -> Db {
EncryptedDb::open(get_db_path(true), key).unwrap()
EncryptedDb::open(get_db_path(BuildType::Test), key).unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

As you said - weird that these were not picked up by CI before

@@ -15,6 +15,7 @@ allow=[
"MIT",
"MIT-0",
"MPL-2.0",
"Unicode-3.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if theres a procedure for who we ask when we add licenses to this list. But in this case 'unicode' looks to me like a permissive license similar to MIT so should be fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

ya, I mean I asked chat gpt sooo probably fine


use crate::cli::Cli;

/// Host functions required for kitchensink runtime and Substrate node.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very nice doccomments

Co-authored-by: peg <peg@magmacollective.org>
@JesseAbram JesseAbram merged commit 0562350 into master Apr 15, 2025
9 checks passed
@JesseAbram JesseAbram deleted the update-substrate-to-polkadot-stable2409 branch April 15, 2025 13:34
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.

2 participants