Bastian Köcher
4f5654b67d
Document decl_storage! hashers ( #3170 )
2019-07-22 19:00:20 +02:00
Pierre Krieger
2e70087810
Alphabetical crates order ( #3163 )
2019-07-22 15:05:26 +01:00
Pierre Krieger
e83d6c6f04
Add a warning if network is too slow ( #3160 )
2019-07-22 15:00:45 +01:00
thiolliere
08d1933105
fix doc ( #3162 )
2019-07-22 14:01:13 +02:00
Gautam Dhameja
4b7c9929ee
Timestamp off-chain API ( #3144 )
...
* timestamp offchain api impl
* Addressed review comments
* fixed expect message
* fixed compile error
* fixed line width
2019-07-22 13:32:24 +02:00
David Craven
a3d19baea3
Refactors the offchain worker api ( #3150 )
...
* Update offchain primitives.
* Update offchain worker.
* Update im-online.
* Update service.
* Update node and node-template.
* Update runtime version.
* Fix build.
* Fix offchain worker tests.
* Generalize authority_pubkey.
* Add test.
* Update lib.rs
2019-07-22 17:20:57 +08:00
Jualy
157cd9a217
Update Dockerfile ( #332 )
...
/data path should link to /root/.local/share/polkadot
2019-07-22 10:42:59 +02:00
Pierre Krieger
2edeef5825
ImportBlock -> BlockImportParams ( #3158 )
2019-07-21 18:43:02 -04:00
Amar Singh
4bbfaa9c8f
docs: add srml readme, clarify comment in staking ( #3151 )
...
* add srml readme, nit on staking/lib.rs
* increase impl version, not spec version
* change back impl
2019-07-21 15:22:11 +02:00
Jualy
0815a25edf
Add command example for rpc port 9933 ( #333 )
...
Connect rpc port 9933 failed if polkadot startup without --rpc-external
2019-07-21 11:51:12 +02:00
Gavin Wood
a7a4caed1a
SS58 versioning (Network IDs) ( #3147 )
...
* Introduce network IDs for SS58
* Fix
* Allow numeric overrides.
* Improve docs
* String rather than str
* Comment out code that will become valid after other PR
* Fix
2019-07-20 09:24:10 +08:00
Michael Müller
c70b81444a
Introduce srml/im-online ( #3079 )
...
* Fix grammar and typo
* Extend network service
* Extend offchain API
* Support creating unsigned UncheckedExtrinsic
* Introduce srml/im-online
* Bump impl and spec version
* Fix web-wasm test
* Apply suggestions from code review
Remove parity-multiaddr dependency
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com >
* Replace transmute with from_raw_parts
* Replace PeerId.to_string() with .to_base58()
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com >
* Update Cargo.lock
* Bump impl and spec version (again)
It was updated in master in the meantime.
* Apply suggestions from code review
Co-Authored-By: Sergei Pepyakin <sergei@parity.io >
* Address comments
* Add public function is_online_in_current_session()
* Bump spec_version
* Fix doc tests
* Improve comments
* Remove superfluous line
* Name parameters consistently
* Implement comments
* Switch From to TryFrom
* Use Vec instead of HashSet
* Fix tests
* Revert me: local testing
* Fix check if already sent during session
We gossip each session, hence we need to check
if already sent in this session (not era).
* Fix typos
* Consistent terminology
* Revert "Revert me: local testing"
This reverts commit 73fbc29ff3e5ed71d99436318260b4f007e837f4.
* Introduce IsMember trait
* Implement misc comments
* Remove unused function
* Fix test
* Fix external_addresses being written
* Fix test
* Add necessary trait bound
* Do not increment version
* Update lib.rs
2019-07-20 09:19:44 +08:00
Amar Singh
a757dfb222
Transaction Fee Multiplier ( #2854 )
...
* added fee calculations; need some type conversions
* cleaned up make_payment and other stuff
* rename vars to compile
* add WeightToFee type
* clean test files after new type added to balances
* fmting
* fix balance configs in tests
* more fixing mocks and tests
* more comprehensive block weight limit test
* fix compilation errors
* more srml/executive tests && started fixing node/executor tests
* new fee multiplier; still overflows :(
* perbill at the end attempt; needs to be changed
* clean fmting, rename some vars
* new PoC implementation.
* test weight_to_fee range and verify functionality
* 12 of 15 tests in node executor are passing
* 1 test failing; big_block imports are failing for wrong reasons
* Update srml/executive/src/lib.rs
Co-Authored-By: Kian Peymani <Kianenigma@users.noreply.github.com >
* Some cleanup.
* consolidate tests in runtime impls
* clean and condition executive for stateful fee range test
* remove comments to self
* Major cleanup.
* More cleanup.
* Fix lock files.
* Fix build.
* Update node-template/runtime/Cargo.toml
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Update node/executor/src/lib.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
* Per-block update.
* nit.
* Update docs.
* Fix contracts test.
* Stateful fee update.
* Update lock files.
* Update node/runtime/src/impls.rs
* Revamped again with fixed64.
* fix cargo file.
* nits.
* Some cleanup.
* Some nits.
* Fix build.
* Bump.
* Rename to WeightMultiplier
* Update node/executor/src/lib.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Add weight to election module mock.
* Fix build.
* finalize merge
* Update srml/system/src/lib.rs
* Bring back fees.
* Some nits.
* Code shifting for simplicity.
* Fix build + more tests.
* Update weights.rs
* Update core/sr-primitives/src/weights.rs
* Update lib.rs
* Fix test build
2019-07-19 14:21:05 +02:00
André Silva
a313935947
srml: grandpa: Pause/resume current authority set ( #3068 )
...
* grandpa: add pause/resume signals to runtime module
* grandpa: add tests for srml pause/resume transitions
* node: bump spec_version
* Apply suggestions from code review
* Update core/finality-grandpa/primitives/src/lib.rs
* Update core/finality-grandpa/primitives/src/lib.rs
2019-07-19 17:30:59 +08:00
Shawn Tabrizi
2c66adfb0a
Update to latest Substrate (7688cbc) ( #329 )
...
* Initial fixes
* Clean up Timestamp
* Patch futures
* Typo
* Fix compilation of tests
* Fix parachains tests
* Update runtime/src/parachains.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Update runtime/src/parachains.rs
Co-Authored-By: Gavin Wood <github@gavwood.com >
2019-07-19 14:15:14 +08:00
Pierre Krieger
1e77717b26
Switch the network timers to new futures ( #3117 )
2019-07-18 18:52:19 -04:00
André Silva
991e9ae263
client: fix decode block number as u32 ( #3130 )
...
* client: fix panic on decode block number as u32
* client: add test for number_index_key
* client: add another test at client level
* client: address review grumbles
2019-07-18 15:55:14 +01:00
Kian Peymani
e8a2fee6d6
Update hex-literal dependency version. ( #3141 )
...
* Update hex-literal dep version.
* Update lock file.
2019-07-18 11:28:55 +02:00
thiolliere
62f62c6c48
fix and test default instance for collective ( #3135 )
2019-07-17 19:00:20 +02:00
Jim Posen
eea9437805
srml-contracts: Avoid unnecessary lookups during call context initialization ( #3121 )
...
* srml-contracts: Remove lookups during CallContext initialization.
* Bump node runtime impl_version.
2019-07-16 23:30:45 +03:00
Pierre Krieger
8e09338e27
Don't allow failure for more CI stages ( #3125 )
2019-07-16 15:33:45 +01:00
Pierre Krieger
a22bb71029
Consistency with the Block trait name ( #3129 )
...
* Consistency with the Block trait name
* Line widths
2019-07-16 15:32:46 +01:00
Jim Posen
768eb1af4d
Contract storage limit ( #3126 )
...
* srml-contracts: Remove hard-coded code hashes from tests.
This makes it easier to update existing and add new test Wasm modules.
* Test maximum contract storage write size.
* Implement storage value limit for contracts.
* Bump node runtime spec version.
2019-07-16 17:23:06 +03:00
Shawn Tabrizi
1ded51d77b
Update runtime to use Root origin ( #327 )
...
* Update runtime to use Origin
Needed for: https://github.com/paritytech/substrate/pull/3045
When we merge to latest Substrate
* Fix formatting
2019-07-16 07:42:13 +02:00
Svyatoslav Nikolsky
95061beb79
Some changes tries optimizations ( #2840 )
...
* changes tries initial optimizations
* line width
2019-07-16 10:25:08 +09:00
Gavin Wood
1b5bafc8de
Introduce vesting offsets ( #3094 )
...
* Introduce vesting offsets
Closes #3090
* Fix logic
* Bump impl verfsion
* Initial rewrite of vesting
* Test for liquidity with delayed vesting
* Bump Spec, Fix line width
* More line width fix
* Small nit to documentation
2019-07-16 10:22:18 +09:00
André Silva
f74c2676da
client: Reorg to new best when finalizing divergent branch ( #2869 )
...
* client: add tests for reorging on diverged finality
* client: mark finalized block as best if diverged from current best chain
* client: update meta on set_head
* core: add docs about SelectChain to finalize_block
* client: improve finality reorg test
* client: LongestChain doesn't return client best block
* client: LongestChain searches canonical chain
2019-07-16 08:50:22 +09:00
Pierre Krieger
babfc44736
Make mDNS part of DiscoveryBehaviour ( #3116 )
...
* Make mDNS part of DiscoveryBehaviour
* Fix tests
* Address concern
2019-07-16 08:49:44 +09:00
Max Inden
515a56af4a
core/network: Remove self mutability on put and get value ( #3118 )
...
Make `NetworkService.{get,put}_value` only take a self reference instead
of a mutable self reference. When retrieving `NetworkService` via
`NetworkWorker`, one only gets an immutable reference.
2019-07-16 08:49:27 +09:00
TriplEight
3b039e3e49
WIP: Subkey release. ( #3123 )
...
* should decide on publishing
* build subkey for linux
* small fixes
* wrong dir
2019-07-16 08:47:21 +09:00
André Silva
ee0f3966ba
node: fix hardcoded block time in integration tests ( #3120 )
2019-07-15 18:26:33 +02:00
Sergei Pepyakin
19ac4c0af3
Update complexity.md ( #3114 )
2019-07-15 17:42:22 +03:00
TriplEight
84f4d54e53
Logs will be saved to the job artifacts only in case of failure. ( #3110 )
...
* Logs will be saved to the job artifacts only in case of failure.
* Logs will be partly shown at the end in case of failure.
* expiration and parsing
2019-07-15 16:37:31 +02:00
Pierre Krieger
5bd806bd9b
Improvements to the import queue ( #3101 )
...
* Remove block_imported
* Move blocks results processing to sync
* Remove methods from Link
* Better errors
* Allow cancelling the import queue
* Restore the import trace
* Fix network tests
* Line widths
* Use has_error instead
* Minor style
2019-07-14 13:22:32 +01:00
Pierre Krieger
7ae6556a02
Switch the peerset to new futures ( #3108 )
...
* Switch the peerset to new futures
* Fuse the peerset rx
2019-07-13 10:55:01 +02:00
Bastian Köcher
c42d73d302
Make parameter types implementation more flexible ( #3112 )
...
* Make parameter types implementation more flexible
* Bump `impl_version`
2019-07-13 10:54:41 +02:00
Toralf Wittner
9ee79d5c5e
Remove sync::Context trait. ( #3105 )
...
Instead of passing a context around to each method, thereby introducing
side-effecting I/O actions everywhere, with this PR `sync::ChainSync`
only contains state which is updated by invoking various callback
methods (`on_*`) and actionable items are returned as regular results
from method calls, often iterators yielding requests that should be
issued to peers. It is up to the caller to handle these in an
appropriate way, currently `protocol` will send those as messages.
2019-07-12 20:37:38 +02:00
Arsen A. Gutsal
0ea2e1cb8c
Dockerfile fixed. ( #308 )
...
* Dockerfile fixed.
* docker: use init.sh to setup rust env
2019-07-12 13:01:49 +01:00
Bastian Köcher
1f25902e42
Merge pull request #13 from paritytech/stas-gitignore-common-ide
...
Add common ignored files
2019-07-11 23:17:51 +02:00
Gavin Wood
e4d4548121
Convert unnecessary storage item to static. ( #3093 )
...
* Convert unnecessary storage item to static.
* Polish
* 6 second blocks.
* Compile fixes
* Bump runtime
* Fix
* Another fix
* Import `srml_support::traits::Get`
* Export MinimumPeriod from `decl_module!`
* Remove `config` from Timestamp
* Clean up warnings
2019-07-11 23:03:33 +02:00
Pierre Krieger
b3dc472a9b
Switch the telemetry to new futures ( #3100 )
...
* Switch the telemetry to new futures
* Line widths
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix Cargo.lock
2019-07-11 18:11:55 +02:00
Pierre Krieger
bf2551a854
Switch the client to new futures ( #3103 )
...
* Switch the client to new futures
* No need for compat in the client
* Fix client tests
* Address review
2019-07-11 16:58:30 +02:00
Bastian Köcher
f5e921281e
Cleanup CLI and introduce execution-all ( #3098 )
...
* Cleanup CLI and introduce `execution-all`
`--execution-all` sets the execution strategies for all available
execution contexts.
* Rename parameter
2019-07-11 16:57:59 +02:00
Bastian Köcher
d814150d07
Fix chainspec and runtime ( #326 )
2019-07-11 15:57:50 +01:00
Xiliang Chen
b3dd034cce
GenericAsset module ( #2790 )
...
* added generic asset module
* Update srml/generic-asset/Cargo.toml
* Update srml/generic-asset/Cargo.toml
* revert Cargo.lock changes
* cleanup line width
* rename srml_support to support
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* update comments
* more docs
* update Cargo.lock
* fix tests
* update headers and fix missing events
* Update srml/generic-asset/Cargo.toml
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update srml/generic-asset/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* fix issues
* avoid duplicated code
* fix build issue
* cleanup Cargo.toml
* update based on reviews
* remove not used method
* update parity-codec version
* fix test build issue
* update Cargo.lock
* update with latest substrate changes
* refactor PermissionVersions encoding
2019-07-11 16:36:48 +02:00
André Silva
e7edc1ee9d
node: pass stash accounts to session module config ( #3095 )
...
* node: pass stash accounts to session module
* node: pass stash accounts to staking invulnerables
2019-07-11 10:21:57 +02:00
Pierre Krieger
efed2e3098
Remove set_finality_proof_request_builder ( #3087 )
...
* Remove set_finality_proof_request_builder
* Fix Babe
* Fix Grandpa
* Fix service doctests
2019-07-11 09:44:32 +02:00
Kian Peymani
814b9056b3
Sensible locking for staking and council. ( #3050 )
...
* Sensible locking for staking and council.
* Bump.
2019-07-10 20:03:14 +02:00
Kian Peymani
ddfc761dbf
srml-staking: Force minimum bond amount + proper cleanup. ( #3048 )
...
* enforce minimum bond amount.
* Bump.
* Improve doc.
* Update srml/staking/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update srml/staking/src/lib.rs
Co-Authored-By: Gavin Wood <gavin@parity.io >
* Doc update.
2019-07-10 17:49:16 +02:00
Black3HDF
0feb91d045
srml-contracts: minor documentation improvements ( #3086 )
...
* fix typos
* update information about ink
* fix typos
* fix typo
* fix typos
2019-07-10 17:49:00 +02:00