openethereum/ethcore
Andreas Fackler 2b1d148ceb Add randomness contract support to AuthorityRound. (#10946)
* Add randomness contract support to Authority Round.

Changes have been cherry-picked from poanetwork's aura-pos branch.
Most of the work has been done by @mbr.

* Address review comments for randomness contract.

Co-Authored-By: David <dvdplm@gmail.com>

* Rename revealSecret to revealNumber

* Update Randomness contract bytecode

* Use H256, rename secret to random number.

* Use get_commit_and_cipher

* Clean up Miner::prepare_block.

* Remove is_reveal_phase call.

* Add more comments, require randomness contract map.

* Simplify run_randomness_phase

* Address review comments.

* Remove Client::transact_contract.
2019-12-17 11:34:14 +01:00
..
account-db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
account-state Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
benches Fix ethcore/benches build. (#10964) 2019-08-13 15:27:28 +02:00
block-reward Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
blockchain fixed verify_uncles error type (#11276) 2019-11-22 10:26:50 +01:00
builtin Fix misc compile warnings (#11258) 2019-11-14 00:01:21 +01:00
call-contract Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
client-traits Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
engine Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
engines Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
evm removed redundant VMType enum with one variant (#11266) 2019-11-20 11:11:36 +08:00
executive-state Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
light Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
machine remove null signatures (#11335) 2019-12-13 18:12:22 +01:00
node-filter Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
pod Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
private-tx Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
res Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
service Use upstream rocksdb (#11248) 2019-12-03 16:59:11 +01:00
snapshot Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
spec Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
src Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
state-db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
sync Treat only blocks in queue as synced (#11264) 2019-12-03 15:59:15 +01:00
trace Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
trie-vm-factories Upgrade trie-db to 0.16.0. (#11274) 2019-11-21 11:08:49 +01:00
types Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00
verification fixed verify_uncles error type (#11276) 2019-11-22 10:26:50 +01:00
vm Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
wasm Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
Cargo.toml Add randomness contract support to AuthorityRound. (#10946) 2019-12-17 11:34:14 +01:00