Tomasz Drwięga
cfb590ac4b
Allow batch query for block hash. ( #4210 )
2019-11-26 18:07:31 +01:00
Gavin Wood
70bc6eaed6
Introduce efficient Hash-based RNG streamer ( #4169 )
...
* Introduce efficient Hash-based RNG streamer
* Loop in the case of being in bias space.
* Fix tests
* Minor cleanup
2019-11-26 13:27:15 +01:00
cheme
fdbfd0b150
revert ( #4204 )
2019-11-26 10:23:11 +01:00
Tomasz Drwięga
309c6c70d8
Remove keystore when doing calls and producing a proof ( #4196 )
...
* Remove keystore parameter.
* Fix tests.
2019-11-25 19:55:21 +01:00
Ashley
78a758bfba
Rewrite elected_edges.sort_unstable_by in phragmen ( #4195 )
...
* Rewrite phragmen elected_edges.sort_unstable_by
* map -> and_then
2019-11-25 11:43:26 +01:00
Bastian Köcher
68818929ab
Log runtime panic and oom with level error ( #4193 )
2019-11-24 11:28:29 +01:00
Shawn Tabrizi
c9175b59ff
Rename Palette to FRAME ( #4182 )
...
* palette -> frame
* PALETTE, Palette -> FRAME
* Move folder pallete -> frame
* Update docs/Structure.adoc
Co-Authored-By: Benjamin Kampmann <ben.kampmann@googlemail.com >
* Update docs/README.adoc
Co-Authored-By: Benjamin Kampmann <ben.kampmann@googlemail.com >
* Update README.adoc
2019-11-22 19:21:25 +01:00
Sergei Pepyakin
68351da29b
Renaming and documentation for ApplyResult, ApplyOutcome and et al ( #4134 )
...
* Remove superflous errors from the system module
* Rename and document InclusionOutcome
* Rename InclusionError
* Remove unused inclusion errors.
I left the enumeration though since other elements might be used some day.
* Rename and document DispatchOutcome
* Apply suggestions from code review
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* TransactionValidityError instead of InclusionError
* Rename InclusionOutcome to ApplyExtrinsicResult
* Update docs.
* Update lib.rs
should be → is
* Bump the block builder API version.
* Fix the should_return_runtime_version test
* Clean the evidence
2019-11-22 17:15:58 +01:00
Tomasz Drwięga
86b6ac5571
Offchain execution extensions ( #4145 )
...
* Pass Extensions instead of individual objects.
* Move TransactionPool to a separate ExternalitiesExtension.
* Fix compilation.?
* Clean up.
* Refactor testing utilities.
* Add docs, fix tests.
* Fix doctest.
* Fix formatting and add some logs.
* Add some docs.
* Remove unused files.
2019-11-22 17:10:23 +01:00
Ashley
1735683cc9
Upgrade from futures-preview to futures 0.3.1, and remove futures 0.1 where currently possible ( #4083 )
...
* Migrate node and node-template
* Migrate srml
* Simple changes
* Add async-std for interval
* Fix test-runtime warning
* Small changes
* move futures01 in core/rpc to dev-deps
* Change wasm CI builds
* Switch to async-std 1.0.1
* Remove async-std dep of network
* Add modified lockfile
* Fix node cli browser build
* Remove authority-discovery async-std dep
* Add Send + Sync to interval dyn stream
2019-11-22 13:06:23 +01:00
Bastian Köcher
7769554af6
Clean up depedencies and cargo tomls ( #4180 )
...
* Clean up depedencies and cargo tomls
* Yeah, fuck it
2019-11-22 13:02:51 +01:00
Kian Paimani
11703a5916
Relocate weight to paint + decouple from extensions ( #4124 )
...
* Fisr migrated version of weight to paint
* Bump
* Minor nits
* Some review fixes.
* Line width
* Revert spec bump
* Fix build
* Update lock file
* Update palette/executive/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update palette/membership/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-11-22 11:23:32 +01:00
Jim Posen
502deb9cce
Upgrade trie-db crate to 0.16.0. ( #4144 )
...
* Upgrade paritytech/trie crates to 0.16.0.
* Fix tests and unexpected Cargo.lock change.
* Bump trie-bench version.
2019-11-21 11:01:49 +01:00
joe petrowski
2783b44207
Rename PAINT to PALETTE ( #4161 )
...
* /paint to /palette
* rename paint to palette
* rename the modules in palette to be pallets
* update Structure.adoc
* bump impl
* fix CI directory
* Update docs/Structure.adoc
Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org >
2019-11-21 01:08:25 +01:00
Bastian Köcher
3ae18811d7
sr-io remove unused files (#4130 )
2019-11-20 22:18:47 +01:00
Bastian Köcher
b1625f1a44
Fix node-rpc-client compilation ( #4159 )
...
* Fix `node-rpc-client` compilation
* Enable `alloc` feature of `zeroize` on `std`
2019-11-20 21:33:20 +01:00
Benjamin Kampmann
303843f483
Move inherents to primitives ( #4126 )
...
* Split Aura and Timestamp inherents out of paint
* fixup node depedencies
* move babe inherents to primitives
* move authorship inherents into primitives
* Move finalty tracker inherents into primitives
* fix aura primitives import
2019-11-20 12:18:36 +01:00
Xiliang Chen
3d4bee6cd6
add div and checked_div to Fixed64 ( #4136 )
...
* add div and checked_div to Fixed64
* add more tests
* div by zero is div by zero
2019-11-19 22:33:29 +01:00
Tomasz Drwięga
613b5e7e2d
Fix serialization of transaction_paymentInfo ( #4146 )
...
* Add serialization test for u128
* Fix crash on serde of u128
2019-11-19 18:42:35 +01:00
André Silva
9194b2a3c0
gossip: replace LRU cache ( #4137 )
...
* peerset: remove unused dependencies
* gossip: replace lru cache
* header-metadata: replace lru cache
2019-11-19 10:58:06 +01:00
brenzi
10925510de
fix full_crypto ( #4133 )
...
* hopefully fixing api-client with this
* another use statement needed
* using full path for Vec
* next try
* yet again
* cleanup
2019-11-19 09:33:56 +01:00
Bryant Eisenbach
566328cd3e
Add serde for Signature types ( #4109 )
...
* refactor: Added `from_slice()` method to ECDSA signatures
* doc: Modified ECDSA signature docstring to note Recovery ID
* feat: Implemented serde for Signature types
Note: using hexstring encoding
* feat: Automatically derive serde for MultiSignature
* refactor: Convert hex bytes using try_from instead of from_slice
Avoids panicking in critical code
Implemented from Peer Review
* clean: spaces -> tabs
* test: Added tests for Signature serialization
Added dependency on serde_json for testing purposes
2019-11-18 21:00:47 +01:00
Benjamin Kampmann
60e5011c72
Reorganising the repository - external renames and moves ( #4074 )
...
* Adding first rough ouline of the repository structure
* Remove old CI stuff
* add title
* formatting fixes
* move node-exits job's script to scripts dir
* Move docs into subdir
* move to bin
* move maintainence scripts, configs and helpers into its own dir
* add .local to ignore
* move core->client
* start up 'test' area
* move test client
* move test runtime
* make test move compile
* Add dependencies rule enforcement.
* Fix indexing.
* Update docs to reflect latest changes
* Moving /srml->/paint
* update docs
* move client/sr-* -> primitives/
* clean old readme
* remove old broken code in rhd
* update lock
* Step 1.
* starting to untangle client
* Fix after merge.
* start splitting out client interfaces
* move children and blockchain interfaces
* Move trie and state-machine to primitives.
* Fix WASM builds.
* fixing broken imports
* more interface moves
* move backend and light to interfaces
* move CallExecutor
* move cli off client
* moving around more interfaces
* re-add consensus crates into the mix
* fix subkey path
* relieve client from executor
* starting to pull out client from grandpa
* move is_decendent_of out of client
* grandpa still depends on client directly
* lemme tests pass
* rename srml->paint
* Make it compile.
* rename interfaces->client-api
* Move keyring to primitives.
* fixup libp2p dep
* fix broken use
* allow dependency enforcement to fail
* move fork-tree
* Moving wasm-builder
* make env
* move build-script-utils
* fixup broken crate depdencies and names
* fix imports for authority discovery
* fix typo
* update cargo.lock
* fixing imports
* Fix paths and add missing crates
* re-add missing crates
2019-11-14 21:51:17 +01:00
Gav
4582038b3d
Fix warning and directory restructure.
2018-02-08 14:29:30 +01:00
Gav
5c842f77bc
Many renames.
...
- Everything polkadot becomes polkadot-.
- Wasm (substrate) executor tests split from Wasm (Polkadot) runtime and
built independently.
2018-02-07 23:36:34 +01:00
Gav
d494d4b89b
Fix everything.
2018-02-07 17:07:55 +01:00
Gav
dcff8f1a2f
Full native build with new structure.
...
No tests yet.
Wasm build still pulls in std.
2018-02-07 15:54:18 +01:00
Gav
9fe85fc9f4
Split out substrate-primitives from polkadot-primitives.
...
Bottom half minus tests builds.
2018-02-07 15:24:54 +01:00
Gav
26b4b56402
Remove CallData/OutData.
2018-02-07 13:02:57 +01:00
Gav
a5195dfce6
Rename polkadot-serializer -> substrate-serializer
2018-02-07 11:47:30 +01:00
Gav
2220c6e37a
Rename polkadot-primitives -> substrate-primitives.
2018-02-07 11:33:29 +01:00
Gav
c0d072a5f3
Rename codec -> substrate-codec, executor -> substrate-executor.
2018-02-07 11:29:10 +01:00
Gav
1b7f34bef2
Refactor primitives.
2018-02-07 11:03:43 +01:00
Robert Habermeier
8bae8510f6
combine relay chain primitives into one module
2018-02-06 18:30:21 +01:00
Robert Habermeier
6aaf446352
move function and proposal types to transaction module
2018-02-06 16:42:32 +01:00
Robert Habermeier
4378ce7887
fix tests and review grumbles
2018-02-06 16:35:19 +01:00
Robert Habermeier
d2660900de
unclobber function changes
2018-02-06 15:41:28 +01:00
Robert Habermeier
de65de4758
fix tests after merge
2018-02-06 14:44:25 +01:00
Robert Habermeier
af2fdc5478
fix compilation for native
2018-02-06 12:26:04 +01:00
Robert Habermeier
5a675e9c64
fix most issues with compiling on WASM
2018-02-06 12:02:03 +01:00
Robert Habermeier
b58df7892f
integrate new primitives with native-runtime
2018-02-05 17:40:49 +01:00
Robert Habermeier
2bc7c57359
reintroduce slicable to primitives
2018-02-05 16:15:45 +01:00
Robert Habermeier
188332cc4b
extract out all primitives
2018-02-01 11:13:55 +01:00
Robert Habermeier
0035369f82
allow polkadot-primitives to compile on nightly
2018-01-31 22:27:07 +01:00
Robert Habermeier
29c3a585a1
Merge branch 'master' into author-relay-block
2018-01-31 18:11:30 +01:00
Robert Habermeier
8e6cb1b6e2
more idiomatic std features
2018-01-30 19:28:57 +01:00
Arkadiy Paronyan
44499550d9
Networking and in-memory client ( #38 )
...
* Networking crate draft
* Started work on syncing algo
* Fixed query range
* BlockCollection tests
* In-mem client backend
* Fixed tests
* Renamed Transaction
* Removed stray println
* Docs
2018-01-30 18:49:52 +01:00
Gav
d97520c7f0
Introduce hex/string printing in runtime.
2018-01-27 13:42:40 +01:00
Robert Habermeier
954a4dc8ef
clean up some unsafety in Slicable
2018-01-23 17:21:20 +01:00
Gav Wood
3402f169a7
Introduce basic skeleton for Polkadot runtime. ( #32 )
...
* Introduce basic skeleton for Polkador runtime.
* Clean up the runtime skeleton.
* Make initial runtime skeleton compile.
* Compile polkadot-runtime both for Wasm ad native, allowing for testing and direct usage.
* More fleshing out on runtime.
* Update native support.
* Fix warning.
* Update gitignore
* Update path.
* Fix path.
* Remove accidentally committed files.
* Add wasm binaries.
* Fix test.
* Native storage support API.
* Add environmental module
* Add native environment to make native source-code compatible with wasm.
Also tests.
* Finish up & polish environment stuff.
* Avoid using reentrancy issues.
* Add some docs and a test.
* Remove unneeded function.
* Documentation
* Tweak docs
* Remove TODOs.
* Balance transfers + util methods.
* Rejig tests and ensure authorities are addressed consistently.
* Add marshaller for xfer function
* Transaction dispatch test.
* Minor fix.
* Add test for ser/de transaction.
* Add ser/de for header.
* Add tests for header ser/de
* Introduce basic block decoding/execution framework.
* Introduce block decoding/execution framework (p2)
* Big refactor.
* Split out joiner.
* Hide away support modules.
* Fix up wasm runtime.
* use externalities for chain_id
* Clean up (Test)Externalities.
* Repot and introduce keccak-256 external.
* Signing with crypto.
* fix unsafety hole in environmental using function
* Introduce Ed25519 crypto.
* Repotting.
* Add ed25519_verify external.
* Introduce Ed25519 verify as an external.
* fix unsafety hole around unwinding
* Compile fixes.
* use new environmental API
* Tests for ed25519 verify.
* Polish
* Introduce UncheckedTransaction & test.
* Implement basic block and tx processing
* Introduce static hex and valid signature for block test.
* Repot session.
* comments.
* Refactor and timestamp test
* Remove fluff
* Remove fluff.
* Staking eras and tests.
* Implement sessions.
* Polish
* Test sessions.
* Introduce better hashing.
- Blake2 for secure hashing
- XX for fast hashing
* Fix tests.
* Introduce staking.
* Tests for simple staking system.
* Build fix for wasm.
* Fix tests.
* Repotting and docs.
* Docs and licence.
* Documentation.
* Remove superfluous code.
* Remove dummy key.
* Remove other superfluous file.
* Optimise with swap_remove
2018-01-23 15:24:17 +01:00