Commit Graph

39 Commits

Author SHA1 Message Date
debris eecd823d32 util reexports less std 2017-07-29 21:10:14 +02:00
Vurich 3d8dc11442 Upgrade `elastic-array` to 0.9.0
This is a huge change, which includes some changes to replace code that
originally cloned to reuse allocations instead. The updated
`elastic-array` crate renames its consuming `Vec`-conversion method to
`into_vec`, which means that I can do a simple
`sed -i 's/to_vec/into_vec/'` and then fix the compilation errors.

This commit is probably a minor performance win and definitely a
significant readability win.
2017-06-29 13:05:33 +02:00
Tomasz Drwięga 3ff72794e5 Create an account for chain=dev (#5612)
* implement From<&'static str> for Secret

* Dev account.

* Fix Secret semantics.
2017-05-19 17:06:36 +02:00
keorn d3b2bcdd79 Tendermint fixes (#5415)
* more resilience

* refactor commit

* fix proposal broadcast

* list encoding

* address grumbles

* to into
2017-04-10 20:03:18 +02:00
Marek Kotewicz 044d070667 rlp deserialization refactor, 30% faster (#4901)
* fixed naming of rlp modules

* RlpStream cleanup

* appending short rlp lists (0...55 bytes) is 25% faster

* RlpStream does not use bytes module, nor trait Stream

* removed unused code from rlp module

* compiling ethcore-util with new rlp serialization

* compiling parity with new rlp serialization

* fixed compiling ethcore-light with new rlp serialization

* fixed compiling ethsync with new rlp serialization

* moved rlp benches and rlp tests

* rlp deserialization refactor, 30% faster

* removed redundant comment, print

* fixed compiling parity with new rlp deserialization

* removed redundant double-space

* fixed failing test

* updated rlp docs, removed unused traits

* fixed rlp benchmarks

* replace usage of WriteBytesExt with ByteOrder

* removed unused, commented out code

* fixed merge conflict
2017-03-22 14:41:46 +01:00
Marek Kotewicz a555686bcd rlp serialization refactor (#4873)
* fixed naming of rlp modules

* RlpStream cleanup

* appending short rlp lists (0...55 bytes) is 25% faster

* RlpStream does not use bytes module, nor trait Stream

* removed unused code from rlp module

* compiling ethcore-util with new rlp serialization

* compiling parity with new rlp serialization

* fixed compiling ethcore-light with new rlp serialization

* fixed compiling ethsync with new rlp serialization

* removed redundant comment, print

* removed redundant double-space

* replace usage of WriteBytesExt with ByteOrder
2017-03-20 19:14:29 +01:00
maciejhirsz 687ae4d7fa Removed fixed TODO 2017-02-01 10:38:01 +01:00
maciejhirsz 681fa10d4b Tests checking item sizes for changed types 2017-01-30 20:01:32 +01:00
maciejhirsz 5fe54901e7 Fix `Step` encoding 2017-01-30 18:13:14 +01:00
Gav Wood 8404edb656 Fix whitespace (#4299)
* Fix whitespace.

* Update copyright years/owner.

* Push release only for tags.
2017-01-25 18:51:41 +01:00
keorn e9251a9325 Generic engine utilities (#4258)
* move modules up

* make structs generic

* reound to view and tests

* fix
2017-01-24 22:03:03 +01:00
keorn b7f9b304c1 Chain scoring (#4218)
* chain scoring

* use current steps
2017-01-23 17:27:11 +03:00
keorn 844b1f8c0d Refactor VoteCollector (#4101)
* dir

* simple validator list

* stub validator contract

* make the engine hold Weak<Client> instead of IoChannel

* validator set factory

* register weak client with ValidatorContract

* check chain security

* add address array to generator

* register provider contract

* update validator set on notify

* add validator contract spec

* simple list test

* split update and contract test

* contract change

* use client in tendermint

* fix deadlock

* step duration in params

* adapt tendermint tests

* add storage fields to test spec

* constructor spec

* execute under wrong address

* create under correct address

* revert

* validator contract constructor

* move genesis block lookup

* add removal ability to contract

* validator contract adding validators

* fix basic authority

* validator changing test

* more docs

* update sync tests

* remove env_logger

* another env_logger

* cameltoe

* hold EngineClient instead of Client

* return error on misbehaviour

* nicer return

* sprinkle docs
2017-01-11 17:56:50 +01:00
Tomasz Drwięga 21006da125 Get rid of unsafe code in ethkey, propagate incorrect Secret errors. (#4119)
* Implementing secret

* Fixing tests
2017-01-11 12:16:47 +01:00
Robert Habermeier 8125b5690c Port `try` macro to new `?` operator. (#3962)
* initial untry sweep

* restore try in ipc codegen, fix inference

* change a few missed try instances
2016-12-27 12:53:56 +01:00
keorn c96826beaa expect instead of index 2016-12-13 18:22:56 +01:00
keorn d4c9493b00 verification cache retrieval 2016-12-11 17:50:12 +01:00
keorn 42c34b5c1b ignore flaky test 2016-12-09 10:53:38 +01:00
keorn 0eb55cbd4d update message test 2016-12-02 13:31:28 +00:00
keorn df1cce8e7f simplify seal verification 2016-12-01 21:56:38 +00:00
keorn 39ea703c69 vote on message generation 2016-12-01 20:50:24 +00:00
keorn 9290fdde85 fix tests 2016-12-01 17:21:51 +00:00
keorn 344999aaf7 return signing failure error 2016-12-01 14:10:42 +00:00
keorn e4ff614966 remove unused tracing 2016-11-28 15:50:55 +00:00
keorn ef4ecce7bf nicer vote counting + test 2016-11-28 14:08:38 +00:00
keorn f59746b2da order messages by signature 2016-11-25 16:44:18 +00:00
keorn 04acdd6ca0 reuse rlp generation 2016-11-24 19:57:58 +00:00
keorn 38f25fc195 message tests and fixes 2016-11-24 13:57:04 +00:00
keorn 84fdaf966a correct seal verification 2016-11-21 16:02:26 +00:00
keorn e69be670de message serialization 2016-11-21 11:36:07 +00:00
keorn 49cbd6ef98 unused imports, proposer_nonce 2016-11-18 13:38:04 +00:00
keorn c62795d09b ap registration 2016-11-17 23:36:24 +00:00
keorn 3bac68419a last_lock 2016-11-17 17:12:37 +00:00
keorn 802d5c669d transition rules 2016-11-16 18:01:09 +00:00
keorn 8ac989cbeb Merge remote-tracking branch 'parity/master' into bft 2016-11-16 10:29:54 +00:00
keorn 55a5402bf5 simplify messages 2016-11-15 10:20:14 +00:00
keorn 4e36550890 message revamp 2016-11-08 18:01:31 +00:00
keorn d59e9e816e fix tests compilation 2016-09-29 16:57:52 +01:00
keorn 6cbb859bd2 add tendermint message types and deserialization 2016-09-29 14:44:42 +01:00