Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
455 commits
Select commit Hold shift + click to select a range
994a173
Validators don't get slashed for offlineness until 10% at once (#4232)
gavofyork Nov 27, 2019
b853a4f
safe multi-era slashing for NPoS (#3846)
rphmeier Nov 27, 2019
4723156
back-off block proposal (#4235)
rphmeier Nov 27, 2019
657736e
Use raw public key instead of compressed (#4234)
fubuloubu Nov 27, 2019
b9e7f09
The storage runtime interface should not enforce a hash type (#4231)
bkchr Nov 28, 2019
2ffaf05
Recover transaction pool on light client (#3833)
svyatonik Nov 28, 2019
1d746bf
Prune some duplicate dependencies (#4219)
koushiro Nov 28, 2019
25b99d4
Parameter trait for Time::Moment (#4237)
kigawas Nov 28, 2019
99dff40
improve doc (#4239)
gui1117 Nov 28, 2019
7492d0b
Handle Grafana server bind errors gracefuly. (#4241)
tomusdrw Nov 28, 2019
4031142
Check block CLI command (#4240)
arkpar Nov 28, 2019
d9fca7e
Commission is stated as percent of rewards (#4243)
gavofyork Nov 28, 2019
ac56b13
Fixed node binary (#4244)
arkpar Nov 29, 2019
93aabb7
Check in block authoring that we can author with current authoring ve…
bkchr Nov 29, 2019
229f715
Update kvdb-rocksdb again (#4236)
bkchr Nov 29, 2019
e3245d4
Tracing - Implement feature to record values with span creation (#4242)
mattrutherford Nov 29, 2019
bf15ecf
Grandpa: save all completed prior rounds (#4203)
seerscode Nov 29, 2019
d5e189e
Make weights compatible with u64 (#4192)
stanislav-tkach Nov 29, 2019
b410852
remove unused file (#4251)
gui1117 Nov 29, 2019
ccd72ad
Fix filling the db path in the CLI (#4253)
bkchr Nov 30, 2019
47312a0
Fix db path on normal run. (#4254)
seerscode Nov 30, 2019
82fbf9a
Check filename length is valid in keystore (#4255)
bkchr Nov 30, 2019
64177da
Economic fixes for democracy module (#4256)
gavofyork Dec 1, 2019
77324be
Add some logs, fix reorg import. (#4250)
tomusdrw Dec 1, 2019
33476f0
Fix functions doc. (#4260)
seerscode Dec 1, 2019
ea8dd67
Use result. (#4259)
seerscode Dec 1, 2019
1903f36
Introduce `VestingCurrency` trait (#4257)
shawntabrizi Dec 1, 2019
28c329e
The crate rename (#4223)
gnunicorn Dec 2, 2019
fe07382
Fix sc-tracing-* -> sc-transaction- (#4263)
gnunicorn Dec 2, 2019
a5739a9
Add `swap` and `decode_len` to `DoubleMap` finishing #3749 (#4264)
gui1117 Dec 2, 2019
d8d5da2
Improve error message on `can_author_with` failure (#4262)
bkchr Dec 2, 2019
b84b5ec
Fix phragmen elections. (#4266)
gavofyork Dec 2, 2019
8091a0e
Whitespace fix from #4266 review.
gavofyork Dec 2, 2019
ee3a1f1
interruptible test and build jobs (#4271)
TriplEight Dec 2, 2019
561457e
Fix sp-session typo (#4273)
ascjones Dec 2, 2019
90fc723
docs/CODEOWNERS: Add mxinden to authority discovery modules (#4275)
mxinden Dec 2, 2019
c837c8d
Another fix for elections-phragmen (#4276)
gavofyork Dec 2, 2019
368318c
Enumeratable dispatches using unhashed index in key. (#4278)
gavofyork Dec 2, 2019
186f9f8
Council members (#4279)
kwingram25 Dec 3, 2019
042dc45
Reputation changes requires reason (#4277)
arkpar Dec 3, 2019
e2e3c24
client: Introduce --sentry-nodes flag (#4285)
mxinden Dec 3, 2019
f637962
Rename OffchainWorker internal method. (#4267)
tomusdrw Dec 3, 2019
6e242a5
pallet-evm: weight calculation for call/create based on gas provided …
sorpaas Dec 3, 2019
fc6914c
fix: Typo granpda -> grandpa (#4286)
fubuloubu Dec 3, 2019
b517a82
Update exit-future and make sc-cli compile on wasm (#4289)
expenses Dec 4, 2019
6ea8efa
Use timestamp deltas in grafana-data-store (#4199)
expenses Dec 4, 2019
60f2b7d
Revalidate some transactions on every block import. (#4292)
tomusdrw Dec 4, 2019
333f3a7
client/authority-discovery: Fix interval_at to fire on start (#4274)
mxinden Dec 4, 2019
7d99220
Add linear back-off for aura slot workers (#4293)
drewstone Dec 5, 2019
0b0d9d4
Expose some of session module's storage as public, as well as the set…
Sushisource Dec 5, 2019
ff16e95
Minor fix toml files (#4291)
en Dec 5, 2019
41d095f
Use balance capped to u64 for transaction payment RPC. (#4290)
tomusdrw Dec 5, 2019
2414f94
Tone down warnings when resubmitting to the pool. (#4294)
tomusdrw Dec 5, 2019
6e069eb
client/authority-discovery: Increase margins for interval test (#4297)
mxinden Dec 5, 2019
75dadcf
Move legacy_proto to protocol (#4296)
tomaka Dec 5, 2019
2b473e4
client/authority-discovery: Limit the amount of sentries per authorit…
mxinden Dec 5, 2019
403504e
Change order of events emitted from transfer. (#4301)
shawntabrizi Dec 5, 2019
e1c674c
Allow members of groups to change their key (#4300)
gavofyork Dec 5, 2019
f8e9f84
Fix Contracts rpc output format. (#4304)
tomusdrw Dec 5, 2019
6653043
Fix order of operation in membership (#4306)
gavofyork Dec 5, 2019
3ee5d3b
Perthings: derive PartialOrd and Ord under no_std. (#4309)
shaunxw Dec 6, 2019
5f0b3dd
client/authority-discovery: Warn when specifying too many sentry node…
mxinden Dec 6, 2019
a4404bc
Merge txpool-runtime-api with txpool-api (#4320)
tomusdrw Dec 6, 2019
52aed2f
Disable record_metrics_slice in grafana macro on wasm (#4312)
expenses Dec 7, 2019
91efa7b
New protocolid for flaming fir (#4323)
ddorgan Dec 7, 2019
89bc9cf
allow storage value build to put no value (#4319)
gui1117 Dec 7, 2019
4795b81
Fix `check_polkadot` CI check (#4317)
bkchr Dec 7, 2019
21e4f08
Rename folder: primitives/sr-primitives -> primitives/runtime (#4280)
kigawas Dec 9, 2019
3d0c93f
Use header metadata in state full and refactor. (#3757)
marcio-diaz Dec 9, 2019
8fe4b71
Remove slog-async Github (#4329)
gnunicorn Dec 9, 2019
9bc29f8
More comprehensive identity system (#4326)
gavofyork Dec 9, 2019
4f81d2e
sp-transaction-pool-api: make default std, remove unused sp-core depe…
ascjones Dec 9, 2019
0a6817b
Limit number of uncles that can be provided. (#4298)
marcio-diaz Dec 9, 2019
afe6bef
Don't assume a fixed length for `endowed_accounts` (#4330)
bkchr Dec 9, 2019
1caae8b
Fix panic in telemetry (#4336)
tomaka Dec 9, 2019
6b70f12
Introduce prefixed storage with enumeration (#4185)
gui1117 Dec 9, 2019
af370c7
Fix compilation of `sp-authorship` (#4337)
bkchr Dec 9, 2019
8cb06da
Remove depenendcy on sc-consensus-slots (#4321)
tomusdrw Dec 9, 2019
67476ce
Fix build for full_crypto (#4339)
kigawas Dec 10, 2019
a9f49ad
Fix check-polkadot (#4341)
kigawas Dec 10, 2019
f588aa5
Rename: primitives/sr-std -> primitives/sp-std (#4327)
kigawas Dec 10, 2019
90a82ec
Wrong feature name `disable_allocator` in sr-io (#4342)
h4x3rotab Dec 10, 2019
36a704b
Remove cycling dependency from `sp-api` (#4343)
bkchr Dec 10, 2019
2b80f06
Fix warnings when compiling runtime. (#4332)
tomusdrw Dec 10, 2019
b2a6bd9
Rename: primitives/sr-io -> primitives/sp-io (#4328)
kigawas Dec 10, 2019
051db42
remove unnecessary client-db dependency (#4348)
gnunicorn Dec 10, 2019
5e6429f
remove unnecessary block-builder dependency (#4351)
debris Dec 10, 2019
52373bf
break sp-api dependency cycle (#4352)
gnunicorn Dec 10, 2019
d7c3fa2
Break appcrypto dep cycle (#4347)
gnunicorn Dec 10, 2019
600843e
fix typos in identity pallet docs (#4350)
joepetrowski Dec 10, 2019
de03777
Fix cycle dependency in `sp-runtime-interface` (#4353)
bkchr Dec 11, 2019
545c1e9
Including runners-up in check for defunct phragmen voter. (#4349)
jnaviask Dec 11, 2019
19835b4
Fix a bunch of low work dependency cycles (#4354)
gnunicorn Dec 11, 2019
824009b
Fix folder names in primitives (#4358)
gnunicorn Dec 11, 2019
9a264a7
Fix token economics url. (#4355)
marcio-diaz Dec 11, 2019
09917a5
Improve is_member and is_runner. (#4356)
marcio-diaz Dec 11, 2019
9ce7e1f
Clean up crate names and locations (#4361)
gnunicorn Dec 11, 2019
050424e
Allow referendums to begin out of order (#4345)
gavofyork Dec 11, 2019
b5414b6
Fix folder names in client and test (#4360)
gnunicorn Dec 11, 2019
3d17cbd
`decl_error!` document that the error needs to be registered (#4366)
bkchr Dec 11, 2019
d79e31e
Revamp reaping rules (#4371)
gavofyork Dec 12, 2019
c6fc2e6
Update rustdocs landing page (#4375)
shawntabrizi Dec 12, 2019
6e9be55
update comments in authority discovery (#4390)
kigawas Dec 13, 2019
723148f
Extract consensus_gossip.rs and put it in its own crate (#4284)
tomaka Dec 13, 2019
605f5c1
Adding in-between variants of crate names to rename script (#4381)
gnunicorn Dec 14, 2019
9f4c7b7
Fix key collision for child trie (#4162)
cheme Dec 14, 2019
6050a8d
babe: exponential backoff on missed blocks (#4397)
rphmeier Dec 15, 2019
11ee6a0
Simplify adding new Ss58AddressFormat variant and add KulupuAccountDi…
sorpaas Dec 15, 2019
13b1308
Remove proposal when it is refused (#4399)
gavofyork Dec 16, 2019
0176576
Identity module enhancements (#4401)
gavofyork Dec 16, 2019
40a16ef
[big refactor] Remove crate aliasing. (#4395)
tomusdrw Dec 16, 2019
0d02284
Make sudo use `decl_error!` (#4369)
shawntabrizi Dec 16, 2019
48f2d8b
impl iter_prefix on doublemap (#4388)
gui1117 Dec 17, 2019
93cdb62
Use decl_error in the treasure module (#4370)
stanislav-tkach Dec 17, 2019
86f1745
Use decl_error in stacking module (#4387)
stanislav-tkach Dec 17, 2019
40b1e53
Fix naming of utility crate (it's a legit pallet) (#4408)
gavofyork Dec 17, 2019
0102348
recover light client integration tests (#4377)
svyatonik Dec 17, 2019
ff75a19
Fix frame_system renaming in contruct_runtime (#4412)
bkchr Dec 17, 2019
f548309
[client cli] generic blocknumber (#4376)
niklasad1 Dec 17, 2019
2f1f3bd
docs: fix link to babe (#4418)
sorpaas Dec 17, 2019
8db5194
Setting versions locally towards 2.0 release (#4404)
gnunicorn Dec 17, 2019
a8ea665
Update Balances Pallet events to help block explorers (#4389)
shawntabrizi Dec 17, 2019
16817ab
minor typos in traits docs (#4425)
joepetrowski Dec 17, 2019
97d6531
Remove incorrect assumption that runners-up were sorted by account (#…
gavofyork Dec 18, 2019
6f9d801
Fix the subkey error message (#4428)
gavofyork Dec 18, 2019
56b127e
More `decl_error!` migrations (#4427)
shawntabrizi Dec 18, 2019
df750ba
Add Edgeware network ID to core/crypto and subkey (#4426)
drewstone Dec 18, 2019
b4a39f3
pallet-evm: default implementation for FeeCalculator and ConvertAccou…
sorpaas Dec 18, 2019
e3b382c
Add dyn for `slog::SerdeValue` in telemetry (#4435)
kigawas Dec 18, 2019
496dce5
RPCs for reserved peers (#4423)
rphmeier Dec 18, 2019
b84a4c6
client: Do not set fork sync request via network-gossip (#4439)
rphmeier Dec 18, 2019
00bb382
grandpa: log everything under afg target (#4443)
andresilva Dec 18, 2019
adc8d50
grandpa: fix slow gossip test (#4440)
andresilva Dec 18, 2019
946d43c
Fix typo in comment (#4433)
Dec 18, 2019
ab4aca3
Document TransactionStatus and fix termination conditions. (#4446)
tomusdrw Dec 18, 2019
7ba240f
Few extra tests for phragmen (#4451)
kianenigma Dec 19, 2019
fef0e75
Make `decl_error!` errors usable (#4449)
bkchr Dec 19, 2019
5a8851c
Update grafana-data-source to tokio 0.2 (#4441)
expenses Dec 19, 2019
36c7fcf
Fix Fees in Substrate (#4421)
shawntabrizi Dec 19, 2019
4b7f777
Add new event for registering deposits. (#4459)
gavofyork Dec 19, 2019
ab217bf
Warn about using --rpc-external and --ws-external options (#4448)
stanislav-tkach Dec 19, 2019
d819774
babe: remove unused slot_duration variable (#4461)
andresilva Dec 19, 2019
e267d21
Update Balances Pallet for `decl_error!` (#4405)
shawntabrizi Dec 19, 2019
8a70cde
Subkey add support for interactive password (#4465)
bkchr Dec 20, 2019
0fae69b
use multiple threads in integration tests (#4379)
svyatonik Dec 20, 2019
e1713ba
Fix warnings and make CI working again (#4469)
bkchr Dec 20, 2019
7cdf939
Shared params in CLI API (#4466)
arkpar Dec 20, 2019
9e2a022
Migrate membership, nicks, scored-pool and session to decl_error (#4463)
stanislav-tkach Dec 20, 2019
07b9277
Add `Clone` bound to the `Origin`. (#4472)
tomusdrw Dec 20, 2019
e0a6b0b
Add ProposalRejected event to Treasury (#4468)
gavofyork Dec 20, 2019
a986255
Rename ChainSpec field (#4471)
JoshOrndorff Dec 20, 2019
5461c56
Migrate generic-asset, identity and im-online to decl_error (#4473)
stanislav-tkach Dec 21, 2019
5dece71
Clean up definition for custom ss58 address formats (#4470)
sorpaas Dec 21, 2019
bbb363f
Extend Utility pallet with multisig and pseudonyms (#4462)
gavofyork Dec 22, 2019
e3962b6
Twitter field for IdentityInfo (in a back-compat way) (#4476)
gavofyork Dec 22, 2019
56d9f64
fix warnings in grafana module (#4486)
NikVolf Dec 23, 2019
042c9bb
Change log level for DhtEvent::ValueNotFound from warn to debug (#4485)
stanislav-tkach Dec 23, 2019
73ae66a
ci: increase git cloning depth to 100 (#4481)
gabreal Dec 23, 2019
afd36f4
Migrate election-phragmen, election contracts and authorship to decl_…
stanislav-tkach Dec 24, 2019
dd34fb4
Fix replace_previous of Ready Transaction Queue. (#4488)
tomusdrw Dec 24, 2019
963b7be
Extract execution engines definitions into their own crates (#4489)
pepyakin Dec 24, 2019
0e9db86
Remove unnecessary unsafe. (#4494)
pepyakin Dec 24, 2019
445239d
use generated ModuleToIndex type (#4495)
xlc Dec 24, 2019
85de8d9
Use `sc_network::NetworkStateInfo` instead of implementing redundant …
kigawas Dec 24, 2019
584d375
fix ligature (#4497)
kigawas Dec 25, 2019
c3a4c55
Check aura slot numbers are strictly increasing (#4020)
NikVolf Dec 26, 2019
9f2caf2
Support loading the URI from a file in subkey (#4503)
bkchr Dec 27, 2019
0fcb22c
Improve subkey error reporting. (#4504)
NikVolf Dec 27, 2019
d1012cd
less dupes, cleanup (#4491)
TriplEight Dec 28, 2019
43ee8a3
Fix cli for structopt 0.3.7 and pin to that version (#4509)
bkchr Dec 28, 2019
dacb199
Make wasm-builder remove invalid members (#4510)
bkchr Dec 29, 2019
cd5cb4f
Increase metadata version to 10 (#4512)
bkchr Dec 30, 2019
c2fccb3
update libsecp256k1 (#4513)
NikVolf Dec 30, 2019
20a9b15
Make `MultiSigner` use compressed ECDSA public key (#4502)
bkchr Dec 31, 2019
73049c0
Refactor to use only chain info (#4516)
NikVolf Jan 2, 2020
055661c
Insert key via node RPC for subkey (#4514)
NikVolf Jan 2, 2020
93569d0
Update libp2p to fix build (#4522)
NikVolf Jan 2, 2020
63c5d04
Check for invalid modules when registering a pallet in construct_runt…
bkchr Jan 2, 2020
4119391
ServerToWorkerMsg -> ServiceToWorkerMsg (#4519)
tomaka Jan 3, 2020
b94464f
Update flamingfir spec for new testnet (#4518)
ddorgan Jan 3, 2020
5054bd9
Make sure docs given to `decl_module!` are passed to the module struc…
bkchr Jan 3, 2020
e244180
Fix `period` of offchain transactions. (#4521)
tomusdrw Jan 3, 2020
e2b23f2
triggers srml-contracts-waterfall ci (#4490)
TriplEight Jan 3, 2020
bdf6043
client/authority-discovery: Limit number of connections to authoritie…
mxinden Jan 3, 2020
5842f6e
Update kvdb-* and trie (#4483)
NikVolf Jan 3, 2020
2b1e9eb
*: Register network event stream for authority discovery (#4344)
mxinden Jan 3, 2020
d98ffbf
check_polkadot now runs nightly and on master (merges) only (#4492)
TriplEight Jan 3, 2020
64431f6
fix expect text (#4530)
NikVolf Jan 4, 2020
6e0a487
Update copyright year (#4532)
shawntabrizi Jan 5, 2020
e89ff86
client: hack around fork blocks deserialization issue (#4539)
andresilva Jan 6, 2020
67493b0
Remove jimpo from CODEOWNERS (#4541)
pepyakin Jan 6, 2020
b4503ac
client: helper to create standalone client without service (#4536)
andresilva Jan 6, 2020
597df6e
client: allow reverting finalized blocks (#4535)
andresilva Jan 6, 2020
3e65111
Spaces to tabs.
gavofyork Jan 6, 2020
18d734c
client: add a block blacklist extension (#4544)
andresilva Jan 6, 2020
6d292c8
typo: lead -> leave (#4546)
JoshOrndorff Jan 6, 2020
ddb309a
Fix error message (#4549)
gavofyork Jan 7, 2020
5420775
`decl_event` support trailing comma in args (#4554)
bkchr Jan 7, 2020
9178b42
do not chill indirectly-slashed nominators (#4553)
rphmeier Jan 7, 2020
d41ccd6
Expose load_spec (#4556)
arkpar Jan 7, 2020
026fd3f
client/network-gossip: Remove `GossipEngine::abort` method (#4552)
mxinden Jan 7, 2020
7f010fc
Add a `browser-utils` crate (#4394)
expenses Jan 7, 2020
f8e5c56
Remove timing based bits of grafana test (#4558)
expenses Jan 7, 2020
67f9e24
Fix Request::new documentation (#4560)
stanislav-tkach Jan 7, 2020
eae576f
i/o stats for backend databases (#4525)
NikVolf Jan 7, 2020
ff509da
grandpa: guarantee that vote limit is never lower than vote base (#4563)
andresilva Jan 7, 2020
ae46db6
Use single map and `remove_all` for `EventTopics` (#4566)
shawntabrizi Jan 8, 2020
240b9c8
txpool: unify client generic name (#4565)
kigawas Jan 8, 2020
f7890fd
Bumped runtime version (#4568)
arkpar Jan 8, 2020
91ddc4f
Keystore fix default path (#4570)
bkchr Jan 8, 2020
fc6b7e8
Wasm executor should provide stubs for unknown externs (wasmi) (#4550)
cecton Jan 9, 2020
fb1f980
Update `per_thing` docs (#4575)
shawntabrizi Jan 9, 2020
e215bc8
Introduce rebond (#4374)
marcio-diaz Jan 9, 2020
e569c03
Add missing weights to Identity module. (#4577)
marcio-diaz Jan 9, 2020
e81f7c6
Add tipping into treasury (#4480)
gavofyork Jan 9, 2020
f5cdc2f
Update getting started link (#4581)
shawntabrizi Jan 9, 2020
bf3cdc2
Add an extra test to check rebond is a LIFO (#4578)
gavofyork Jan 9, 2020
6da8089
Prioritize new blocks over old forks when syncing (#4414)
arkpar Jan 9, 2020
1ec08e8
Update networking code to libp2p 0.14 (#4383)
tomaka Jan 9, 2020
d4e3ed7
Enabled wasmtime (#4569)
arkpar Jan 9, 2020
860b79b
Clean-ups in the network-gossip crate (#4542)
tomaka Jan 9, 2020
01cec5b
fix race in light_peer_imports_header_from_announce (#4579)
svyatonik Jan 9, 2020
dd72e2a
Fix some entries in CODEOWNERS (#4584)
pepyakin Jan 9, 2020
f1cc671
Introduce `OnReapAccount` (#4585)
shawntabrizi Jan 10, 2020
8974349
Add documentation to SubmitSignedTransaction and actually make it wor…
tomusdrw Jan 10, 2020
4ed0ad6
Remove requirement on `Hash = H256`, make `Proposer` return `StorageC…
bkchr Jan 10, 2020
cdceee2
Society pallet (#4170)
gavofyork Jan 10, 2020
7883b9d
Fix pallet-society on master (#4588)
bkchr Jan 10, 2020
ae9c6ea
Modify doublemap syntax (#4576)
gui1117 Jan 10, 2020
d302c58
fix society (#4594)
gui1117 Jan 10, 2020
dc4216a
Fix runners-up candidacy submission check in council (#4592)
kianenigma Jan 10, 2020
7c4f79b
Merge remote-tracking branch 'parity/master' into HEAD
expenses Jan 10, 2020
fd01451
Fix tests (#4597)
shawntabrizi Jan 10, 2020
8dc5675
Remove now unused `lang_items` feature in IO primitives (#4596)
Xanewok Jan 10, 2020
effe489
Fixes for pallets (#4595)
gavofyork Jan 10, 2020
4a23a31
Refactor some tests in tx-pool (#4603)
NikVolf Jan 11, 2020
4c9c6df
avoid timer in light client (#4602)
NikVolf Jan 11, 2020
0220137
Add test files I forgot to commit with #4520 (#4598)
bkchr Jan 11, 2020
9ded493
Add test for cli keystore path generation (#4571)
bkchr Jan 11, 2020
f84170a
remove duplicaate test. (#4607)
kaichaosun Jan 13, 2020
4646ff8
Improve PaysFee trait and dispatch info logic in utility module (#4606)
xlc Jan 13, 2020
e8ba500
fork tree: rebalance fork tree by max fork depth (#4605)
andresilva Jan 13, 2020
8be0d69
Fixed state pinning in state-db (#4557)
arkpar Jan 13, 2020
bd540a6
State-db I/o metrics (#4562)
NikVolf Jan 13, 2020
8e254d8
Allow node to add externalities extensions (#4583)
gnunicorn Jan 13, 2020
857f733
Add translate function for storage prefixed map. (#4555)
gui1117 Jan 13, 2020
d63ff7b
Disable equalize, avoiding consensus issue (#4608)
gavofyork Jan 13, 2020
c1dd9e5
Modifications
expenses Jan 13, 2020
6737632
Merge remote-tracking branch 'parity/master' into ashley-grandpa-futures
expenses Jan 13, 2020
46a6822
Re-add test as #[ignore]
expenses Jan 13, 2020
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ doc
.idea/
Dockerfile
.dockerignore
.local
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tab_width=4
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
max_line_length=120
max_line_length=100
insert_final_newline=true

[*.yml]
Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
**/*.rs.bk
*.swp
.wasm-binaries
polkadot/runtime/wasm/target/
core/executor/wasm/target/
core/test-runtime/wasm/target/
pwasm-alloc/target/
pwasm-libc/target/
pwasm-alloc/Cargo.lock
pwasm-libc/Cargo.lock
node/runtime/wasm/target/
bin/node/runtime/wasm/target/
**/._*
**/.criterion/
.vscode
Expand All @@ -21,3 +18,4 @@ rls*.log
*.orig
*.rej
**/wip/*.stderr
.local
190 changes: 130 additions & 60 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ stages:

variables:
GIT_STRATEGY: fetch
GIT_DEPTH: 100
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -49,6 +50,14 @@ variables:
- schedules
- web
- /^[0-9]+$/ # PRs
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
dependencies: []
interruptible: true
tags:
- linux-docker

Expand All @@ -72,7 +81,8 @@ check-runtime:
GITLAB_API: "https://gitlab.parity.io/api/v4"
GITHUB_API_PROJECT: "parity%2Finfrastructure%2Fgithub-api"
script:
- ./scripts/gitlab/check_runtime.sh
- ./.maintain/gitlab/check_runtime.sh
interruptible: true
allow_failure: true


Expand All @@ -83,7 +93,8 @@ check-line-width:
only:
- /^[0-9]+$/
script:
- ./scripts/gitlab/check_line_width.sh
- ./.maintain/gitlab/check_line_width.sh
interruptible: true
allow_failure: true


Expand Down Expand Up @@ -111,7 +122,7 @@ cargo-check-subkey:
except:
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cd ./subkey
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s

Expand All @@ -127,7 +138,7 @@ test-linux-stable: &test-linux
variables:
- $DEPLOY_TAG
script:
- time cargo test --all --release --verbose --locked |
- WASM_BUILD_NO_COLOR=1 time cargo test --all --release --verbose --locked |
tee output.log
- sccache -s
after_script:
Expand All @@ -139,8 +150,16 @@ test-linux-stable: &test-linux
paths:
- ${CI_COMMIT_SHORT_SHA}_warnings.log

test-dependency-rules:
stage: test
<<: *docker-env
except:
variables:
- $DEPLOY_TAG
script:
- .maintain/ensure-deps.sh

test-srml-staking: &test-srml-staking
test-frame-staking:
stage: test
<<: *docker-env
variables:
Expand All @@ -152,14 +171,25 @@ test-srml-staking: &test-srml-staking
variables:
- $DEPLOY_TAG
script:
- cd srml/staking/
- time cargo test --release --verbose --no-default-features --features std
- cd frame/staking/
- WASM_BUILD_NO_COLOR=1 time cargo test --release --verbose --no-default-features --features std
- sccache -s





test-wasmtime:
stage: test
<<: *docker-env
variables:
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
RUSTFLAGS: -Cdebug-assertions=y
RUST_BACKTRACE: 1
except:
variables:
- $DEPLOY_TAG
script:
- cd client/executor
- WASM_BUILD_NO_COLOR=1 time cargo test --release --verbose --features wasmtime
- sccache -s

test-linux-stable-int:
<<: *test-linux
Expand All @@ -171,8 +201,8 @@ test-linux-stable-int:
script:
- echo "___Logs will be partly shown at the end in case of failure.___"
- echo "___Full log will be saved to the job artifacts only in case of failure.___"
- RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
time cargo test -p node-cli --release --verbose --locked -- --ignored --test-threads=1
- WASM_BUILD_NO_COLOR=1 RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
time cargo test -p node-cli --release --verbose --locked -- --ignored
&> ${CI_COMMIT_SHORT_SHA}_int_failure.log
- sccache -s
after_script:
Expand All @@ -193,27 +223,16 @@ check-web-wasm:
script:
# WASM support is in progress. As more and more crates support WASM, we
# should add entries here. See https://github.com/paritytech/substrate/issues/2416
- time cargo web build -p sr-io
- time cargo web build -p sr-primitives
- time cargo web build -p sr-std
- time cargo web build -p substrate-client
- time cargo web build -p substrate-consensus-aura
- time cargo web build -p substrate-consensus-babe
- time cargo web build -p substrate-consensus-common
- time cargo web build -p substrate-keyring
- time cargo web build -p substrate-keystore
- time cargo web build -p substrate-executor
- time cargo web build -p substrate-network
- time cargo web build -p substrate-panic-handler
- time cargo web build -p substrate-peerset
- time cargo web build -p substrate-primitives
# TODO: we can't use cargo web until https://github.com/paritytech/jsonrpc/pull/436 is deployed
- time cargo build -p substrate-rpc-servers --target wasm32-unknown-unknown
- time cargo web build -p substrate-serializer
- time cargo web build -p substrate-state-db
- time cargo web build -p substrate-state-machine
- time cargo web build -p substrate-telemetry
- time cargo web build -p substrate-trie
- time cargo build --target=wasm32-unknown-unknown -p sp-io
- time cargo build --target=wasm32-unknown-unknown -p sp-runtime
- time cargo build --target=wasm32-unknown-unknown -p sp-std
- time cargo build --target=wasm32-unknown-unknown -p sc-client
- time cargo build --target=wasm32-unknown-unknown -p sc-consensus-aura
- time cargo build --target=wasm32-unknown-unknown -p sc-consensus-babe
- time cargo build --target=wasm32-unknown-unknown -p sp-consensus
- time cargo build --target=wasm32-unknown-unknown -p sc-telemetry
# Note: the command below is a bit weird because several Cargo issues prevent us from compiling the node in a more straight-forward way.
- time cargo build --manifest-path=bin/node/cli/Cargo.toml --no-default-features --features "browser" --target=wasm32-unknown-unknown
- sccache -s

node-exits:
Expand All @@ -222,21 +241,42 @@ node-exits:
except:
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- ./ci/check_for_exit.sh
- ./.maintain/check_for_exit.sh


test-full-crypto-feature:
stage: test
<<: *docker-env
variables:
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
RUSTFLAGS: -Cdebug-assertions=y
RUST_BACKTRACE: 1
except:
variables:
- $DEPLOY_TAG
script:
- cd primitives/core/
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- cd ../application-crypto
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- sccache -s


#### stage: build

build-linux-substrate:
build-linux-substrate: &build-binary
stage: build
<<: *collect-artifacts
<<: *docker-env
<<: *build-only
before_script:
- mkdir -p ./artifacts/substrate/
except:
variables:
- $DEPLOY_TAG
script:
- time cargo build --release --verbose
- mkdir -p ./artifacts/substrate/
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
- mv ./target/release/substrate ./artifacts/substrate/.
- echo -n "Substrate version = "
- if [ "${CI_COMMIT_TAG}" ]; then
Expand All @@ -248,31 +288,25 @@ build-linux-substrate:
fi
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
- printf '\n# building node-template\n\n'
- ./scripts/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
- cp -r scripts/docker/substrate.Dockerfile ./artifacts/substrate/
- ./.maintain/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s

build-linux-subkey:
stage: build
<<: *collect-artifacts
<<: *docker-env
<<: *build-only
except:
variables:
- $DEPLOY_TAG
<<: *build-binary
before_script:
- mkdir -p ./artifacts/subkey
script:
- cd ./subkey
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
- cd ..
- sccache -s
- mkdir -p ./artifacts/subkey
- cd -
- mv ./target/release/subkey ./artifacts/subkey/.
- echo -n "Subkey version = "
- ./artifacts/subkey/subkey --version |
sed -n -r 's/^subkey ([0-9.]+.*)/\1/p' |
tee ./artifacts/subkey/VERSION;
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
- cp -r scripts/docker/subkey.Dockerfile ./artifacts/subkey/
- cp -r .maintain/docker/subkey.Dockerfile ./artifacts/subkey/
- sccache -s

build-rust-doc-release:
Expand All @@ -288,9 +322,9 @@ build-rust-doc-release:
<<: *build-only
script:
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- BUILD_DUMMY_WASM_BINARY=1 RUSTDOCFLAGS="--html-in-header $(pwd)/rustdoc-header.html" time cargo +nightly doc --release --all --verbose
- BUILD_DUMMY_WASM_BINARY=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html" time cargo +nightly doc --release --all --verbose
- cp -R ./target/doc ./crate-docs
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
- echo "<meta http-equiv=refresh content=0;url=sc_service/index.html>" > ./crate-docs/index.html
- sccache -s

check_warnings:
Expand All @@ -312,6 +346,42 @@ check_warnings:
fi
allow_failure: true

# Nightly check whether Polkadot 'master' branch builds.
check_polkadot:
stage: build
<<: *docker-env
allow_failure: true
only:
- master
- schedules
script:
- SUBSTRATE_PATH=$(pwd)
# Clone the current Polkadot master branch into ./polkadot.
- git clone --depth 1 https://gitlab.parity.io/parity/polkadot.git
- cd polkadot
# Make sure we override the crates in native and wasm build
- mkdir .cargo
- echo "paths = [ \"$SUBSTRATE_PATH\" ]" > .cargo/config
- mkdir -p target/debug/wbuild/.cargo
- echo "paths = [ \"$SUBSTRATE_PATH\" ]" > target/debug/wbuild/.cargo/config
# package, others are updated along the way.
- cargo update
# Check whether Polkadot 'master' branch builds with this Substrate commit.
- time cargo check
- cd -
- sccache -s

trigger-contracts-ci:
stage: publish
needs:
- build-linux-substrate
trigger:
project: parity/srml-contracts-waterfall
branch: "master"
only:
- master
- schedules

#### stage: publish

.publish-docker-release: &publish-docker-release
Expand Down Expand Up @@ -478,10 +548,10 @@ publish-gh-doc:
- echo "Substrate version = ${DEPLOY_TAG}"
# or use helm to render the template
- helm template
--values ./scripts/kubernetes/values.yaml
--values ./.maintain/kubernetes/values.yaml
--set image.tag=${DEPLOY_TAG}
--set validator.keys=${VALIDATOR_KEYS}
./scripts/kubernetes | kubectl apply -f - --dry-run=false
./.maintain/kubernetes | kubectl apply -f - --dry-run=false
- echo "# substrate namespace ${KUBE_NAMESPACE}"
- kubectl -n ${KUBE_NAMESPACE} get all
- echo "# substrate's nodes' external ip addresses:"
Expand Down Expand Up @@ -543,16 +613,16 @@ deploy-ue1-tag:
validator 1 4:
<<: *validator-deploy
script:
- ./scripts/flamingfir-deploy.sh flamingfir-validator1
- ./.maintain/flamingfir-deploy.sh flamingfir-validator1
validator 2 4:
<<: *validator-deploy
script:
- ./scripts/flamingfir-deploy.sh flamingfir-validator2
- ./.maintain/flamingfir-deploy.sh flamingfir-validator2
validator 3 4:
<<: *validator-deploy
script:
- ./scripts/flamingfir-deploy.sh flamingfir-validator3
- ./.maintain/flamingfir-deploy.sh flamingfir-validator3
validator 4 4:
<<: *validator-deploy
script:
- ./scripts/flamingfir-deploy.sh flamingfir-validator4
- ./.maintain/flamingfir-deploy.sh flamingfir-validator4
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LABEL io.parity.image.authors="[email protected]" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="parity/subkey" \
io.parity.image.description="Subkey: key generating utility for Substrate." \
io.parity.image.source="https://github.com/paritytech/substrate/blob/${VCS_REF}/scripts/docker/subkey.Dockerfile" \
io.parity.image.source="https://github.com/paritytech/substrate/blob/${VCS_REF}/.maintain/docker/subkey.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/paritytech/substrate/tree/${VCS_REF}/subkey"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LABEL io.parity.image.authors="[email protected]" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="parity/substrate" \
io.parity.image.description="Substrate: The platform for blockchain innovators." \
io.parity.image.source="https://github.com/paritytech/substrate/blob/${VCS_REF}/scripts/docker/Dockerfile" \
io.parity.image.source="https://github.com/paritytech/substrate/blob/${VCS_REF}/.maintain/docker/Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://wiki.parity.io/Parity-Substrate"
Expand Down
Loading