Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Feature/update to polkadot v0 9 8 #153

Merged
merged 69 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
029e2a9
improve variable name (#9108)
gui1117 Jun 14, 2021
b81332b
execute system integrity_test also (#9104)
gui1117 Jun 14, 2021
05cac0d
Decommit instance memory after a runtime call on Linux (#8998)
pepyakin Jun 14, 2021
f32aa22
Test restoring zeroed data (#9011)
pepyakin Jun 15, 2021
cdc55fe
Frame `remove_all` with size limit. (#9106)
cheme Jun 15, 2021
7f09a76
fix: CARGO_TARGET_DIR_freeze (#9114)
eopb Jun 15, 2021
d30b6e3
Emit error when construct_runtime imports a non-existent pallet part …
KiChjang Jun 16, 2021
f88f4ed
Add Control to Growth of the Staking Pallet (#8920)
shawntabrizi Jun 16, 2021
c3e9fcf
Do not run pallet_ui test with conditional-storage feature (#9122)
gui1117 Jun 16, 2021
286d7ce
grandpa: cleanup sync bounds (#9127)
andresilva Jun 16, 2021
63a0d0b
Migrate pallet-elections to pallet attribute macro (#9088)
shaunxw Jun 16, 2021
955633c
Make backwards compatible with CountedMap (#9126)
shawntabrizi Jun 16, 2021
ede9bc1
Avoid running some test 2 times when unneeded (#9124)
gui1117 Jun 16, 2021
e447c49
Aura: Skip initialize block & remove cache (#9132)
bkchr Jun 17, 2021
34d4bb0
Make it possible to override maximum payload of RPC (#9019)
kianenigma Jun 17, 2021
f6b1197
double the allocator limit (#9102)
kianenigma Jun 17, 2021
df1165d
grandpa: restrict grandpa gossip (#9131)
andresilva Jun 18, 2021
8b4df6a
babe: add comments to block weight and expose block_weight function (…
andresilva Jun 19, 2021
4d9f03d
slots: slot lenience must take into account block proposal portion (#…
andresilva Jun 19, 2021
d03a91a
make SelectChain async (#9128)
andresilva Jun 20, 2021
d6c33e7
New Weights for All Pallets (#9148)
shawntabrizi Jun 21, 2021
abbe24e
fix some failing ui tests (#9157)
coriolinus Jun 21, 2021
df4a588
grandpa: don't use block_on in Environment::report_equivocation (#9154)
andresilva Jun 21, 2021
97338fc
Fast sync (#8884)
arkpar Jun 22, 2021
4ac2a53
Fix allocator waste assessment in docs (#9167)
tomusdrw Jun 22, 2021
0982f10
Add dummy Debug instance to authority discovery service. (#9156)
eskimor Jun 22, 2021
088464e
Add `substrate-rpc-subscription` to exceptions in alert (#9172)
tomaka Jun 22, 2021
6242d37
try-runtime-cli: Add execute-block subcommand (#9077)
emostov Jun 22, 2021
63c4b49
consensus: remove unused offline tracker (#9178)
andresilva Jun 23, 2021
54813c8
grandpa: fix broken line breaks in logging (#9179)
andresilva Jun 23, 2021
e4d879c
Add PolkaFoundry, PolkaSmith SS58 address (#8623)
thanhtung6824 Jun 23, 2021
96d7fe8
Remove Unused `AccountIndex` (#9149)
shawntabrizi Jun 23, 2021
4d792cf
node-template: remove redundant types from runtime (#9161)
disconnect3d Jun 23, 2021
ecf1b87
fix typo (#9184)
gui1117 Jun 23, 2021
e6cd6b1
Fixed typo in comment (#9182)
jeluard Jun 23, 2021
7dc2534
Less slices (#9176)
gilescope Jun 23, 2021
01ff4ce
Result<Option<>> rather than Option<Option<>> (#9119)
gilescope Jun 23, 2021
7170fda
Fix alert about delay between best and finalized block (#9150)
tomaka Jun 23, 2021
550d64c
Transaction Pool docs (#9056)
tomusdrw Jun 23, 2021
63ab278
Fix to support u32::MAX (#9188)
gilescope Jun 24, 2021
76cc00f
Use MAX associated const (#9196)
gilescope Jun 24, 2021
8a9a8f1
Add OriginTrail Parachain to SS58 Registry (#9067)
kotlarmilos Jun 24, 2021
77dcc4f
Remove RandomNumberGenerator (#9198)
bkchr Jun 24, 2021
bab9dec
Use MIN associated const (#9199)
gilescope Jun 24, 2021
df50122
Migrate `pallet-transaction-payment` to new pallet attribute macro (#…
koushiro Jun 25, 2021
eae82ab
contracts: Remove weight pre charging (#8976)
athei Jun 25, 2021
c2d6fa7
Support NMap in generate_storage_alias (#9147)
KiChjang Jun 28, 2021
c44e5d6
Decouple Staking and Election - Part 3: Signed Phase (#7910)
kianenigma Jun 28, 2021
d1f905b
change balance pallet reference (#9205)
ashWhiteHat Jun 28, 2021
24b26b9
move set_emergency_election_result before submit (#9215)
coriolinus Jun 28, 2021
c6240ce
Improve Staking Limits (#9193)
shawntabrizi Jun 28, 2021
682e5e8
Add public accessor for tip amount (#9219)
JoshOrndorff Jun 28, 2021
3355dbc
change reference trait to config (#9224)
ashWhiteHat Jun 29, 2021
3f7d2b7
Remove `txpool` as an export of `sc_transaction_pool`, exporting the …
expenses Jun 29, 2021
8712b36
Prep for Altair - Add ss58 prefix (#9123)
mikiquantum Jun 30, 2021
631d4cd
Move client only primitives to another dir (#9220)
gilescope Jun 30, 2021
a4c8ab9
pallet-vesting: Move `tests` module and create `mock` module (#9234)
emostov Jun 30, 2021
4b5c2f7
Do not call `initialize_block` before any runtime api (#8953)
bkchr Jul 1, 2021
1b758b2
Make a few things for staking miner (#9241)
kianenigma Jun 30, 2021
74101dc
Fix custom on runtime upgrade not being called (#9399)
bkchr Jul 20, 2021
e9e163f
Merge remote-tracking branch 'upstream/polkadot-v0.9.8' into feature/…
MRamanenkau Sep 28, 2022
fd11ab5
Update lock file
MRamanenkau Sep 28, 2022
3ebbcab
Post merge fixes
MRamanenkau Sep 28, 2022
de21431
Make build and test compile
MRamanenkau Sep 28, 2022
191a12c
Fix ddc-metrics-offchain-worker test
MRamanenkau Sep 29, 2022
49777b8
Add release notes and update spec version
MRamanenkau Sep 30, 2022
cec97c5
Code review
MRamanenkau Oct 4, 2022
03a6f19
Add storage migrations
MRamanenkau Nov 22, 2022
d086fa3
Merge branch 'feature/update-to-polkadot-v0-9-5' into feature/update-…
MRamanenkau Nov 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ trim_trailing_whitespace=true
max_line_length=100
insert_final_newline=true

[*.md]
max_line_length=80
indent_style=space
indent_size=2

[*.yml]
indent_style=space
indent_size=2
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ test-linux-stable: &test-linux
script:
# this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests
- time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml
- time cargo test -p frame-support-test --features=conditional-storage --manifest-path frame/support/test/Cargo.toml # does not reuse cache 1 min 44 sec
- time cargo test -p frame-support-test --features=conditional-storage --manifest-path frame/support/test/Cargo.toml --test pallet # does not reuse cache 1 min 44 sec
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout
- sccache -s

Expand Down
6 changes: 3 additions & 3 deletions .maintain/monitoring/alerting-rules/alerting-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ groups:
# Under the assumption of an average block production of 6 seconds,
# "best" and "finalized" being more than 10 blocks apart would imply
# more than a 1 minute delay between block production and finalization.
expr: '(polkadot_block_height_number{status="best"} - ignoring(status)
polkadot_block_height_number{status="finalized"}) > 10'
expr: '(polkadot_block_height{status="best"} - ignoring(status)
polkadot_block_height{status="finalized"}) > 10'
for: 8m
labels:
severity: critical
Expand Down Expand Up @@ -134,7 +134,7 @@ groups:
##############################################################################

- alert: ContinuousTaskEnded
expr: '(polkadot_tasks_spawned_total{task_name != "basic-authorship-proposer"} == 1)
expr: '(polkadot_tasks_spawned_total{task_name != "basic-authorship-proposer", task_name != "substrate-rpc-subscription"} == 1)
- on(instance, task_name) group_left() (polkadot_tasks_ended_total == 1)'
for: 5m
labels:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.22.0]
### Changed
- Updated Substrate to polkadot-v0.9.8

## [2.21.0]
### Changed
- Updated Substrate to polkadot-v0.9.5
Expand Down
58 changes: 28 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ members = [
"client/network/test",
"client/offchain",
"client/peerset",
"client/allocator",
"client/proposer-metrics",
"client/rpc",
"client/rpc-api",
Expand Down Expand Up @@ -127,7 +128,6 @@ members = [
"frame/utility",
"frame/vesting",
"frame/ddc-pallet",
"primitives/allocator",
"primitives/api",
"primitives/api/proc-macro",
"primitives/api/test",
Expand All @@ -139,7 +139,6 @@ members = [
"primitives/authorship",
"primitives/block-builder",
"primitives/blockchain",
"primitives/chain-spec",
"primitives/consensus/aura",
"primitives/consensus/babe",
"primitives/consensus/common",
Expand Down
1 change: 1 addition & 0 deletions bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ pub fn new_full_base(
babe_link,
can_author_with,
block_proposal_slot_portion: SlotProportion::new(0.5),
max_block_proposal_slot_portion: None,
telemetry: telemetry.as_ref().map(|x| x.handle()),
};

Expand Down
8 changes: 6 additions & 2 deletions bin/node/executor/tests/submit_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,16 @@ fn submitted_transaction_should_be_valid() {
<frame_system::Account<Runtime>>::insert(&address, account);

// check validity
let res = Executive::validate_transaction(source, extrinsic).unwrap();
let res = Executive::validate_transaction(
source,
extrinsic,
frame_system::BlockHash::<Runtime>::get(0),
).unwrap();

// We ignore res.priority since this number can change based on updates to weights and such.
assert_eq!(res.requires, Vec::<TransactionTag>::new());
assert_eq!(res.provides, vec![(address, 0).encode()]);
assert_eq!(res.longevity, 2048);
assert_eq!(res.longevity, 2047);
assert_eq!(res.propagate, true);
});
}
2 changes: 1 addition & 1 deletion bin/node/runtime/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ mod multiplier_tests {
fn weight_to_fee_should_not_overflow_on_large_weights() {
let kb = 1024 as Weight;
let mb = kb * kb;
let max_fm = Multiplier::saturating_from_integer(i128::max_value());
let max_fm = Multiplier::saturating_from_integer(i128::MAX);

// check that for all values it can compute, correctly.
vec![
Expand Down
Loading