Svyatoslav Nikolsky
0d3c67d96b
[testnet] Allow governance to control fees for Rococo <> Westend bridge ( #2139 )
...
Right now governance could only control byte-fee component of Rococo <>
Westend message fees (paid at Asset Hubs). This PR changes it a bit:
1) governance now allowed to control both fee components - byte fee and
base fee;
2) base fee now includes cost of "default" delivery and confirmation
transactions, in addition to `ExportMessage` instruction cost.
2023-11-03 10:32:41 +02:00
Svyatoslav Nikolsky
ebf442336f
Update bridges subtree ( #1803 )
2023-10-10 14:20:25 +03:00
Svyatoslav Nikolsky and Branislav Kontur
d80171ec22
Update bridges subtree ( #1740 )
...
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
2023-10-04 01:14:01 +03:00
Svyatoslav Nikolsky
948f80733e
Update bridges subtree ( #2903 )
...
* Squashed 'bridges/' changes from 0417308a48..3c4ada921b
3c4ada921b Update dependecies (#2277 ) (#2281 )
3e195c9e76 GRANDPA: optimize votes_ancestries when needed (#2262 ) (#2264 )
7065bbabc6 Implement RuntimeDebug for GrandpaJustification (#2254 )
8c9e59bcbc Define generate_grandpa_key_ownership_proof() (#2247 ) (#2248 )
0b46956df7 Deduplicate Grandpa consensus log reading logic (#2245 ) (#2246 )
96c9701710 Fix deps from Cumulus (#2244 )
git-subtree-dir: bridges
git-subtree-split: 3c4ada921bbdbdba945c3aa85d76ce316f7baab3
* removed extra files
* post-merge fixes
* also post-merge fixes
2023-07-19 19:29:12 +03:00
Svyatoslav Nikolsky
3f29fd04e1
Remove bridges subtree ( #5752 )
...
* remove bridges folder
* remove BRIDGES.md
* remove bridges mentions from top Cargo.toml
* remove bridges from CODEOWNERS
* remove bridges mentions from testing.md
* remove bridge pallets from Rococo/Wococo runtime
* also remove from node
2022-07-06 06:54:38 +00:00
Svyatoslav Nikolsky
8e01ba9c03
Update bridges subtree ( #5165 )
...
* Squashed 'bridges/' changes from 1602249f0a..f220d2fcca
f220d2fcca Polkadot staging update (#1356 )
02fd3d497c fix parse_transaction on Rialto+Millau (#1360 )
bc191fd9a2 update parity-scale-codec to 3.1.2 (#1359 )
a37226e79c update chain versions (#1358 )
ff5d539fcb Update Substrate/Polkadot/Cumulus references (#1353 )
1581f60cd5 Support dedicated lanes for pallets (#962 )
0a7ccf5c57 ignore more "increase" alerts that are sometimes signalling NoData at startup (#1351 )
31165127cc added no_stack_overflow_when_decoding_nested_call_during_dispatch test (#1349 )
7000619eb8 replace From<>InboundLaneApi with direct storage reads (#1348 )
515df10ccc added alerts for relay balances (#1347 )
b56f6a87de Mortal conversion rate updater transactions (#1257 )
20f2f331ec edition = "2021" (#1346 )
99147d4f75 update regex to 1.5.5 (#1345 )
686191f379 use DecodeLimit when decoding incoming calls (#1344 )
a70c276006 get rid of '[No Data] Messages from Millau to Rialto are not being delivered' warnings (#1342 )
01f29b8ac1 fix conversion rate metric in dashboards (#1341 )
51c3bf351f Increase rate from metric when estimating fee (#1340 )
3bb9c4f68f fix generator scripts to be consistent with updatedrelay output (#1339 )
0475a1667b fixed mess with conversion rates (#1338 )
d8fdd7d716 synchronize relay cli changes and token swap generator script (#1337 )
6e928137a5 fix conversion rate override in token swap (#1336 )
62d4a4811d override conversion rate in tokens swap generator (#1335 )
ed9e1c839c fi typo in generator script (#1334 )
3254b5af7a Override conversion rate when computing message fee (#1261 )
66df68b5b8 Revert "Revert "override conversion rate in estimate-message-fee RPC (#1189 )" (#1275 )" (#1333 )
0ca6fc6ef8 fix clippy issues (#1332 )
5414b2fffb Reinitialize bridge relay subcommand (#1331 )
a63d95ba7d removed extra *_RUNTIME_VERSION consts from relay code (#1330 )
59fb18a310 fix typo in alert expression (#1329 )
a6267a47ee Using-same-fork metric for finality and complex relay (#1327 )
88d684d37e use mortal transactions in transaction resubmitter (#1326 )
8ff88b6844 impl Decode for SignedExtensions (otherwise transaction resubmitter panicks) (#1325 )
1ed09854f0 Encode and estimate Rococo/Wococo/Kusama/Polkadot messages (#1322 )
ddb4517e13 Add some tests to check integrity of chain constants + bridge configuration (#1316 )
bdeedb7ab9 Fix issues from cargo deny (#1311 )
d3d79d01e0 expose fee multiplier metrics in messages relay (#1312 )
c8b3f0ea16 Endow relayer account at target chain in message benchmarks (#1310 )
f51ecd92b6 fix benchmarks before using it in Polkadot/Kusama/Rococo runtimes (#1309 )
6935c619ad increase relay balance guard limits for Polkadot<>Kusama bridge (#1308 )
7e31834c66 Fix mandatory headers scanning in on-demand relay (#1306 )
92ddc3ea7a Polkadot-staging update (#1305 )
3787193a31 fix session length of Rococo and Wococo (#1304 )
eb468d29c0 Revert nightly docker pin (#1301 )
e2d4c073e1 Use raw balance value if tokenDecimals property is missing (#1299 )
108f4b29d1 Fix ss58 prefixes of Polkadot, Kusama and Westend used by relay (#1298 )
64fbd2705e bump chain spec versions (#1297 )
5707777b86 Bump Substrate/Polkadot/Cumulus refs (#1295 )
29eecdf1fa Merge pull request #1294 from paritytech/polkadot-staging-update
1f0c05368e Relay balance metrics (#1291 )
6356bb90b3 when messages pallet is halted, relay shall not submit messages delivery/confirmation transactions (#1289 )
800dc2df8d when GRANDPA pallet is halted, relay shall not submit finality transactions (#1288 )
3dd8e4f936 disable BEEFY allerts for Rialto (#1285 )
f58fed7380 support version mode cli options in send-message subcommand (#1284 )
3aac448da3 reuse polkadot-service code (#1273 )
2bdbb651e1 replace latest_confirmed_nonce runtime APIs with direct storage reads (#1282 )
5f9c6d241f move "common" code of messages pallet benchmarks helpers to the common library (#1281 )
173d2d8229 Merge pull request #1280 from paritytech/polkadot-staging-update
8b9c4ec16d do not start spec_version guard when version mode is set to auto (#1278 )
e98d682de2 removed extra messages benchmarks (#1279 )
c730e25b61 Move benchmarks from Rialto to Millau (#1277 )
54146416e7 Merge pull request #1276 from paritytech/polkadot-staging-update
df70118174 Merge branch 'master' into polkadot-staging-update
ed7def64c4 Revert "override conversion rate in estimate-message-fee RPC (#1189 )" (#1275 )
38c6c3a49f Use "production" floating tag when uilding docker image from version git tags (#1272 )
ded9ff6dbb Replace InboundLaneApi::latest_received_nonce with direct storage read (#1269 )
f704a741ee Polkadot staging update (#1270 )
8c65f0d7ab verify that GRANDPA pallet is not initialized before submitting initialization transaction (#1267 )
e7e83d8944 remove OutboundLaneApi::latest_received_nonce (#1262 )
9f4b34acf1 bump rococo version (#1263 )
82c08c5a87 read latest_generated_nonce directly from storage (#1260 )
50ffb5dd08 override conversion rate in estimate-message-fee RPC (#1189 )
467ca5ef59 move storage keys computation to primitivs (#1254 )
4f9884066b remporary use pinned bridges-ci image in Dockerfile (#1258 )
edfcb74e00 Change submit transaction spec_version and transaction_version query from chain (#1248 )
4009d970d0 pin bridges-ci image (#1256 )
65e51b5e1c decrease startup sleep to 5s for relays and to 120s for generators + remove curl (#1251 )
3bc74355d9 Add missing RPC APIs to rialto parachain node (#1250 )
80c9429284 Bump relay version to 1.0.0 (#1249 )
9ead06af2a runtimes: fix call_size() test (#1245 )
4fc8a29357 Use same endowed accounts set on dev/local chains (#1244 )
fed54371c2 Refactor message relay helpers (#1234 )
a15b4faae7 post-merge build fix (#1243 )
52232d8d54 Fix transactions mortality (#1196 )
c07bba931f Expose prometheus BEEFY metrics and add them to grafana dashboard (#1242 )
f927775bd5 Refactor finality relay helpers (#1220 )
7bf76f14a8 Update Rococo/Wococo version + prepare relay for Rococo<>Wococo bridge (#1241 )
e860fecd04 Enable offchain indexing for Rialto/Millau nodes (#1239 )
04d4d1c6b4 Enable Beefy debug logs in test deployment (#1237 )
cd771f1089 Fix storage parameter name computation (#1238 )
816ddd2dd2 Integrate BEEFY with Rialto & Millau runtimes (#1227 )
d94b62b1ac update dependencies (#1229 )
98eb9ee13d Add mut support (#1232 )
ffef6f89f9 fixed set_operational in GRANDPA pallet (#1226 )
bd2f8bfbd7 Add CODEOWNERS file (#1219 )
6b5cf2b591 Unify metric names (#1209 )
d1541e797e remove abandoned exchange relay (#1217 )
39140d0b34 Remove unused `relays/headers` (#1216 )
9bc071d42b Remove unused PoA<>Substrate bridge (#1210 )
877e8d01e3 Fix UI deployment. (#1211 )
6cd5775ebe Add `AtLeast32BitUnsigned` for MessageLance::SourceChainBalance (#1207 )
git-subtree-dir: bridges
git-subtree-split: f220d2fccabbf141101d19456ecb4e3576a1d797
* fix compilation warnings
2022-03-21 10:19:29 +00:00
Svyatoslav Nikolsky
97203dfc6f
Restore Rococo <> Wococo bridges (headers + messages) ( #4452 )
...
* restore Rococo <> Wococo bridge
* accept messages from lane 00000000 only
* remove commented code
* fixed pallets order
2021-12-07 07:51:22 +00:00
Svyatoslav Nikolsky and Hernando Castano
04ac35e127
Enable over-bridge-messaging in Rococo/Wococo runtime ( #3377 )
...
* bridges in W<>R
* fix node compilation
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* long line fix
* comment/remove -> comment/#[ignore]
* explicit instances
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2021-07-06 10:03:12 +00:00
Svyatoslav Nikolsky
feefc34567
Squashed 'bridges/' changes from b2099c5..23dda62 ( #3369 )
...
23dda62 Rococo <> Wococo messages relay (#1030 )
bcde21d Update the wasm builder to substrate master (#1029 )
a8318ce Make target signer optional when sending message. (#1018 )
f8602e1 Fix insufficient balance when send message. (#1020 )
d95c0a7 greedy relayer don't need message dispatch to be prepaid if dispatch is supposed to be paid at the target chain (#1016 )
ad5876f Update types. (#1027 )
116cbbc CI: fix starting the pipeline (#1022 )
7e0fadd Add temporary `canary` job (#1019 )
6787091 Update types to contain dispatch_fee_payment (#1017 )
03f79ad Allow Root to assume SourceAccount. (#1011 )
372d019 Return dispatch_fee_payment from message details RPC (#1014 )
604eb1c Relay basic single-bit message dispatch results back to the source chain (#935 )
bf52fff Use plain source_queue view when selecting nonces for delivery (#1010 )
fc5cf7d pay dispatch fee at target chain (#911 )
1e35477 Bump Substrate to `286d7ce` (#1006 )
7ad07b3 Add --only-mandatory-headers mode (#1004 )
5351dc9 Messages relayer operating mode (#995 )
9bc29a7 Rococo <> Wococo relayer balance guard (#998 )
bc17341 rename messages_dispatch_weight -> message_details (#996 )
95be244 Bump Rococo and Wococo spec versions (#999 )
c35567b Move ChainWithBalances::NativeBalance -> Chain::Balance (#990 )
1bfece1 Fix some nits (#988 )
334ea0f Increase pause before starting relays again (#989 )
7fb8248 Fix clippy in test code (#993 )
d60ae50 fix clippy issues (#991 )
75ca813 Make sure GRANDPA shares state with RPC. (#987 )
da2a38a Bump Substrate (#986 )
5a9862f Update submit finality proof weight formula (#981 )
69df513 Flag for rejecting all outbound messages (#982 )
14d0506 Add script to setup bench machine. (#984 )
e74e8ab Move CI from GitHub Actions to GitLab (#814 )
c5ca5dd Custom justification verification (#979 )
643f10d Always run on-demand headers relay in complex relay (#975 )
a35b0ef Add JSON type definitions for Rococo<>Wococo bridge (#977 )
0eb83f2 Update cargo.deny (#980 )
e1d1f4c Bump Rococo/Wococo spec_version (#976 )
deac90d increase pause before starting relays (#974 )
68d6d79 Revert to use InspectCmd, bump substrate `6bef4f4` (#966 )
66e1508 Avoid hashing headers twice in verify_justification (#973 )
a31844f Bump `environmental` dependency (#972 )
2a4c29a in auto-relays keep trying to connect to nodes until connection is established (#971 )
0e767b3 removed stray file (#969 )
b9545dc Serve multiple lanes with single complex relay instance (#964 )
73419f4 Correct type error (#968 )
bac256f Start finality relay spec-version guards for Rococo <> Wococo finality relays (#965 )
bfd7037 pass source and target chain ids to account_ownership_proof (#963 )
8436073 Upstream changes from Polkadot repo (#961 )
e58d851 Increase account endowment amount (#960 )
git-subtree-dir: bridges
git-subtree-split: 23dda6248236b27f20d76cbedc30e189cc6f736c
2021-06-25 13:45:02 +00:00
Svyatoslav Nikolsky
194b3dfb17
fix BlockAttributes encoding ( #6281 )
2020-06-16 22:51:45 +02:00
Svyatoslav Nikolsky
b800909dae
block.tx[0] is not invalid if on_initialize is too heavy ( #6217 )
2020-06-02 19:07:10 +02:00
Svyatoslav Nikolsky
246f7ae368
get tx_hashes from watcher ( #5981 )
2020-05-12 15:46:05 +02:00
Svyatoslav Nikolsky
11f144ee65
update light aux storage when GRANDPA set changes ( #5861 )
2020-05-06 12:12:11 +01:00
Svyatoslav Nikolsky
8689a97a0d
make GrandpaJustification::decode_and_verify_finalizes public ( #5746 )
2020-04-23 12:07:08 +01:00
febf29390a
Allow updating configuration of changes tries ( #3201 )
...
* DigestItem::ChangesTrieSignal
* introduce changes_trie::State
* introduce config activation block
* ChangesTrieSignal::as_new_configuration
* moved well_known_cache_keys to client
* extracted DbChangesTrieStorage to separate file
* change meaning of none in blockchain cache
* changes trie config (FULL) cache draft
* eliminating const ChangesTrieConfiguration
* delay pruning
* continue elimination
* do not prune CT config from cache
* removed redundant code
* fix some TODOs
* introduce ConfigurationRange
* use Configuration range in build
* build skewed digest
* remove debug print
* extracted surface iterator
* key_changes works with skewed digests
* fix client build
* add test for NeverPrune
* fix TODO
* fixed some TODOs
* more tests
* fixing TODOs
* fixed compilation
* update runtime version
* git rid of large tuple
* too long lines
* config_activation_block -> zero
* obsolete TODO
* removed unjustified expect
* update TODOs with issue number
* new CT pruning algorithm
fixed cache + multiple blocks finalization
track CT configuraiton on light clients
support CT configuration change revert
revert CT config test
new CT pruning algorithm
fixed cache + multiple blocks finalization
track CT configuraiton on light clients
support CT configuration change revert
revert CT config test
* BlockIdOrHeader isn't really required
* removed debug leftovers + some docs
* more docs
* more post-merge fixes
* more post-merge fixes
* revertes some unnecessary changes
* reverted unnecessary changes
* fix compilation + unnecessary changes
* (restart CI)
* fix cache update when finalizing multiple blocks
* fixed tests
* collect_extrinsics -> set_collect_extrinsics
* restore lost test
* do not calculate block number twice
* Update primitives/blockchain/src/error.rs
Co-Authored-By: cheme <emericchevalier.pro@gmail.com >
* map_err -> unwrap_or
* document get_at Result
* delete abandoned file
* added weight for set_changes_trie_config
* prefer_configs -> fail_if_disabled
* Update client/api/src/backend.rs
Co-Authored-By: cheme <emericchevalier.pro@gmail.com >
* Update client/db/src/changes_tries_storage.rs
Co-Authored-By: cheme <emericchevalier.pro@gmail.com >
* CommitOperation+merge -> CommitOperations
* fixed test compilation
* merged two different CTRange structs
* lost file
* uggrade db from v0 to v1 (init CT cache + add column)
* fix after merge
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Gavin Wood <github@gavwood.com >
2020-01-16 17:38:24 +01:00
Svyatoslav Nikolsky
afba48aeba
fixed panic on empty remote read request ( #4619 )
2020-01-14 18:49:46 +03:00
Svyatoslav Nikolsky
f372fa4d72
fix race in light_peer_imports_header_from_announce ( #4579 )
2020-01-09 23:28:04 +01:00
Svyatoslav Nikolsky
7d4c6354df
use multiple threads in integration tests ( #4379 )
2019-12-20 12:37:21 +01:00
Svyatoslav Nikolsky
cd718cd77d
recover light client integration tests ( #4377 )
2019-12-17 08:45:04 +01:00
Svyatoslav Nikolsky and Tomasz Drwięga
a782021ee8
Recover transaction pool on light client ( #3833 )
...
* recover tx pool on light client
* revert local tests fix
* removed import renamings
* futures03::Future -> std::future::Future
* Update core/transaction-pool/graph/src/error.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* replace remove_from_ready with remove_invalid
* avoid excess hashing
* debug -> warn
* TransactionPool + BasicTransactionPool
* pause future tx reject when resubmitting
* bump impl_version to make CI happy
* and revert back local test fixes
* alter doc to restart CI
* Transaction::clone() -> Transaction::duplicate()
* transactions -> updated_tranasctions
* remove explicit consensus-common ref
* ::std:: -> std::
* manual set/unset flag -> calling clusore with given flag value
* removed comments
* removed force argument
* BestIterator -> Box<Iterator>
* separate crate for TxPool + Maintainer trait
* long line fix
* pos-merge fix
* fix benches compilation
* Rename txpoolapi to txpool_api
* Clean up.
* Finalize merge.
* post-merge fix
* Move transaction pool api to primitives directly.
* Consistent naming for txpool-runtime-api
* Warn about missing docs.
* Move abstraction for offchain calls to tx-pool-api.
* Merge RPC instantiation.
* Update cargo.lock
* Post merge fixes.
* Avoid depending on client.
* Fix build
2019-11-28 00:00:54 +00:00
Svyatoslav Nikolsky
b5f8eb5ac3
Finality proof: fetch new authorities set instead of previous one ( #4112 )
...
* fetch new authorities set instead of previous one
* fixed leftovers + updated test properly
* read initial authorities once
* updated comment
* fix grumbles
2019-11-19 17:37:36 +03:00
Svyatoslav Nikolsky
35f8cd19cb
Support block revert operation in blockchain cache ( #3401 )
...
* support block revert operation in cache
* #[cfg(test)] -> fn unused_sink()
* swap conditions
* post-merge fix
2019-10-18 17:32:13 +02:00
Svyatoslav Nikolsky
32e687abe4
Fix state RPC subscriptions on light node ( #3626 )
...
* fetch all keys at once in light RPC subscriptions
* restore lost fil
2019-10-07 08:00:15 +02:00
Svyatoslav Nikolsky and Tomasz Drwięga
387c31598d
Prepare for asynchronous transaction validation in tx pool ( #3650 )
...
* async txpool API
* Update core/rpc/src/author/mod.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update core/transaction-pool/graph/src/pool.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Pool -> Pool + ValidatedPool
* removed lost block_on when importing xt from network
* fix grumbles
* alias for future::Executor in rpc
* removed executor from Author RPCs
* Pool + SharedValidatedPool -> Pool
* fix compilation after merge
* another fix
* another fix
2019-10-01 12:14:25 +03:00
Svyatoslav Nikolsky and DemiMarie-parity
eba6dd73c6
Blockchain cache pruning strategy ( #3395 )
...
* blockchain cache pruning strategy
* added some internal docs to cache_pruning_strategy
* Update core/client/db/src/cache/mod.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
2019-09-20 09:49:15 +03:00
Svyatoslav Nikolsky
849e824652
Fetching multiple remote values using single message ( #3612 )
...
* multiple remote values in single message
* keys_str: String ->keys_str: closure
2019-09-16 13:30:21 +03:00
Svyatoslav Nikolsky
634ca73e50
Make light client backend only work with locally available data ( #3538 )
...
* removing fetcher dependency from light backend
* fix compilation
2019-09-12 17:13:26 +02:00
010395e620
Never panic during execution proof check ( #3504 )
...
* do not panic during execution proof check
* Update core/state-machine/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* Update core/state-machine/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* Update core/state-machine/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* BackendTrustLevel enum
* up runtime version
* Update core/state-machine/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* Update core/state-machine/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* fixed some grumbles
* Update core/state-machine/src/testing.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Update core/state-machine/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* mov where
* spaces -> tabs (to restart build)
2019-09-11 10:27:32 +03:00
Svyatoslav Nikolsky
81af1d140a
finalize -> finalize_with_ancestors ( #3576 )
2019-09-09 14:22:58 +01:00
Svyatoslav Nikolsky
551a9e6bcb
Changes tries build cache ( #2933 )
...
* changes tries build cache
added CT build cache test
* fix lines width
* fixed some grumbles
* clear cache when: digests disabled, top-level or skewed digest is built
* cached_changed_keys -> with_cached_changed_keys
2019-09-05 08:27:04 +03:00
Svyatoslav Nikolsky
607ee0a4e4
Make chain && state RPCs async ( #3480 )
...
* chain+state RPCs are async now
* wrapped too long lines
* create full/light RPC impls from service
* use ordering
* post-merge fix
2019-08-31 17:20:10 -07:00
Svyatoslav Nikolsky and cheme
c26b7163a3
Use ranged changes trie configuration in CT functions ( #3404 )
...
* CT config methods are accepting zero
* intrduce && use configuration range in CT
* Update core/client/db/src/lib.rs
Co-Authored-By: cheme <emericchevalier.pro@gmail.com >
* full PR URI
* updated next_max_level_digest_range comment
* added skewed digest description
* added comment for loop
* call next_max_level_digest_range from prev_max_level_digest_block
* more test cases
* Update core/state-machine/src/changes_trie/surface_iterator.rs
Co-Authored-By: cheme <emericchevalier.pro@gmail.com >
* updated comment
2019-08-29 09:02:10 +03:00
Svyatoslav Nikolsky
8f29199076
init cache on restart ( #3486 )
2019-08-26 20:30:09 +02:00
Svyatoslav Nikolsky
e9273329ae
fix digest in check_execution_proof ( #3469 )
2019-08-24 17:42:57 +02:00
Svyatoslav Nikolsky
6fb721e861
Value lifetime is returned from blockchain cache ( #3403 )
...
* value range in blockchain cache
* revert me (testing for spurious failure)
* Revert "revert me (testing for spurious failure)"
This reverts commit 21a4a3cf5ee14e003541b779c41351e4f5e1122a.
2019-08-19 13:44:16 +02:00
Svyatoslav Nikolsky and DemiMarie-parity
3825a21bac
Fix light client synchronization on master ( #3301 )
...
* value ranges in consensus cache
* skip values in cache
* read epoch0 + epoch1 data from genesis in babe
* sync authorities + session validators at genesis
* removed some debug printlns
* fixed cache encoding
* Revert "skip values in cache"
This reverts commit ce451c32823aaa4b67d99ca5b58f1bf3984df4db.
* Revert "value ranges in consensus cache"
This reverts commit 9062f9434cddd14a01275ddbfcd904b04282e63b.
* get rid of cache::AUTHORITIES in Babe
* cleaning up
* cleaning up
* update spec version
* lost changes
* fixed tests
* Update node/runtime/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* fix once-per-block condition
* fix standalone babe + temp_storage in BuildGenesis
* fix benhes compilation
* fixed comment
* re-added light nodes to integration tests
* finalize_with_ancestors from extra_requests
* post-merge fix
* aaand removed debug code
* (another one)
* fix warn in logs (do not call ForkTree::finalize twice for the same block)
* sync digest.next_authorities with actual next authorities
* more docs
* reverting all commits affecting storage
* also remove keys from babe trait
* fixed warnings
* post-merge fixes
* reverted some redundant changes
* reverted more changes
2019-08-16 11:51:49 +02:00
Svyatoslav Nikolsky
3cb557700e
remove leaves tracking from lignt backend ( #3311 )
2019-08-07 20:48:39 +02:00
Svyatoslav Nikolsky
80472956f8
fixed on_demand test ( #3200 )
2019-07-25 11:49:30 +02:00
Svyatoslav Nikolsky
95061beb79
Some changes tries optimizations ( #2840 )
...
* changes tries initial optimizations
* line width
2019-07-16 10:25:08 +09:00
Svyatoslav Nikolsky
83e014c214
change meaning of none in blockchain cache ( #2973 )
2019-06-30 17:54:51 +02:00
Svyatoslav Nikolsky
5030097799
Do not return empty entries from state_queryStorage ( #2906 )
...
* do not return empty entries from state_queryStorage
* revert back None -> null change
* Revert "revert back None -> null change"
This reverts commit 318eb043e03b7aabbc3f176e02c15fd4595d16db.
2019-06-19 15:31:14 +02:00
Svyatoslav Nikolsky
fc7548ce27
Light client integration tests ( #2638 )
...
* add light nodes to test_sync && test_consensus
* forbid light2light connections
* add light nodes to test_connectivity
* fixed light2light connection penalty
* post-merge fixes
* remove best_queued from Client info
2019-06-05 17:14:42 +02:00
Svyatoslav Nikolsky
012ce5878b
Restore integration tests ( #2620 )
...
* restored test_consensus
* restored test_sync
* run integration tests only on CI
* use single test-thread for integration tests
* post-merge fix
* panic when integration test runs for too long
* add some traces to integration logs
* manual wait -> timeout
* post-merge fix
* post-merge fix
2019-06-05 09:16:14 +02:00
Svyatoslav Nikolsky
0d9fad431b
Import headers from BlockAnnounce message on light nodes ( #2731 )
...
* import headers from announce message on light
* lines width
* added comments
2019-05-31 09:28:09 +02:00
Svyatoslav Nikolsky
48b2ba041f
Synchronous import queue + fix async inport queue shutdown ( #2701 )
...
* sync implementation of ImportQueue
* fix import queue shutdown
* never clone import queue
2019-05-28 15:07:35 +02:00
Svyatoslav Nikolsky and Gavin Wood
549d9e1da1
Remove BlockNumber <-> u64 conversions from light-client related code ( #2666 )
...
* Remove As usage from CHT
* Remove As usage from CHT (continue)
* Restrict BN <-> int conversions in CT
* more BN <-> u64 conversions removed
* upd spec_version
* Apply suggestions from code review
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Apply suggestions from code review
Co-Authored-By: Gavin Wood <github@gavwood.com >
* more grumbles
* fix last grumbles + compilation
* too long lines
* too long lines
2019-05-28 15:07:16 +02:00
Svyatoslav Nikolsky
e296cf8cba
fix panic in PSM when add_reserved_peer(same_peer) is called twice ( #2640 )
2019-05-21 14:56:58 +03:00
Svyatoslav Nikolsky
a29fd10859
Do not try to synchronize from light client ( #2039 )
...
* do not try to sync from light node
* use Roles' utility methods
2019-05-14 14:41:10 +02:00
Svyatoslav Nikolsky and Benjamin Kampmann
9a14ba0555
Fix light client startup (build_select_chain returns Result<Option>) ( #2574 )
...
* fix light client strtup (build_select_chain -> Option)
* fixed node template compilation
* Update core/service/src/lib.rs
Co-Authored-By: Benjamin Kampmann <ben.kampmann@googlemail.com >
2019-05-14 12:38:30 +01:00
Svyatoslav Nikolsky
22586113ea
Light GRANDPA import handler ( #1669 )
...
* GrandpaLightBlockImport
* extract authorities in AuraVerifier
* post-merge fix
* restore authorities cache
* license
* new finality proof draft
* generalized PendingJustifications
* finality proof messages
* fixed compilation
* pass verifier to import_finality_proof
* do not fetch remote proof from light import directly
* FinalityProofProvider
* fixed authorities cache test
* restored finality proof tests
* finality_proof docs
* use DB backend in test client
* justification_is_fetched_by_light_client_when_consensus_data_changes
* restore justification_is_fetched_by_light_client_when_consensus_data_changes
* some more tests
* added authorities-related TODO
* removed unneeded clear_finality_proof_requests field
* truncated some long lines
* more granular light import tests
* only provide finality proof if it is generated by the requested set
* post-merge fix
* finality_proof_is_none_if_first_justification_is_generated_by_unknown_set
* make light+grandpa test rely on finality proofs (instead of simple justifications)
* empty_finality_proof_is_returned_to_light_client_when_authority_set_is_different
* missing trait method impl
* fixed proof-of-finality docs
* one more doc fix
* fix docs
* initialize authorities cache (post-merge fix)
* fixed cache initialization (post-merge fix)
* post-fix merge: fix light + GRANDPA tests (bad way)
* proper fix of empty_finality_proof_is_returned_to_light_client_when_authority_set_is_different
* fixed easy grumbles
* import finality proofs in BlockImportWorker thread
* allow import of finality proofs for non-requested blocks
* limit number of fragments in finality proof
* GRANDPA post-merge fix
* BABE: pos-merge fix
2019-05-13 11:36:52 +02:00
Svyatoslav Nikolsky
6cd82ca747
send GRANDPA messages without holding validator lock ( #2537 )
2019-05-13 09:18:43 +03:00
Svyatoslav Nikolsky
59be403730
Create AuthoritiesChange digest item in correct block ( #2512 )
...
* finalize srml modules in reverse order
* update runtime versions
2019-05-10 14:30:48 +02:00
Svyatoslav Nikolsky
42fa5f6209
Fix deadlock in tests that are using with_gossip ( #2533 )
...
* fixed gossip related tests deadlock
* cleaning sync tests log
* fixed typo in logs
* send GRANDPA messages without holding validator lock
* Revert "fixed gossip related tests deadlock"
This reverts commit d3fe55e45e32b7ea2e9f05f1c511972c708209ad.
2019-05-10 14:14:42 +02:00
Svyatoslav Nikolsky
a63635b952
Fix light connection issues ( #2499 )
...
* ignore light nodes in ConsensusGossip
* fixed method name
* temporary disabled penalty when block is announced
* remove traces of BLOCK_ANNOUNCE_REPUTATION_CHANGE
2019-05-08 12:24:20 +02:00
Svyatoslav Nikolsky
5725e25448
fix race in sync tests ( #2259 )
2019-04-12 09:32:00 +02:00
Svyatoslav Nikolsky
eec6f3b901
Cache changes trie config in db storage ( #2170 )
...
* cache changes trie config in db storage
* Update core/client/db/src/lib.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
* Update core/client/db/src/lib.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
2019-04-03 12:35:12 +02:00
Svyatoslav Nikolsky
72b9df8237
fixed instant finalization of genesis block on light client ( #1898 )
2019-02-28 19:26:34 +01:00
Svyatoslav Nikolsky
6a6c3155a6
Use DB backend in test client ( #1779 )
...
* use DB backend in test client
* Update core/client/db/src/lib.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
2019-02-15 11:03:22 +01:00
Svyatoslav Nikolsky
381cf26f55
Make genesis state locally-available on light client ( #1622 )
...
* make genesis state available on light client
* RemoteOrLocalCallExecutor
* code_is_executed_locally_or_remotely
* OnDemandOrGenesisState tests
* some comments
2019-02-01 10:27:54 +01:00
Svyatoslav Nikolsky
2037c52fbe
make --port 30334 work again ( #1620 )
2019-01-30 14:46:39 +01:00
Svyatoslav Nikolsky
a4756710c5
fixed aux modifications on light client ( #1621 )
2019-01-30 14:44:29 +01:00
Svyatoslav Nikolsky
431ad3ca76
finalize multiple blocks at once ( #1601 )
2019-01-28 14:16:30 -03:00
Svyatoslav Nikolsky
da1fb3f273
Use changes tries in query_storage RPC ( #1082 )
...
* use changes tries in query_storage RPC
* let + match + return + call -> match
2019-01-17 10:08:50 +01:00
Svyatoslav Nikolsky
d58b23f759
fix tests by rebuilding wasm(s) ( #1463 )
2019-01-17 08:22:45 +01:00
Svyatoslav Nikolsky
616716cb4b
GRANDPA finality proof draft ( #1268 )
...
* grandpa finality proof
* prove GrandpaApi::grandpa_authorities using parent block + some docs
* create justification when consensus data is changed
* generate justifications periodically
* test for ConsensusChanges
2019-01-11 19:25:03 +01:00
Svyatoslav Nikolsky
81f90ed0a4
AuxStore on light clients ( #1251 )
...
* implement AuxStore on light clients
* Update core/client/db/src/light.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
* Update core/client/db/src/light.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
* Update core/client/db/src/light.rs
Co-Authored-By: svyatonik <svyatonik@gmail.com >
2018-12-13 17:01:57 +01:00
Svyatoslav Nikolsky
c1b0fba486
do not compute storage root (+ changes root) when proving execution ( #1246 )
2018-12-12 10:35:37 +01:00
Svyatoslav Nikolsky
742cb33d90
Make CallApiAt::call_api_at work at light client ( #1213 )
...
* light client contextual method call
* fixed off-by-one in test
* newlines + commas
2018-12-10 16:02:00 +03:00
Svyatoslav Nikolsky
675c3b0500
fix purge-chain cli option ( #1164 )
2018-11-26 10:58:09 +01:00
Svyatoslav Nikolsky
62c590ef25
Fix light client startup ( #1130 )
...
* fix light client startup
* fix grumbles
2018-11-19 08:58:21 +03:00
Svyatoslav Nikolsky
6f9a505fba
Pruning changes trie without digests ( #952 )
...
* pruning changes tries without digests
* u64::max_value()
2018-11-17 18:04:53 +01:00
Svyatoslav Nikolsky
fa84cec382
Fetch changes trie roots + CHT-based proof for these roots ( #896 )
...
* build CHT for changes tries roots
* collect chnages tries roots proof in key_changes_proof
* flush check_changes_proof
* fixed compilation
* LightDataChecker now has a ref to the blockchain
* continue passing proofs
* new light db tests
* more CHT tests
* more tests for key changes proof when headers are missing
* lost files
2018-11-14 16:06:10 +01:00
Svyatoslav Nikolsky
6e3c56c135
Changes tries: support forks ( #950 )
...
* forks support in changes trie storage
* moved convert_hash to primitives
* optimize ChangesTrieRootsStorage::root when anchor is canonicalized
2018-11-13 12:17:14 +01:00
Svyatoslav Nikolsky
ca38fd72f6
Moved DigestItem impl to impl_outer_log ( #932 )
...
* moved DigestItem impl to impl_outer_log
* Enable backtrace collecting on the CI
* internal module is not required in impl_outer_log
* Revert "internal module is not required in impl_outer_log"
This reverts commit 5430446971cdf5fd5735863b86cd08a11d35d1dd.
* Revert "moved DigestItem impl to impl_outer_log"
This reverts commit 8872bbee963dbb4316251222f5c0757303fb3f52.
* Revert "Revert "moved DigestItem impl to impl_outer_log""
This reverts commit 47afd59682f8828665bd9cfb293b40ce4c4787af.
* Revert "Revert "internal module is not required in impl_outer_log""
This reverts commit 9ae640010c00ef134099d5b6a4430d330be134b2.
* More diagnostics
* check if only 1 test fails
* test is back + some "traces"
* removed some traces
* removed "traces"
2018-10-19 09:47:09 +02:00
Svyatoslav Nikolsky
9886d12c26
Pruning changes tries ( #856 )
...
* changes trie pruning
* add comment
* do not prune changes tries on archive nodes
2018-10-17 10:08:45 +02:00
Svyatoslav Nikolsky
fb058ae235
authorities_at cache update ( #836 )
...
* AuthoritiesAt cache update
* fix after merge
2018-10-09 10:54:57 +02:00
Svyatoslav Nikolsky
f851dcf41c
Filter peers on light nodes ( #862 )
...
* do not send OnDemand request to node who, we believe, can't process it
* ignore peers with too old best block on light nodes
* non-weird temporary
* fix condition
* compilation
2018-10-05 13:51:28 -04:00
Svyatoslav Nikolsky
200a716a1a
Extract search of digest item into Digest::log() function ( #874 )
...
* Digest::log fn
* change DigestItem::log impl
2018-10-05 14:17:00 +02:00
Svyatoslav Nikolsky
187c232629
Compare digests item-by-item ( #869 )
...
* compare digest item-by-item
* update comment
2018-10-05 14:16:22 +02:00
Svyatoslav Nikolsky
c54350661d
Fetching changes proof from remote nodes ( #769 )
...
* changes_trie
* changs_trie: continue
* changes_trie: adding tests
* fixed TODO
* removed obsolete ExtrinsicChanges
* encodable ChangesTrieConfiguration
* removed polkadot fle
* fixed grumbles
* ext_storage_changes_root returns u32
* moved changes trie root to digest
* removed commented code
* read storage values from native code
* fixed grumbles
* fixed grumbles
* missing comma
* key changes proof generation + query
* fix grumbles
* check that changes trie config is not changed by block.finalize()
* fixed changes trie config check
2018-09-29 09:47:29 +01:00
Svyatoslav Nikolsky
1e31b8d8ea
log authorities change ( #726 )
2018-09-19 17:21:46 +02:00
Svyatoslav Nikolsky
04e22cd795
cleanup client errors ( #771 )
2018-09-19 15:26:36 +02:00
Svyatoslav Nikolsky
7fa337afbc
Light friendly storage tracking: changes trie + extending over ranges ( #628 )
...
* changes_trie
* changs_trie: continue
* changes_trie: adding tests
* fixed TODO
* removed obsolete ExtrinsicChanges
* encodable ChangesTrieConfiguration
* removed polkadot fle
* fixed grumbles
* ext_storage_changes_root returns u32
* moved changes trie root to digest
* removed commented code
* read storage values from native code
* fixed grumbles
* fixed grumbles
* missing comma
2018-09-18 09:14:41 +02:00
Svyatoslav Nikolsky
0e1023ae42
DigestItem trait (v3) ( #687 )
...
* DigestItem v4
* tests
* wording
2018-09-10 18:34:51 +02:00
Svyatoslav Nikolsky
be7cb74b06
DigestItem trait (v2) ( #650 )
...
* DigestItem trait
* removed autoimpl in impl_outer_log
* StubDigestItem -> ()
2018-09-05 13:36:23 +02:00
Svyatoslav Nikolsky
951fbd1f3b
limit retry count in OnDemand ( #513 )
2018-09-05 11:43:39 +02:00
Svyatoslav Nikolsky
8eb4589ca6
Replace old headers with CHT in light clients ( #512 )
...
* storage proofs
* CHT
2018-09-04 21:57:55 +02:00
Svyatoslav Nikolsky
c346af29e0
Fetching storage proofs by light client ( #252 )
...
* storage proofs
* fixed grumbles
* Update lib.rs
2018-08-12 12:48:40 +02:00
Svyatoslav Nikolsky
859a420ae9
DB-based blockchain data cache for light nodes ( #251 )
...
* use db in light clients
* fixed comment
* fixed grumbles
* blockchain data cache
* fixed grumbles
* fix compilation
* keep the last entry in the cache
* fixed grumbles
* fixed reporting of pruned entries
2018-07-29 12:21:18 +01:00
Svyatoslav Nikolsky
4491a9fac5
Do not queue empty blocks set for import ( #431 )
...
* do not queue empty blocks set for import
* fixed grumbles
2018-07-27 16:09:31 +02:00
Svyatoslav Nikolsky
7b8463aaf1
explicit stop of AsyncImportThread ( #360 )
2018-07-18 12:06:50 +02:00
Svyatoslav Nikolsky
91cb0fcfef
fixed AsyncImportQueue drop deadlock ( #342 )
2018-07-17 10:09:18 +02:00
Svyatoslav Nikolsky
f775b38828
Fix light sync deadlock (blocks import queue) ( #260 )
...
* fix light sync deadlock
* some more docs
2018-07-16 19:04:27 +02:00
Svyatoslav Nikolsky
4403d8a89e
DB-based light client backend ( #250 )
...
* use db in light clients
* fixed comment
* fixed grumbles
2018-06-29 16:10:10 +02:00
Svyatoslav Nikolsky
1aa7cb680d
DB-based light client backend ( #250 )
...
* use db in light clients
* fixed comment
* fixed grumbles
2018-06-29 16:10:10 +02:00
Svyatoslav Nikolsky
293dca6078
Relaying tx/blocks by light clients ( #190 )
...
* do not import external transactions into light tx pool
* do not announce blocks on light clients
* blocks_are_not_announced_by_light_nodes
2018-06-21 16:42:01 +02:00
Svyatoslav Nikolsky
2d99855ef7
Relaying tx/blocks by light clients ( #190 )
...
* do not import external transactions into light tx pool
* do not announce blocks on light clients
* blocks_are_not_announced_by_light_nodes
2018-06-21 16:42:01 +02:00
Svyatoslav Nikolsky
3d0bd2ce62
Trie-based execution proof ( #177 )
...
* TrieBasedBackend
* trie tests
* redunant return_value removed
* use Trie::get_with to record trie proofs
2018-06-21 15:23:48 +02:00
Svyatoslav Nikolsky
fa642cf01a
Preparing light client structure [v2] ( #150 )
...
* light client structure + remote call requests
2018-05-28 10:27:59 +03:00
Svyatoslav Nikolsky
58ba901ccc
Preparing light client structure [v2] ( #150 )
...
* light client structure + remote call requests
2018-05-28 10:27:59 +03:00