This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rpc-txpool-error
* master: [evmbin] fix compilation (#10976) Update to latest trie version. (#10972) [blooms-db] Fix benchmarks (#10974) Fix ethcore/benches build. (#10964) tx-pool: accept local tx with higher gas price when pool full (#10901) Disable unsyncable expanse chain (#10926) Extract Machine from ethcore (#10949) removed redundant state_root function from spec, improve spec error types (#10955) Add support for Energy Web Foundation's new chains (#10957) [evmbin] add more tests to main.rs (#10956) Fix compiler warnings in util/io and upgrade to edition 2018 Upgrade mio to latest (#10953) unify loading spec && further spec cleanups (#10948) refactor: Refactor evmbin CLI (#10742) journaldb changes (#10929) Allow default block parameter to be blockHash (#10932) Enable sealing when engine is ready (#10938) Fix some warnings and typos. (#10941) Updated [email protected] key (#10939) Change the return type of step_inner function. (#10940)
- Loading branch information
Showing
182 changed files
with
3,908 additions
and
2,517 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ authors = ["Parity Technologies <[email protected]>"] | |
account-db = { path = "account-db" } | ||
ansi_term = "0.11" | ||
blooms-db = { path = "../util/blooms-db", optional = true } | ||
client-traits = { path = "./client-traits" } | ||
common-types = { path = "types" } | ||
crossbeam-utils = "0.6" | ||
env_logger = { version = "0.5", optional = true } | ||
|
@@ -31,8 +32,8 @@ ethkey = { path = "../accounts/ethkey" } | |
evm = { path = "evm" } | ||
trie-vm-factories = { path = "trie-vm-factories" } | ||
futures = "0.1" | ||
hash-db = "0.12.4" | ||
parity-util-mem = "0.1" | ||
hash-db = "0.15.0" | ||
parity-util-mem = "0.2.0" | ||
itertools = "0.5" | ||
journaldb = { path = "../util/journaldb" } | ||
keccak-hash = "0.2.0" | ||
|
@@ -44,14 +45,15 @@ lazy_static = "1.2.0" | |
len-caching-lock = { path = "../util/len-caching-lock" } | ||
log = "0.4" | ||
lru-cache = "0.1" | ||
machine = { path = "./machine" } | ||
macros = { path = "../util/macros" } | ||
memory-cache = { path = "../util/memory-cache" } | ||
num_cpus = "1.2" | ||
parity-bytes = "0.1" | ||
parity-snappy = "0.1" | ||
parking_lot = "0.8" | ||
pod = { path = "pod" } | ||
trie-db = "0.12.4" | ||
trie-db = "0.15.0" | ||
patricia-trie-ethereum = { path = "../util/patricia-trie-ethereum" } | ||
rand = "0.6" | ||
rayon = "1.1" | ||
|
@@ -84,7 +86,8 @@ parity-runtime = { path = "../util/runtime" } | |
rlp_compress = { path = "../util/rlp-compress" } | ||
serde_json = "1.0" | ||
tempdir = "0.3" | ||
trie-standardmap = "0.12.4" | ||
trie-standardmap = "0.15.0" | ||
machine = { path = "./machine", features = ["test-helpers"] } | ||
|
||
[features] | ||
parity = ["work-notify", "price-info", "stratum"] | ||
|
@@ -108,7 +111,7 @@ evm-debug-tests = ["evm-debug", "evm/evm-debug-tests"] | |
# EVM debug traces are printed. | ||
slow-blocks = [] | ||
# Run JSON consensus tests. | ||
json-tests = ["env_logger", "test-helpers"] | ||
json-tests = ["env_logger", "test-helpers", "machine/test-helpers"] | ||
# Skip JSON consensus tests with pending issues. | ||
ci-skip-tests = [] | ||
# Run memory/cpu heavy tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
description = "Trait definitions relative the ethereum client" | ||
name = "client-traits" | ||
version = "0.1.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2018" | ||
license = "GPL-3.0" | ||
|
||
[dependencies] | ||
ethereum-types = "0.6.0" | ||
common-types = { path = "../types" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2015-2019 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity Ethereum. | ||
|
||
// Parity Ethereum is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity Ethereum is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
use ethereum_types::{Address, H256}; | ||
use common_types::{ | ||
header::Header, | ||
encoded, | ||
ids::BlockId, | ||
}; | ||
|
||
/// Provides various information on a block by it's ID | ||
pub trait BlockInfo { | ||
/// Get raw block header data by block id. | ||
fn block_header(&self, id: BlockId) -> Option<encoded::Header>; | ||
|
||
/// Get the best block header. | ||
fn best_block_header(&self) -> Header; | ||
|
||
/// Get raw block data by block header hash. | ||
fn block(&self, id: BlockId) -> Option<encoded::Block>; | ||
|
||
/// Get address code hash at given block's state. | ||
fn code_hash(&self, address: &Address, id: BlockId) -> Option<H256>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ authors = ["Parity Technologies <[email protected]>"] | |
bit-set = "0.4" | ||
parity-bytes = "0.1" | ||
ethereum-types = "0.6.0" | ||
parity-util-mem = "0.1" | ||
parity-util-mem = "0.2.0" | ||
lazy_static = "1.0" | ||
log = "0.4" | ||
vm = { path = "../vm" } | ||
|
Oops, something went wrong.