openethereum/ethcore/res
André Silva d35f4c1f0d [beta] More backports for 2.1.2 (#9733)
* produce portable binaries (#9725)

* HF in POA Core (2018-10-22) (#9724)

https://github.com/poanetwork/poa-chain-spec/pull/87

* Use static call and apparent value transfer for block reward contract code (#9603)

* Verify block syncing responses against requests (#9670)

* sync: Validate received BlockHeaders packets against stored request.

* sync: Validate received BlockBodies and BlockReceipts.

* sync: Fix broken tests.

* sync: Unit tests for BlockDownloader::import_headers.

* sync: Unit tests for import_{bodies,receipts}.

* tests: Add missing method doc.

* Fix ancient blocks sync (#9531)

* Log block set in block_sync for easier debugging

* logging macros

* Match no args in sync logging macros

* Add QueueFull error

* Only allow importing headers if the first matches requested

* WIP

* Test for chain head gaps and log

* Calc distance even with 2 heads

* Revert previous commits, preparing simple fix

This reverts commit 5f38aa885b22ebb0e3a1d60120cea69f9f322628.

* Reject headers with no gaps when ChainHead

* Reset block sync download when queue full

* Simplify check for subchain heads

* Add comment to explain subchain heads filter

* Fix is_subchain_heads check and comment

* Prevent premature round completion after restart

This is a problem on mainnet where multiple stale peer requests will
force many rounds to complete quickly, forcing the retraction.

* Reset stale old blocks request after queue full

* Revert "Reject headers with no gaps when ChainHead"

This reverts commit 0eb865539e5dee37ab34f168f5fb643300de5ace.

* Add BlockSet to BlockDownloader logging

Currently it is difficult to debug this because there are two instances,
one for OldBlocks and one for NewBlocks. This adds the BlockSet to all
log messages for easy log filtering.

* Reset OldBlocks download from last enqueued

Previously when the ancient block queue was full it would restart the
download from the last imported block, so the ones still in the queue would be
redownloaded. Keeping the existing downloader instance and just
resetting it will start again from the last enqueued block.:wq

* Ignore expired Body and Receipt requests

* Log when ancient block download being restarted

* Only request old blocks from peers with >= difficulty

https://github.com/paritytech/parity-ethereum/pull/9226 might be too
permissive and causing the behaviour of the retraction soon after the
fork block. With this change the peer difficulty has to be greater than
or euqal to our syncing difficulty, so should still fix
https://github.com/paritytech/parity-ethereum/issues/9225

* Some logging and clear stalled blocks head

* Revert "Some logging and clear stalled blocks head"

This reverts commit 757641d9b817ae8b63fec684759b0815af9c4d0e.

* Reset stalled header if useless more than once

* Store useless headers in HashSet

* Add sync target to logging macro

* Don't disable useless peer and fix log macro

* Clear useless headers on reset and comments

* Use custom error for collecting blocks

Previously we resued BlockImportError, however only the Invalid case and
this made little sense with the QueueFull error.

* Remove blank line

* Test for reset sync after consecutive useless headers

* Don't reset after consecutive headers when chain head

* Delete commented out imports

* Return DownloadAction from collect_blocks instead of error

* Don't reset after round complete, was causing test hangs

* Add comment explaining reset after useless

* Replace HashSet with counter for useless headers

* Refactor sync reset on bad block/queue full

* Add missing target for log message

* Fix compiler errors and test after merge

* ethcore: revert ethereum tests submodule update

* Add hardcoded headers (#9730)

* add foundation hardcoded header #6486017

* add ropsten hardcoded headers #4202497

* add kovan hardcoded headers #9023489

* gitlab ci: releasable_branches: change variables condition to schedule (#9729)
2018-10-10 18:55:55 +02:00
..
contracts Tx permission contract improvement (#8400) 2018-06-12 09:31:14 +02:00
ethereum [beta] More backports for 2.1.2 (#9733) 2018-10-10 18:55:55 +02:00
tx_permission_tests ethcore: add transition flag for transaction permission contract (#9275) 2018-08-07 15:18:19 +01:00
wasm-tests@d17bfb6962 Fetch parity-common crates from crates.io (#9410) 2018-09-04 20:13:51 +02:00
authority_round_block_reward_contract.json Refactor EIP150, EIP160 and EIP161 forks to be specified in CommonParams (#8614) 2018-05-22 12:24:09 +08:00
authority_round_empty_steps.json Aura: Broadcast empty step messages instead of creating empty blocks (#7605) 2018-02-15 01:39:29 +01:00
authority_round.json Enable byzantium features on non-ethash chains (#7753) 2018-02-01 13:42:56 +01:00
basic_authority.json Enable byzantium features on non-ethash chains (#7753) 2018-02-01 13:42:56 +01:00
constructor.json Enable byzantium features on non-ethash chains (#7753) 2018-02-01 13:42:56 +01:00
instant_seal.json Support millisecond timestamp for instant seal engine (#9469) 2018-09-06 11:38:00 +02:00
null_morden_with_reward.json Generalize engine trait (#6591) 2017-09-26 14:19:08 +02:00
null_morden.json Generalize engine trait (#6591) 2017-09-26 14:19:08 +02:00
null.json Add EIP-1014 transition config flag (#9268) 2018-08-31 23:43:51 +08:00
tendermint.json Enable byzantium features on non-ethash chains (#7753) 2018-02-01 13:42:56 +01:00
validator_contract.json Move more params to the common section. (#6134) 2017-07-31 12:34:29 +02:00
validator_multi.json Move more params to the common section. (#6134) 2017-07-31 12:34:29 +02:00
validator_safe_contract.json Chainspec validation (#6197) 2017-08-02 12:50:36 +02:00