Nick Sanders
e590874a81
Update log
-> 0.4, env_logger
-> 0.5. ( #9294 )
...
* Rename a few types & methods.
* Change `(Log)Builder::format` (closure) arg.
2018-08-10 00:04:10 +01:00
Maciej Hirsz
b28e742683
Update tobalaba.json ( #9313 )
2018-08-09 23:14:45 +02:00
David
e2095d4a5d
Move ethereum-specific H256FastMap type to own crate ( #9307 )
...
* Add a `fastmap` crate that provides the H256FastMap specialized HashMap
* Use `fastmap` instead of `plain_hasher`
* Update submodules for Reasons™
* Submodule update
2018-08-09 09:51:48 +02:00
Marek Kotewicz
78a38e9825
ethcore sync decodes rlp less often ( #9264 )
...
* deserialize block only once during verification
* ethcore-sync uses Unverified
* ethcore-sync uses Unverified
* fixed build error
* removed Block::is_good
* applied review suggestions
* ethcore-sync deserializes headers and blocks only once
2018-08-08 10:56:54 +02:00
André Silva
712101b63d
ethcore: add transition flag for transaction permission contract ( #9275 )
...
* ethcore: add transition flag for transaction permission contract
* ethcore: fix transaction permission contract tests
2018-08-07 15:18:19 +01:00
Wei Tang
1f18dbb17c
Remove all dapp permissions related settings ( #9120 )
...
* Completely remove all dapps struct from rpc
* Remove unused pub use
* Remove dapp policy/permission func in ethcore
* Remove all dapps settings from rpc
* Fix rpc tests
* Use both origin and user_agent
* Address grumbles
* Address grumbles
* Fix tests
2018-08-07 20:52:23 +08:00
Wei Tang
0d8001adea
Improve return data truncate logic ( #9254 )
...
* Improve return data truncate logic
* fix: size -> offset + size
2018-08-07 11:48:25 +02:00
Wei Tang
1e44a62494
Update wasm-tests hash ( #9295 )
2018-08-07 12:36:56 +03:00
Wei Tang
e8b13cb77e
Implement KIP4: create2 for wasm ( #9277 )
...
* Basic implementation for kip4
* Add KIP-4 config flags
* typo: docs fix
* Fix args offset
* Add tests for create2
* tests: evm
* Update wasm-tests and fix all gas costs
* Update wasm-tests
* Update wasm-tests and fix gas costs
2018-08-06 23:15:52 +08:00
Jongsic Choi
3f2fd610d9
Fix loop start value ( #9285 )
2018-08-06 12:04:28 +01:00
Tomasz Drwięga
90d7823acb
Propagate transactions for next 4 blocks. ( #9265 )
...
Closes #9255
This PR also removes the limit of max 64 transactions per packet, currently we only attempt to prevent the packet size to go over 8MB. This will only be the case for super-large transactions or high-block-gas-limit chains.
Patching this is important only for chains that have blocks that can fit more than 4k transactions (over 86M block gas limit)
For mainnet, we should actually see a tiny bit faster propagation since instead of computing 4k pending set, we only need `4 * 8M / 21k = 1523` transactions.
Running some tests on `dekompile` node right now, to check how it performs in the wild.
2018-08-02 11:58:02 +01:00
Marek Kotewicz
b4ae1b6528
decode block rlp less often ( #9252 )
...
in total:
- removed 4 redundant rlp deserializations
- avoid 1 redundant block data copy
2018-08-02 10:20:46 +01:00
cheme
f442665c46
Fix eternalities tests can_create (missing parameter) ( #9270 )
2018-08-02 17:15:22 +08:00
Nicolas Gotchac
c22498066b
Update ref to parity-common
and update seek
behaviour ( #9257 )
...
* Update ref to `parity-common` and update `seek` behaviour
* Remove reference to `ng-fix-triedb-seek` branch
2018-08-01 18:03:41 +02:00
Wei Tang
637883f52b
Comply EIP-86 with the new definition ( #9140 )
...
* Comply EIP-86 with the new CREATE2 opcode
* Fix rpc compile
* Fix interpreter CREATE/CREATE2 stack pop difference
* Add unreachable! to fix compile
* Fix instruction_info
* Fix gas check due to new stack item
* Add new tests in executive
* Fix have_create2 comment
* Remove all unused references of eip86_transition and block_number
2018-08-01 13:17:04 +02:00
Marek Kotewicz
10f42a2b39
removed client error ( #9253 )
2018-07-31 10:55:18 +01:00
Wei Tang
29baccd857
Implement EIP-1052 (EXTCODEHASH) and fix several issues in state account cache ( #9234 )
...
* Implement EIP-1052 and fix several issues related to account cache
* Fix jsontests
* Merge two matches together
* Avoid making unnecessary Arc<Vec>
* Address grumbles
2018-07-31 13:27:57 +08:00
John-John Tedro
f9814381a7
Improve Tracer documentation ( #9237 )
2018-07-30 13:59:01 +02:00
Marek Kotewicz
c54beba932
block cleanup ( #9117 )
...
* blockchain insert expects owned block instead of block reference
* reduce a number of times a block is deserialized
* removed cached uncle_bytes from block
* removed is_finalized from OpenBlock
* removed unused parity_machine::WithMetadata trait
* removed commented out code
* remove unused metadata from block
* remove unused metadata from block
* BlockDetails extras may have at most 5 elements
2018-07-30 10:45:10 +01:00
Wei Tang
77a5ce6bf3
Fix potential as_usize overflow when casting from U256 in miner ( #9221 )
2018-07-27 11:07:46 +01:00
Andrew Jones
fb503f523b
Allow old blocks from peers with lower difficulty ( #9226 )
...
Previously we only allow downloading of old blocks if the peer
difficulty was greater than our syncing difficulty. This change allows
downloading of blocks from peers where the difficulty is greater then
the last downloaded old block.
2018-07-27 10:13:05 +01:00
Wei Tang
5795d332c8
Insert PROOF messages for some cases in blockchain ( #9141 )
...
* Insert PROOF messages for some cases in blockchain
* Break expect to its own line to avoid things being too long
* Be more specific for all low-level database error cases
* Fix BranchBecomingCanonChain expect
* ethcore: fix typo in expect proof message
2018-07-25 17:45:06 +01:00
EOS Classic
823054dc34
[Chain] Add more bootnodes ( #9174 )
...
+ For ETC, ELLA, EXP, Morden, MUSIC
2018-07-25 18:06:45 +02:00
Marek Kotewicz
143411aaf0
deserialize block only once during verification ( #9161 )
2018-07-25 14:36:46 +02:00
Peter Pratscher
1b1941a896
Added --tx-queue-no-early-reject flag to disable early tx queue rejects ( #9143 )
...
* Added --tx-queue-no-early-reject flag to disable early tx queue rejects because of low gas price
* Fixed failing tests, clarified comments and simplified no_early_reject field name.
* Added test case for the --tx-queue-no-early-reject flag
2018-07-24 16:04:48 +03:00
Wei Tang
4848c384cd
Avoid schedule copying in nested call/create ( #9190 )
...
* Avoid schedule copying in nested call/create
* Fix tests
* fix test: wrong Schedule used
* Fix private-tx test
* Fix jsontests compilation
2018-07-23 15:48:01 +02:00
André Silva
d4f38d3894
ethcore: add builtin benchmarks based on geth ( #9179 )
...
* ethcore: add geth benchmarks for all builtins
* ethcore: remove old builtin benchmarks
2018-07-23 15:46:24 +02:00
Afri Schoedon
8dd4db5d85
docs: update repository links ( #9159 )
...
* docs: update repository links
* docs: update repository links in contribution guide
2018-07-23 13:58:50 +02:00
André Silva
fb2b77e991
ethcore: add missing builtins benchmarks ( #9170 )
...
* ethcore: add modexp benchmarks
* ethcore: add_bn_128_add benchmark
2018-07-20 15:06:11 +02:00
Wei Tang
b914912c06
Fix bugfix hard fork logic ( #9138 )
...
* Fix bugfix hard fork logic
* Remove dustProtectionTransition from bugfix category
EIP-168 is not enabled by default
* Remove unnecessary 'static
2018-07-19 16:43:41 +02:00
Wei Tang
0ce04845de
Be more graceful on Aura difficulty validation ( #9164 )
...
* Be more graceful on Aura difficulty validation
* test: rejects_step_backwards
* test: proposer_switching
* test: rejects_future_block
* test: reports_skipped
* test: verify_empty_seal_steps
2018-07-19 22:41:31 +08:00
Marek Kotewicz
073365d5d9
handle SyncHandler errors properly ( #9151 )
...
* handle SyncHandler errors properly, closes #9150
* applied review suggestions
2018-07-19 12:46:33 +02:00
Niklas Adolfsson
a24e78fa92
Receipt constructor Allocate less stack for blooms
( #9146 )
...
* Allocate less stack in `Receipt ctor`
* ethcore: use accrue_bloom when computing transaction receipt
2018-07-17 16:55:46 +01:00
Niklas Adolfsson
21e0cd7781
evm bench
fix broken dependencies (#9134 )
...
* `evm bench` use valid dependencies
Benchmarks of the `evm` used stale versions of a couple a crates that
this commit fixes!
* fix warnings
2018-07-16 21:19:59 +02:00
Marek Kotewicz
0ca4250bd4
fix verification in ethcore-sync collect_blocks ( #9135 )
2018-07-16 21:05:47 +02:00
Wei Tang
5059619947
Unify engine error to reject blocks ( #9085 )
...
* Reject if Engine::on_close_block returns error
* Unify open block behaviors
* Fix tests in ethcore
* Fix Aura tests
* Fix RPC test
* Print a warning if open block failed
* Print the actual error when closing the block
* Update comments for prepare_pending_block
* Add BlockPreparationStatus to distingish three different state after prepare_pending_block
2018-07-16 13:53:55 +02:00
Niklas Adolfsson
edb228839e
Fix todo
in ethcore/types::Receipt
constructor ( #9086 )
...
Remove needless mutable variable and assignment
2018-07-16 12:43:14 +01:00
Marek Kotewicz
f826ac35e3
Removed redundant struct bounds and unnecessary data copying ( #9096 )
...
* Removed redundant struct bounds and unnecessary data copying
* Updated docs, removed redundant bindings
2018-07-15 11:01:47 +02:00
Anthony
9dc512349a
Insert ETC (classic) hardcoded headers until block #6170625 ( #9121 )
2018-07-14 16:04:31 +01:00
Tomasz Drwięga
3ecf16a492
Make sure to produce full blocks. ( #9115 )
2018-07-13 15:20:24 +01:00
Thibaut S
584a76ab70
Update light client hardcoded headers ( #9098 )
...
* Insert Kovan hardcoded headers until #7690241
* Insert Kovan hardcoded headers until block 7690241
* Insert Ropsten hardcoded headers until #3612673
* Insert Mainnet hardcoded headers until block 5941249
2018-07-13 14:42:06 +02:00
Tomasz Drwięga
82a6a0848a
Fix work-notify. ( #9104 )
2018-07-13 11:36:58 +01:00
Tomasz Drwięga
5f523f6966
Offload cull to IoWorker. ( #9099 )
2018-07-13 12:23:57 +02:00
Afri Schoedon
484ecfaf47
Parity Ethereum 2.0.0 ( #9052 )
...
* parity-version: major bump to 2.0.0 🎉
* parity-ethereum: rename crate 🌵
* ethcore: only accept service transactions from parity-ethereum nodes
* parity: fix --identity tests
* rpc: fix sync provider in tests
* rpc: fix parity_net_peers test
* ethcore-sync: accept service transactions from parity and parity-ethereum
* ethcore-sync: fix indentation
* ethcore-sync: split the ifs to reduce code redundancy
* ethcore-sync: fix syntax
* Fix building ethcore
* update cargo.lock
* parity-version: major bump to 2.0.0 tada
* fix merge
2018-07-11 13:35:10 +02:00
Nicolas Gotchac
c082af6f74
Don't fetch snapshot chunks at random ( #9088 )
2018-07-11 13:04:31 +02:00
Afri Schoedon
da5de4a6ff
db: remove wal disabling / fast-and-loose option. ( #8963 )
...
* parity: highlight --fast-and-loose is not recommended.
* parity: remove fast-and-loose option, ref #1765
* db: remove db wal from options, it's always enabled
* db: remove wal from rocksdb helpers
* cli: fix wallet import test
* ethcore: fix client config tests
* parity: proper deprecated handling for fast-and-loose
* ethcore-client: fix config
* parity: mark fast-and-loose removed
* parity: fix test_find_deprecated
* parity: fix type for fast-and-loose flag
* lock file
2018-07-10 17:33:25 +02:00
shamardy
526c61e2c0
Transactions hashes missing in trace_replayBlockTransactions method result #8725 ( #8883 )
...
* Squashed commit of the following:
commit 1f85076fd584365f1acbbafef5c8bdee722b479b
Author: shamardy <shamardy@yahoo.com>
Date: Sat Jun 30 03:40:12 2018 +0200
update
commit 63363cca7354873a8abe3b631b8b7dbd9da6ce1e
Author: shamardy <shamardy@yahoo.com>
Date: Sat Jun 30 03:36:25 2018 +0200
Update
commit e05caddc170a4cf0e476c23d443f07184dcb4fb1
Author: shamardy <shamardy@yahoo.com>
Date: Fri Jun 29 10:04:34 2018 +0200
Test
commit b0be065eadd0f2dd70f6613c50cbf3eb16d693ec
Author: shamardy <shamardy@yahoo.com>
Date: Fri Jun 29 09:19:57 2018 +0200
test_client edit
commit 949205ccdbac75f730639e5f0d8e1bdd9436de1d
Author: shamardy <shamardy@yahoo.com>
Date: Fri Jun 29 05:14:53 2018 +0200
Edit Test
commit 7cd44ee379a1e847f3e7d225444e72775bdbd4b5
Author: shamardy <shamardy@yahoo.com>
Date: Fri Jun 29 04:25:22 2018 +0200
Updates
commit e90de71e698d29475e8ba5696664b7d7bb335f9c
Author: shamardy <shamardy@yahoo.com>
Date: Wed Jun 27 13:53:15 2018 +0200
Test
commit 12a76381561b66ecf6ea636d7eebe43d2dcb7731
Author: shamardy <shamardy@yahoo.com>
Date: Wed Jun 27 11:43:39 2018 +0200
Edited Tests
commit 6c21e6de2da24e7b9f33ac8b82abb0b39488bd60
Merge: 87c4c74b8 9550cf766
Author: shamardy <shamardy@yahoo.com>
Date: Wed Jun 27 10:31:21 2018 +0200
Merge branch 'Issue#8725' of https://github.com/shamardy/parity into Issue#8725
commit 87c4c74b8f769c8e4b55ba78b5aa1d6716413f6d
Author: shamardy <shamardy@yahoo.com>
Date: Wed Jun 27 10:31:13 2018 +0200
Avoided Changing non-RPC Types
commit 9550cf76610953c8492cc9473e4b9f876e770b70
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:29:03 2018 +0200
Update traces.rs
commit 3e0b0ef29685b62f0917b80a48054b3379d59a50
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:27:44 2018 +0200
Update trace.rs
commit 5078d67a2da7268db2a1064540a3c887e1f1a3cd
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:26:08 2018 +0200
Update traces.rs
commit 28f5ba1b035c6919ac11089cf1bdd703c75f0dbd
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:24:04 2018 +0200
Update parity.rs
commit 3b86b98ab5860efa61a7cc6a2b20e6c5c0f859cb
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:23:33 2018 +0200
Update eth.rs
commit bcad5a40f14a3c5d2d901ae1a9bed87949ab9c66
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:21:43 2018 +0200
Update call_analytics.rs
commit e9029e0b8158387b606132b264652d285483870f
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:20:56 2018 +0200
Update transaction.rs
commit 0dacc81779bc62713e3f8e405229dfd7f89f33e8
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:20:01 2018 +0200
Update executive.rs
commit 3921d4ec77f49460d45603111b98cc07d3c235a0
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:18:39 2018 +0200
Update executed.rs
commit 8416df654ebf6f68ad04c8a4a89a29ce704f9ca1
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Wed Jun 27 10:17:34 2018 +0200
Update client.rs
commit cf0b4dddbc93395bc5ce1f17c3c07a294bf8dd49
Merge: 23bfa78c2 36e05e5f3
Author: shamardy <shamardy@yahoo.com>
Date: Sun Jun 24 04:54:04 2018 +0200
Merge branch 'Issue#8725' of https://github.com/shamardy/parity into Issue#8725
commit 23bfa78c2662d697018e7061ab9ad0b864fde0ef
Author: shamardy <shamardy@yahoo.com>
Date: Sun Jun 24 04:53:50 2018 +0200
Undo
commit 36e05e5f30c35bd6b57af50fd337f2006df51b86
Merge: 2f6e1ef64 0afc74825
Author: shamardy <shamardy@yahoo.com>
Date: Sun Jun 24 04:44:33 2018 +0200
Merge branch 'Issue#8725' of https://github.com/shamardy/parity into Issue#8725
commit 2f6e1ef64763a79ad2ed8baa2aed5a8f3136bafc
Author: shamardy <shamardy@yahoo.com>
Date: Sun Jun 24 04:44:22 2018 +0200
Another rpc test output with ("transactionHash":null)
commit 0afc74825828f724d68f3e444655b872a6c51ce0
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 07:18:45 2018 +0200
Another rpc test output with ("transactionHash":null)
commit 138fbac9f02841adfeaaf061c5dd9e647f725e12
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 06:30:41 2018 +0200
Edited some rpc tests output with ("transactionHash":null)
commit 8c129a63109c00f88ce36bad10699dc2f3237d95
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:48:39 2018 +0200
Update traces.rs
commit 52c17f6191740637c1d1589a420996dccefe16bb
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:47:29 2018 +0200
Update parity.rs
commit d39303aa8c2097ba9e2ed94c7ad2166bf1608d3f
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:46:25 2018 +0200
Update eth.rs
commit 49be84bf529c33dc47c8260435fd0d26e137c66d
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:40:56 2018 +0200
Update trace.rs
commit 4fc801377fb01ff11867f66b547a307c162d7a56
Merge: d34ba2351 544210439
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 05:12:21 2018 +0200
Merge branch 'Issue#8725' of https://github.com/shamardy/parity into Issue#8725
commit 54421043959e14a76f309fe87d3c7513a95999f8
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:04:51 2018 +0200
Update trace.rs
commit 2b2524a31119d741df4076e9d1b3ce8f0b17b479
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:01:47 2018 +0200
Update state_diff.rs
commit 2bf9982b8ce29ef69f116142eaeacf3049f7db49
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:00:50 2018 +0200
Update transaction.rs
commit da696ea192c0f89cceb38834f6efee280129048c
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 05:00:13 2018 +0200
Update mod.rs
commit cfc194ca0f44bfabec01a52897a322ea5a91930b
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 04:59:18 2018 +0200
Update pod_state.rs
commit 3b3156853535a666778e0ad0e902de79fb138f1d
Author: shamardy <39480341+shamardy@users.noreply.github.com>
Date: Thu Jun 14 04:57:37 2018 +0200
Update client.rs
commit d34ba235132c654da6c2ed6ff0dcf96fda0c45ee
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 04:53:50 2018 +0200
RPC Only
commit 8b5c4f19727549ee6f180a6effc228b2693509e9
Merge: 744491632 291b4a01b
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 02:55:14 2018 +0200
Merge branch 'Issue#8725' of https://github.com/shamardy/parity into Issue#8725
commit 74449163222e0ab75c704ac0ad424870e3c321d9
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 02:27:13 2018 +0200
Issue#8725
Transactions hashes missing in trace_replayBlockTransactions method result #8725
commit 291b4a01be6771acff8f5829c5406fa193665dbe
Author: shamardy <shamardy@yahoo.com>
Date: Thu Jun 14 01:18:18 2018 +0200
Edited to make changes to RPC types only
To make a transactions hash trace with "trace_replayBlockTransactions" add "transactionHash" to parameters
commit 9d082bece73beb8ebddfda51fa5ec279f30b7bea
Author: shamardy <shamardy@yahoo.com>
Date: Wed Jun 13 09:15:56 2018 +0200
Issue#8725
Transactions hashes missing in trace_replayBlockTransactions method result #8725
* update
* Removed unwrap_or
* Update
* test_client update
2018-07-10 15:38:13 +01:00
David
c7f608ec74
Delete crates from parity-ethereum and fetch them from parity-common instead ( #9083 )
...
Use crates from parity-common: hashdb, keccak-hash, kvdb, kvdb-memorydb, kvdb-rocksdb, memorydb, parity-bytes, parity-crypto, path, patricia_trie, plain_hasher, rlp, target, test-support, trie-standardmap, triehash
2018-07-10 14:59:19 +02:00
Niklas Adolfsson
6816f8b489
Updater verification ( #8787 )
...
* getting started
* refactor main
* unwrap_or -> unwrap_or_else
* force parity to lower version number to trigger update
* Fix typos
* formating
* some minor refactoring
* enable lints and fix some warnings
* make it compile
* minor tweaks to make it work
* address review comments
* Rename exe to exe_path and minor import changes
* updater: unreleased -> unknown
* Add `debug` configuration to force parity-updater
* Introduce a new feature `test-updater` in order conditionally hardcode
the version number in parity in order to force an update
* This should only be used for debug/dev purposes
* nits
* Pulled latest submodule of `wasm-tests`
2018-07-10 12:17:53 +02:00
Niklas Adolfsson
91122d9193
SeedHashCompute remove needless new
impl ( #9063 )
2018-07-09 16:47:58 +02:00