Commit Graph
56 Commits
Author SHA1 Message Date
Arkadiy Paronyan 0ed48c89ab Remove dependency on the parity repo (#734) 2018-09-13 14:25:38 +02:00
Arkadiy Paronyan fea750511e Bring substrate-demo up to date (#658)
* Updating substrate-demo

* Consenus fixes

* Reverted toolchain change

* Adjusted timeout formula

* Simplfied proposal creation

* Fixed tests

* Fixed a few small issues

* 2017->2018

* Style

* More style

* Renamed demo executable to substrate

* Style

* Fixed compilation after merge

* Style
2018-09-10 17:54:32 +02:00
Arkadiy Paronyan 6fb9b5a0ba Fixed sync stalling when import queue is full (#691) 2018-09-07 21:45:44 +02:00
Arkadiy Paronyan b50196b389 Speedup compilation (#671) 2018-09-05 18:31:47 +02:00
Arkadiy Paronyan 146ebceab4 Check for pruned block state (#648) 2018-09-03 16:29:55 +02:00
Arkadiy Paronyan 3514ae9807 More generic extrinsic pool (#579) 2018-08-20 14:54:03 +02:00
Arkadiy Paronyan e482958705 Authoring with WASM runtime (#580) 2018-08-17 10:40:40 +02:00
Arkadiy Paronyan a330f2e058 Continue sync after ancestry search (#538) 2018-08-10 15:29:10 +02:00
Arkadiy Paronyan 9d88d868dd Reserved peers CLI flag (#528) 2018-08-09 20:52:56 +02:00
Arkadiy Paronyan 70881b5dc8 Lower bft timeout (#483) 2018-08-02 17:30:51 +02:00
Arkadiy Paronyan 098cfcd319 Wasm execution optimizations (#466)
* WASM execution optimizations

* Dropped min-heap-pages

* Fixed tests

* Fixed tests 2
2018-08-01 12:29:45 +01:00
Arkadiy Paronyan c709ba1dd0 Update version on git head change (#444) 2018-07-28 19:25:51 +02:00
Arkadiy Paronyan 31db321814 Exit signal gets its own trait (#433)
* Exit signal gets its own trait

* Typo

* Removed clone bounds
2018-07-28 08:31:16 +02:00
Arkadiy Paronyan 916131b073 Prevent building invalid blocks (#430)
* Commit extrinsics changes

* Removed panic=abort

* Commit when needed

* Resotre default hook for the native call

* Revert test

* Proper test

* Sorted errors and fixed wasm build
2018-07-27 11:11:47 +02:00
Arkadiy Paronyan debeedfbe8 Substrate CLI (#423)
* Moved chain ops to substrate-service

* moved RPC to susbstrate-service WIP

* Moved RPC to substrate-service

* Version

* Removed redundadnt messages

* substrate CLI

* Removed obsolete files

* Sorted out startup messages

* Pass executable name to CLI
2018-07-25 22:10:09 +02:00
Arkadiy Paronyan 65f0c5f3af Revert chain command (#393)
* Revert chain command

* BLOCKS -> NUM

* Fixed warning
2018-07-24 15:54:34 +02:00
Arkadiy Paronyan 2fdb9cbc29 Keep last finalized overlay in memory until DB commit (#409) 2018-07-24 11:13:04 +02:00
Arkadiy Paronyan 2ece52f339 Explicit disconnect on timeout (#382) 2018-07-19 16:04:05 +02:00
Arkadiy Paronyan 0dfe40e742 Panic hook (#379)
* Panic hook

* Abort on panic in release
2018-07-19 14:14:30 +02:00
Arkadiy Paronyan 8bcfb16fad Fixed block import (#368)
* Fixed decoding from file

* Increased progress frequency
2018-07-18 15:03:30 +02:00
Arkadiy Paronyan 73613f45c1 Gossip through all peers. (#359)
* Added some traces

* Gossip for all

* Fixed formatting
2018-07-18 12:07:05 +02:00
Arkadiy Paronyan 94fcb9a262 Download bodies when authorit nodes are syncing (#355) 2018-07-17 21:48:51 +02:00
Arkadiy Paronyan 5035f18a85 Specialized network() (#352) 2018-07-17 19:33:12 +02:00
Arkadiy Paronyan f84ad85c62 Use substrate codec for network messages (#333)
* Use substrate codec for network messages

* Version bump

* Removed redundant format
2018-07-16 14:28:31 +01:00
Arkadiy Paronyan 1aeb2825af Refactored Slicable (#324)
* Refactored Slicable

* Docs

* Wasm build

* Wasm build

* Renamed traits

* Review nits

* Renamed Slicable as well
2018-07-15 22:51:21 +02:00
Arkadiy Paronyan 5b3050293a Fixed a few authoring issues (#315) 2018-07-14 22:27:25 +02:00
Arkadiy Paronyan b8216372c7 Split polkadot-service (#310)
* Substrate service

* Splitting polkadot service

* Specialised components

* Specialised components

* Docs and style

* Docs and style

* Final touches

* Added db key assertion
2018-07-14 18:07:11 +02:00
Arkadiy Paronyan 0665cfa9fc Avoid serializing into json::Value (#313) 2018-07-14 15:54:48 +02:00
Arkadiy Paronyan 48aae39343 Poc-1 backwards compatibility (#291) 2018-07-10 09:49:42 +02:00
Arkadiy Paronyan 847f29ff8b PoC-1 backwards compatibility (#281)
* Poc-1 justification compatibility

* Poc-1 version compatibility

* Fixed comment placement
2018-07-05 20:09:44 +02:00
Arkadiy Paronyan aa747e3fae Block import and export (#272)
* Block export and import

* Export and import using std streams

* Made AuthorituId::from_slice private
2018-07-03 20:20:53 +02:00
Arkadiy Paronyan 12268ae700 Runtime version (#256)
* Runtime version

* Updated genesis.wasm

* Minor fixes

* Fresh runtime

* Default version for pre Poc-2; Fixed authorship interface check

* Fixed authoring check
2018-07-03 17:44:43 +02:00
Arkadiy Paronyan 9b885ba092 Serialisable genesis config (#229)
* Genesis serialization

* Custom type for AuthorityId

* Merge w master

* Fixed a few minor issues

* Fixed unmerged file

* Renamed tag

* Deferred genesis loading

* Upated wasm runtime

* Minor issues
2018-07-03 15:56:01 +02:00
Arkadiy Paronyan b4a0140c6d State pruning (#216)
* Started work on state db

* Updated for a new hash type

* Pruning and tests

* Generalize on the block hash/key type

* Integrate with the client backend

* Merge w master

* CLI options

* Updated for light client refactoring

* Used IntoIterator

* Fixed invalid input hadling
2018-06-28 17:30:24 +02:00
Arkadiy Paronyan 6a56c65a5e Made block message compatible with poc-1 (#226) 2018-06-22 15:30:10 +02:00
Arkadiy Paronyan 504bcc0cae Fixed block download sequence (#223) 2018-06-21 15:12:49 +02:00
Arkadiy Paronyan 32d85fbecf Fixed consensus message garbage collection (#191)
* Fixed garbage collection logic

* Track block being imported

* mod tests
2018-05-31 18:17:18 +02:00
Arkadiy Paronyan 8bfded8d72 Networking and backend fixes (#155)
* Networking and backend fixes

* Fixed test

* Reverted DB fix

* Reverted DB fix properly

* Preserve messages with unknown parent_hash
2018-05-14 12:48:14 +02:00
Arkadiy Paronyan 5ef7fc4ab5 Fixed local net CLI example (#154) 2018-05-11 14:00:29 +02:00
Arkadiy Paronyan 04cbcd0655 Database backend (#133)
* DB backend

* DB backend

* Cleanup

* Clean build files after running tests

* Fixed comment

* add OOM lang item to runtime-io
2018-05-02 13:36:36 +02:00
Arkadiy Paronyan 101549238e Improved logging (#138)
* Improved logging

* Removed some unwraps
2018-04-18 15:57:43 +02:00
Arkadiy Paronyan 54d6970efc Fixed block proagation after import and import notifications (#119)
* Fixed block proagation after import and import notifications

* Removed cargo check
2018-04-11 19:25:41 +02:00
Arkadiy Paronyan d978425f05 Basic informant (#118)
* Informant

* Pass Handle instead of Core
2018-04-11 16:47:22 +02:00
Arkadiy Paronyan f72e9e7e13 Bumped devp2p (#116) 2018-04-07 17:17:06 +02:00
Arkadiy Paronyan b3dd4e74fd Consensus message buffering and more (#114)
* CLI options and keystore integration

* Replace multiqueue with future::mpsc

* BFT gossip

* Revert to app_dirs

* generate_from_seed commented

* Refactor event loop

* Start consensus by timer

* Message buffering

* Minor fixes

* Work around duty-roster issue.

* some more minor fixes

* fix compilation

* more consistent formatting

* make bft input stream never conclude

* Minor fixes

* add timestamp module to executive

* more cleanups and logging

* Fixed message propagation
2018-04-06 19:18:26 +02:00
Arkadiy Paronyan 6b83f11a11 Expose transaction pool from the polkadot service (#109) 2018-04-05 09:57:44 +02:00
Arkadiy Paronyan 3ec6d2dde6 BFT gossip (#106)
* CLI options and keystore integration

* Replace multiqueue with future::mpsc

* BFT gossip

* Revert to app_dirs

* generate_from_seed commented
2018-04-03 18:06:34 +02:00
Arkadiy Paronyan 471761f4b6 Polkadot service (#82)
* Block import notifications

* Build fix

* Consensus messages supported in the networking

* Started consensus service

* BFT service

* Transaction propagation

* Polkadot service

* CLI integration

* Build fix

* Added signatures validation

* Removed executor argument

* Refactored steam loops; Queue size increased

* Limit queue size

* Fixed doc comment

* Fixed wasm build

* Fixed wasm build

* Check id properly
2018-03-30 13:54:37 +02:00
Arkadiy Paronyan 5cc8cf7d70 Merge pull request #79 from paritytech/gav-demo
Substrate demo (a basic blockchain made with substrate)
2018-03-14 12:56:36 +01:00
Arkadiy Paronyan a2a299813d Merge pull request #68 from paritytech/update-wasm
fix substrate test runtime and broken ed25519 test
2018-02-09 16:25:10 +01:00
Arkadiy Paronyan f2b3bab61e Networking tests and fixes (#61)
* BlockId in client interface

* Sync fixes and tests

* Updated to latest primitives

* Updated dependencies

* Updated for new (old) primitives

* Network as workspace member

* substrate-network

* Removed obsolete file

* begin_transaction on hash
2018-02-08 17:49:55 +01:00
Arkadiy Paronyan 8cacfc75ab Merge pull request #64 from paritytech/gav-split-executor
Fix warning and directory restructure
2018-02-08 15:20:38 +01:00
Arkadiy Paronyan 09d0f1552a Merge pull request #62 from paritytech/gav-split-executor
Split up substrate-executor into polkadot-executor.
2018-02-08 14:18:19 +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
Arkadiy Paronyan 9d083be47a Merge pull request #15 from paritytech/td-better-bytes
More compact bytes serialization and code re-use.
2017-11-11 13:22:42 +01:00
Arkadiy Paronyan 348e629289 Merge pull request #13 from paritytech/td-serialization
Serialization
2017-11-11 10:43:31 +01:00