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

Upgrade substrate to version 9.26 #482

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Aug 26, 2022

Changes

  • Upgrade substrate to version 9.26
  • Use ORML for oracle instead of chainlink feed

Tests


Issues

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 4 committers have signed the CLA.

❌ Brian Hoang
❌ baopnpt
❌ Sotatek-ThinhNguyen2
❌ SotaTek-TungNguyen2


Brian Hoang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ghost ghost changed the title Upgrade substrate to version 9.24 Upgrade substrate to version 9.26 Sep 7, 2022
Copy link

@Wiezzel Wiezzel left a comment

Choose a reason for hiding this comment

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

There is a lot of commented-out code in this PR. In my opinion it should be either:
a) Removed, or
b) Uncommented, or
c) Accompanied by some explanation why it's commented-out and when is it supposed to change.

Apart from these, I didn't find any problems with the code. Keep in mind though that I'm not familiar with this project. If there are some parts you're not sure about and you'd like to be reviewed closer, feel free to ask.

@@ -22,21 +22,23 @@ runtime-benchmarks = [
'dev-runtime/runtime-benchmarks',
'shot-runtime/runtime-benchmarks',
'pint-runtime/runtime-benchmarks',
'polkadot-service/runtime-benchmarks'
# 'polkadot-service/runtime-benchmarks'
Copy link

Choose a reason for hiding this comment

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

Why is this line commented out? A temporary disable or was it supposed to be removed?

use cumulus_primitives_core::ParaId;
use log::info;
use polkadot_parachain::primitives::AccountIdConversion;
use primitives::Block;
// use polkadot_parachain::primitives::AccountIdConversion;
Copy link

Choose a reason for hiding this comment

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

A line commented-out.

let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));
// let block: Block =
// generate_genesis_block(&config.chain_spec, state_version).map_err(|e| format!("{:?}", e))?;
// let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));
Copy link

Choose a reason for hiding this comment

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

Ditto.

info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
// info!("Parachain Account: {}", parachain_account);
// info!("Parachain genesis state: {}", genesis_state);
// info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });
Copy link

Choose a reason for hiding this comment

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

Ditto.

// raw_downward_messages: vec![],
// raw_horizontal_messages: vec![],
// }
// }
Copy link

Choose a reason for hiding this comment

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

Ditto.

@@ -217,13 +223,15 @@ impl pallet_sudo::Config for Runtime {

impl cumulus_pallet_parachain_system::Config for Runtime {
type Event = Event;
type OnValidationData = ();
// type OnValidationData = ();
Copy link

Choose a reason for hiding this comment

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

Commented out code.

}

impl orml_currencies::Config for Runtime {
type Event = Event;
// type Event = Event;
Copy link

Choose a reason for hiding this comment

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

Ditto.

type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
type TransactionByteFee = TransactionByteFee;
// type TransactionByteFee = TransactionByteFee;
Copy link

Choose a reason for hiding this comment

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

Ditto.

@@ -214,13 +220,15 @@ impl pallet_sudo::Config for Runtime {

impl cumulus_pallet_parachain_system::Config for Runtime {
type Event = Event;
type OnValidationData = ();
// type OnValidationData = ();
Copy link

Choose a reason for hiding this comment

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

Ditto.

}

impl orml_currencies::Config for Runtime {
type Event = Event;
// type Event = Event;
Copy link

Choose a reason for hiding this comment

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

Ditto.

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.

5 participants