-
Notifications
You must be signed in to change notification settings - Fork 41
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
Update to Polkadot v0.9.6 #219
Conversation
primitives/src/constants.rs
Outdated
|
||
// Prediction Market parameters | ||
parameter_types! { | ||
pub const AdvisoryBond: Balance = 25 * DOLLARS; | ||
pub const AdvisoryBond: Balance = 25 * BASE; |
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.
Why was this changed? It should stay low for the testnet.
primitives/src/constants.rs
Outdated
pub const DisputeBond: Balance = 5 * BASE; | ||
pub const DisputeFactor: Balance = 2 * BASE; | ||
pub const DisputePeriod: BlockNumber = BLOCKS_PER_DAY; | ||
pub const MaxCategories: u16 = 10; | ||
pub const MaxDisputes: u16 = 6; | ||
pub const MinCategories: u16 = 2; | ||
pub const OracleBond: Balance = 50 * DOLLARS; | ||
pub const OracleBond: Balance = 50 * BASE; |
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.
Same as above
primitives/src/constants.rs
Outdated
pub const PmPalletId: PalletId = PalletId(*b"zge/pred"); | ||
pub const ReportingPeriod: BlockNumber = BLOCKS_PER_DAY; | ||
pub const ValidityBond: Balance = 50 * DOLLARS; | ||
pub const ValidityBond: Balance = 50 * BASE; |
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.
Same
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.
My Bad. Fixed
Needs to bump the spec version |
Since Also, since we expose |
Support for |
Ok, makes sense. Could you make an issue for this change though? since it seems like something that would be reasonable to do in the future but is lower priority. |
Done -> #220 |
@sea212 Can you do a quick review on this? |
Sure, I'll take a look at it. |
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.
Looks good to me.
The currency adjustments are also appropriate and the ExistentialDeposit
was also adjusted accordingly, therefore nothing really but the names for the magnitudes of currency should change.
primitives/src/constants.rs
Outdated
pub const CENTS: Balance = DOLLARS / 100; // 1_000_000 | ||
pub const MILLICENTS: Balance = CENTS / 1000; // 1_000 | ||
pub const CENT: Balance = BASE / 100; // 100_000_000 | ||
pub const MILI: Balance = CENT / 10; // 10_000_000 |
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.
Just a minor spelling error: Mili -> Milli
scripts/parachain/local.sh
Outdated
PARACHAIN_ID=9123 | ||
POLKADOT_BRANCH=release-v0.9.4 | ||
POLKADOT_BRANCH=release-v0.9.7 |
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.
Should this be v0.9.7?
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.
v0.9.7
because Rococo is probably using this version
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.
But this is the local environment, isn't it? If I understand correctly, we launch the Rococo chain locally "rococo-local". This way or another, I don't mind if it works properly.
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.
The branch version is mirroring a production environment the same way PARACHAIN_CHAIN
is battery_station_staging
instead of dev
.
Changed back to 0.9.6
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.
Thanks for the clarification.
@@ -65,7 +65,7 @@ pub fn new_partial( | |||
config.transaction_pool.clone(), | |||
config.role.is_authority().into(), | |||
config.prometheus_registry(), | |||
task_manager.spawn_handle(), | |||
task_manager.spawn_essential_handle(), |
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.
Does this prevent a client from further operating a tx pool when an error occurs, i.e. the tx pool is shut down (and therefore the client stops operating, at least this service)?
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.
I don't know the difference between an ordinary and an essential task. This code was simply copied and pasted from the 0.9.6
cumulus branch.
https://core.tetcoin.org/rustdocs/v2.0.1/sc_service/struct.TaskManager.html does not state the difference and paritytech/cumulus#496 does not tell why spawn_handle
was replaced.
A spawned task is a separated unit of computation (T: Send
) that lives with its own context and I don't know if a failed task will prevent the client from further operating a tx pool. If you see https://github.com/paritytech/substrate/blob/4d9f03d3d6d0ceec0708b1a23978feee12f5b0bb/client/service/src/task_manager/mod.rs#L149-L157, then it might be possible that spawn_essential_handle
will improve the robustness of the node.
* Update to Polkadot v0.9.6 * Typo * Change branch to 0.9.6 * Rebase
No description provided.