Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha4 merge to main #136

Merged
merged 176 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
dcda92f
moved minimum_gas_price from EthEngine to Engine and wired it in hbbf…
SurfingNerd Nov 14, 2023
0c43542
early epoch end manager struct
SurfingNerd Nov 19, 2023
9b9d3b9
EarlyEpochEndManager Impl
SurfingNerd Nov 19, 2023
1b8732c
early epoch end manager skeleton
SurfingNerd Nov 21, 2023
ab40f4d
refactored hbbft_message_memorium, so it allows read access from not…
SurfingNerd Nov 21, 2023
151caf8
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Nov 21, 2023
0d3ea6d
decision implementation
SurfingNerd Nov 21, 2023
fc798ee
if we are syncing, we wont do any blaming.
SurfingNerd Nov 21, 2023
b2d1f36
renamed EarlyEpochEndManager to HbbftEarlyEpochEndManager
SurfingNerd Nov 22, 2023
da36579
dispatchers allows to access the memorium data now.
SurfingNerd Nov 23, 2023
a8bc7ad
comments for hbbft_early_epoch_end_manager
SurfingNerd Nov 23, 2023
0c11c4c
first integration of hbbft_early_epoch_end_manager into the hbbft_eng…
SurfingNerd Nov 23, 2023
ac0946c
cache for flagged validators and respecting of that cache in the deci…
SurfingNerd Nov 23, 2023
4d07709
fixed: do not query current validators - use cached values.
SurfingNerd Nov 23, 2023
082f2a5
refactored ealry epoch end into new function handle_early_epoch_end .
SurfingNerd Nov 24, 2023
4df2632
made locks linear where possible instead of nested.
SurfingNerd Nov 24, 2023
3a336ab
comment for linking github issue
SurfingNerd Nov 24, 2023
ae86943
initializing early epoch end manager with the validator set collecti…
SurfingNerd Nov 24, 2023
63f8a95
early epoch end manager: removed notify_new_epoch
SurfingNerd Nov 24, 2023
ebef9de
early epoch end: also notify about missing validator if there is no m…
SurfingNerd Nov 25, 2023
437c289
hint for not banned self
SurfingNerd Nov 26, 2023
b5bd4c3
skipping self for checking in hbbft early epoch end manager
SurfingNerd Nov 27, 2023
f71345f
reverted back default ports for hbbft configuration since we currentl…
SurfingNerd Nov 28, 2023
54ff378
hbbft_config_generator: fixed wrong peer id
SurfingNerd Nov 28, 2023
9f7f68a
NodeId now has a as_8_byte_string() method for convinient printing th…
SurfingNerd Nov 28, 2023
9b90c4b
prometheus metrics implementation for exporting node flag status.
SurfingNerd Nov 28, 2023
6388d48
integrated prometheus metrics for early epoch end
SurfingNerd Nov 28, 2023
98a2a49
moved HoneyBadgerBFT prometheus_metrics to PrometheusMetrics trait im…
SurfingNerd Nov 28, 2023
ca895d3
showing tracked staking epoch in prometheus interface for early epoch…
SurfingNerd Nov 28, 2023
56a6ede
removed log entry for good and faulty message log in memorium,
SurfingNerd Nov 29, 2023
c7b55fd
disconnect_all_validators comment
SurfingNerd Nov 29, 2023
c8dd02c
improved logging for send_keygen_transactions
SurfingNerd Nov 29, 2023
35df681
move prometheus_metrics from own trait to the Engine Impl, so it get'…
SurfingNerd Nov 29, 2023
9de2603
early epoch manager: filtering of own node moved from decide to the c…
SurfingNerd Dec 1, 2023
a94cc8c
report new epoch is now a info instead of a warning
SurfingNerd Dec 10, 2023
4210977
info logging for early-epoch-end: HbbftEarlyEpochEndManager created.
SurfingNerd Dec 10, 2023
c94fa88
debug logging for early epoch end manager
SurfingNerd Dec 10, 2023
1fcd0d2
fixed mut warn.
SurfingNerd Dec 10, 2023
101e24e
fixed: early-epoch-end: no decision: Devp2p warmup time
SurfingNerd Dec 11, 2023
e17346b
error tagging: early-epoch-end: could not retrieve latest block
SurfingNerd Dec 11, 2023
377878e
fixed: early-epoch-end: no decision: not enough blocks
SurfingNerd Dec 11, 2023
18dab95
"could not retrieve part for" is Ok, do not report ReturnValueInvalid
SurfingNerd Dec 11, 2023
6512eb7
abi for hbbft_connectivity_tracker crates/ethcore/res/contracts/hbbft…
SurfingNerd Dec 11, 2023
6ea6864
fixed hbbft_connectivity_tracker.json
SurfingNerd Dec 11, 2023
d4c638d
implemented get_current_flagged_validators_from_contract
SurfingNerd Dec 11, 2023
4bbc1a9
connectivity_tracker_hbbft module inclusion
SurfingNerd Dec 11, 2023
39ccb31
hbbft_early_epoch_end_manager
SurfingNerd Dec 12, 2023
9164840
report missin connectivity contract call implementation
SurfingNerd Dec 12, 2023
dcfbb54
implementation: notify_about_missing_validator
SurfingNerd Dec 12, 2023
4ac62b0
refactured contract calls for connectivity_tracker_hbbft: function re…
SurfingNerd Dec 12, 2023
cda7504
early-epoch-end: report_reconnect
SurfingNerd Dec 12, 2023
0077682
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Dec 12, 2023
c245354
panic hook now reports to diamond-node
SurfingNerd Dec 13, 2023
bfe58d0
fixed bug with accessing the connectivity tracker
SurfingNerd Dec 13, 2023
eab3156
streamlined logging in connectivity_tracker_hbbft to early-epoch-end
SurfingNerd Dec 13, 2023
62b191c
reduced default log levels for hbbft testnetworks.
SurfingNerd Dec 13, 2023
c92e98c
default logging to diamond-node.log instead of parity.log
SurfingNerd Dec 14, 2023
4d05847
improved logging
SurfingNerd Dec 14, 2023
2e33f33
reduced logging levels in hbbft_peers_management
SurfingNerd Dec 14, 2023
dda50e1
improved logging for hbbft_peers_management for identifying the probl…
SurfingNerd Dec 14, 2023
ecfe2ef
improved logging about own_tx cancelled transactions.
SurfingNerd Dec 14, 2023
b8c6584
improved logging about own_tx cancelled transactions.
SurfingNerd Dec 14, 2023
5699d5a
reduced logging for HBBFT block creation transactions.
SurfingNerd Dec 14, 2023
dd1f837
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Dec 14, 2023
7b3e4e3
early-epoich-end improved logging
SurfingNerd Dec 14, 2023
246bf27
gas_price for connectivity tracker
SurfingNerd Dec 16, 2023
6d8360a
possible solution:: detected attempt to break because of is_major_syn…
SurfingNerd Dec 18, 2023
2b62c2c
don't cache flagged validators
SurfingNerd Dec 18, 2023
b6cfbac
added more gas for testing
SurfingNerd Dec 18, 2023
cf7b103
config generator: show trace information for own transactions
SurfingNerd Dec 28, 2023
be99f6f
using "is_connectivity_loss_reported", instead of watching "flagged v…
SurfingNerd Jan 12, 2024
c07ead7
contract abi change: hbbft_connectivity_tracker: isReported
SurfingNerd Jan 12, 2024
a3eca05
connectivity tracker: get_block_data() now retrieves the previous blo…
SurfingNerd Jan 12, 2024
95ed607
hbbft config generator: hints for more detailed logs
SurfingNerd Jan 13, 2024
042570f
Merge branch 'i92_early_epoch_stop' into i98-hardfork
SurfingNerd Jan 31, 2024
b3d2136
fork manager: further drafts for creating the fork.
SurfingNerd Feb 2, 2024
afa8bae
module hbbft fork manager
SurfingNerd Feb 3, 2024
761ef3b
fork params
SurfingNerd Feb 4, 2024
af0176f
concept for initiating fork with multiple nodes
SurfingNerd Feb 5, 2024
8c84383
serde_with for upcomming PART and ACKS support in the spec.json
SurfingNerd Feb 7, 2024
2698fb7
first working version with ACKS and PARTS from the spec file
SurfingNerd Feb 7, 2024
1b82825
spec: support for multiple parts&acks
SurfingNerd Feb 8, 2024
a7fb83e
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Feb 8, 2024
4185a62
code cleanup for fork config tests
SurfingNerd Feb 9, 2024
8edba46
including block number end, to define the block of the epoch change w…
SurfingNerd Feb 9, 2024
6a23790
HbbftNetworkFork: Clone
SurfingNerd Feb 9, 2024
272763a
fork manager: initialization
SurfingNerd Feb 9, 2024
8c3ab21
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Feb 9, 2024
922aedf
fork integraton in honeybadger comment
SurfingNerd Feb 10, 2024
27ca2ff
moved fork manager from engine to state
SurfingNerd Feb 11, 2024
9e4fb9a
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Feb 11, 2024
b507e67
fork manager interface change: should_fork returns now directly the …
SurfingNerd Feb 12, 2024
a1953a9
fork manager: first should_fork implementation.
SurfingNerd Feb 12, 2024
9d42cfe
simplified contribution
SurfingNerd Feb 12, 2024
16c27a4
removed unused import in hbbft_peers_management.
SurfingNerd Feb 12, 2024
6b85b36
missing comments in new_test_round_rewrite_bytecode_transitions spec.rs
SurfingNerd Feb 12, 2024
54adbed
ethjson spec: hardfork declaration for public keys
SurfingNerd Feb 12, 2024
4d978bf
key generation for fork, according to logic in update_honeybadger
SurfingNerd Feb 13, 2024
46e66c8
improved logging if part read from blockchain is invalid
SurfingNerd Feb 14, 2024
50245cd
code cleanup
SurfingNerd Feb 14, 2024
9013644
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Feb 14, 2024
21328f6
removed fork_manager from hbbft_engine. hbbft state is mmanaging the …
SurfingNerd Feb 17, 2024
82f5cf3
recovered missing changes from i98-hardfork branch due local git repo…
SurfingNerd Feb 18, 2024
c3d8e7f
missing testfile: hbbft_test_fork.json
SurfingNerd Feb 19, 2024
fde9d98
fixed missing imports in tests
SurfingNerd Feb 19, 2024
2322a64
fixed bug in HbbftFork::from_definition
SurfingNerd Feb 19, 2024
c714521
unit test for HbbftNetworkFork serialisation/deserialisation
SurfingNerd Feb 19, 2024
a09f185
hbbft_config_generator: reusing the generated key_sync_history_data
SurfingNerd Feb 19, 2024
5071dcd
hbbft_network_fork_manager: fixed creating HbbftFork from definition
SurfingNerd Feb 19, 2024
0f71131
improved unit test for hbbft_network_fork_manager
SurfingNerd Feb 19, 2024
87b54a8
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Feb 20, 2024
a7b52d3
witing out a fork example definition
SurfingNerd Feb 25, 2024
8b30c83
support definition of Ports as CLI Argument
SurfingNerd Feb 26, 2024
fad68e1
added port management for enodes and reserved peers file generation.
SurfingNerd Feb 26, 2024
b57aa56
fixed test test_threshold_encryption_multiple
SurfingNerd Mar 11, 2024
3e04f9c
fixed a bug concerning used port and port used in reserved peers, sim…
SurfingNerd Mar 11, 2024
737f229
fork: reporting if block number could not get read
SurfingNerd Mar 14, 2024
9b5286a
log "hbbft_message_memorium report new epoch" is now Info Level
SurfingNerd Mar 14, 2024
d9b9053
log level decreased for hbbft_message_memorium -> report new epoch:
SurfingNerd Mar 14, 2024
4e791af
fork: debug output during config
SurfingNerd Mar 17, 2024
3824d77
fixed compile error
SurfingNerd Mar 17, 2024
961a677
fixed fork manager fork starts in the future
SurfingNerd Mar 17, 2024
cebd95d
early epoch manager: improved logging for the early epoch manager (Co…
SurfingNerd Mar 18, 2024
e28d22e
commented out implementation for get_current_flagged_validators_from_…
SurfingNerd Mar 18, 2024
e0b350c
decreased log level for: "Block creation: Batch received for"
SurfingNerd Mar 18, 2024
4c621f7
- debug output of forked validators.
SurfingNerd Mar 21, 2024
9e563e6
fixed bug where num_nodes_validators was not respected anymore.
SurfingNerd Mar 28, 2024
13b9405
.gitignore: add fork_example.json
SurfingNerd Apr 12, 2024
61363cc
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Apr 22, 2024
1eecd42
fixed hbbft_deserialization_forks test. ACKS were not provided as Arr…
SurfingNerd Apr 22, 2024
bb35407
Merge pull request #104 from SurfingNerd/i98-hardfork-2
SurfingNerd Apr 22, 2024
83b66d7
validator logging for fork +
SurfingNerd Apr 28, 2024
660b155
added debug log for initialize_synckeygen.
SurfingNerd May 1, 2024
786ba14
encode ACKS ad PARTs as hex for Key Gen JSON
SurfingNerd May 18, 2024
330f2fb
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd May 21, 2024
c69c572
Merge pull request #113 from SurfingNerd/i112-key-gen-as-hex
SurfingNerd May 21, 2024
844321e
pump arrayvec = "0.7"
SurfingNerd Jun 18, 2024
767ee92
cleanup of unused imports
SurfingNerd Jun 18, 2024
6bdaf9c
spec generation: removed gas floor target, decreased min gas price to…
SurfingNerd Jun 25, 2024
16fddd3
hbbft config generation: reduced default logging level for engine fr…
SurfingNerd Jun 25, 2024
6f636f4
remove currfently unused API from generated network configs
SurfingNerd Jun 26, 2024
f602384
fixed warnings
SurfingNerd Jul 1, 2024
ca61bf7
Merge pull request #117 from DMDcoin/i115-smart-contract-macros
SurfingNerd Jul 2, 2024
68acf28
improved logging for key generation
SurfingNerd Oct 1, 2024
47e5b6c
removed assert that leads to hardcrash for synckeygen
SurfingNerd Oct 1, 2024
752d762
Merge pull request #124 from SurfingNerd/i123-sync-keygen-error
SurfingNerd Oct 2, 2024
439fc0a
fixed create_miner tool to use the correct chain name
SurfingNerd Oct 16, 2024
8a3766d
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Oct 18, 2024
9e13081
setting gas_floor_target in the hbbft_config_generator.
SurfingNerd Oct 18, 2024
5733fda
Merge pull request #128 from DMDcoin/dmd_create_miner_tool_fixes
SurfingNerd Oct 19, 2024
65cb273
improved logging for early epoch end reconnects
SurfingNerd Oct 21, 2024
14877c9
increased devp2p warmup time for not sending early epoch end reports …
SurfingNerd Oct 22, 2024
3149a3b
Merge pull request #129 from SurfingNerd/i87-early-epoch-end-improvem…
SurfingNerd Oct 22, 2024
03abfce
logging transactions for block that gets created.
SurfingNerd Oct 28, 2024
82e025b
Merge pull request #131 from SurfingNerd/i130-alpha4-logging-improvem…
SurfingNerd Oct 28, 2024
210c265
logging: do_validator_engine_actions: skipping because we are syncing.
SurfingNerd Oct 30, 2024
293f6aa
logging public keys of pending validators
SurfingNerd Oct 30, 2024
6cdddab
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Oct 30, 2024
67cd176
PublicKey: check if public key is valid for the use of BLS 381 12
SurfingNerd Oct 30, 2024
b93d9e6
i132 on detecting invalid public keys, write parts to progress into …
SurfingNerd Oct 30, 2024
3e6e9c6
compressing part as bincode , logging Nonce for Part Transaction that…
SurfingNerd Oct 30, 2024
65d32e8
refactored part transactions to a function.
SurfingNerd Oct 30, 2024
e74af66
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Oct 30, 2024
cd6f459
Merge pull request #133 from SurfingNerd/i132-invalid-public-keys
SurfingNerd Oct 31, 2024
86ecdbb
unused field
SurfingNerd Nov 1, 2024
f349d78
cleanup
SurfingNerd Nov 1, 2024
83d3c5a
cleanup
SurfingNerd Nov 1, 2024
32f328d
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Nov 1, 2024
6360666
removed RequestMiddleware use
SurfingNerd Nov 5, 2024
8dfc0e9
cargo fix
SurfingNerd Nov 5, 2024
cff8e2f
cargo fix --lib -p parity-rpc
SurfingNerd Nov 5, 2024
0fd1baf
cargo fix
SurfingNerd Nov 6, 2024
5ef8a34
formatted imports
SurfingNerd Nov 7, 2024
ee62bf5
fixed test imports
SurfingNerd Nov 16, 2024
474a28f
cargo fmt --all -- --config imports_granularity=Crate
SurfingNerd Nov 17, 2024
c33ad76
Merge pull request #135 from SurfingNerd/cleanup
SurfingNerd Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
318 changes: 283 additions & 35 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/oe/logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ lazy_static = "1.0"
regex = "1.0"
time = "0.1"
parking_lot = "0.11.1"
arrayvec = "0.4"
arrayvec = "0.7"
ansi_term = "0.10"
6 changes: 3 additions & 3 deletions bin/oe/logger/src/rotating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct RotatingLogger {
/// Defined logger levels
levels: String,
/// Logs array. Latest log is always at index 0
logs: RwLock<ArrayVec<[String; LOG_SIZE]>>,
logs: RwLock<ArrayVec<String, LOG_SIZE>>,
}

impl RotatingLogger {
Expand All @@ -59,7 +59,7 @@ impl RotatingLogger {
pub fn new(levels: String) -> Self {
RotatingLogger {
levels: levels,
logs: RwLock::new(ArrayVec::<[_; LOG_SIZE]>::new()),
logs: RwLock::new(ArrayVec::<_, LOG_SIZE>::new()),
}
}

Expand All @@ -78,7 +78,7 @@ impl RotatingLogger {
}

/// Return logs
pub fn logs(&self) -> RwLockReadGuard<ArrayVec<[String; LOG_SIZE]>> {
pub fn logs(&self) -> RwLockReadGuard<ArrayVec<String, LOG_SIZE>> {
self.logs.read()
}
}
Expand Down
2 changes: 1 addition & 1 deletion bin/oe/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use parity_rpc::{
};
use parity_runtime::Executor;

pub use parity_rpc::{HttpServer, IpcServer, RequestMiddleware};
pub use parity_rpc::{HttpServer, IpcServer};
//pub use parity_rpc::ws::Server as WsServer;
pub use parity_rpc::ws::{ws, Server as WsServer};

Expand Down
2 changes: 1 addition & 1 deletion crates/accounts/ethstore/src/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod version;
pub use self::{
cipher::{Aes128Ctr, Cipher},
crypto::Crypto,
kdf::{Kdf, Pbkdf2, Prf, Scrypt},
kdf::{Kdf, Pbkdf2, Prf},
safe_account::SafeAccount,
version::Version,
};
4 changes: 2 additions & 2 deletions crates/accounts/ethstore/src/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ mod version;
pub use self::{
bytes::Bytes,
cipher::{Aes128Ctr, Cipher, CipherSer, CipherSerParams},
crypto::{CipherText, Crypto},
crypto::Crypto,
error::Error,
hash::{H128, H160, H256},
id::Uuid,
kdf::{Kdf, KdfSer, KdfSerParams, Pbkdf2, Prf, Scrypt},
key_file::{KeyFile, OpaqueKeyFile},
presale::{Encseed, PresaleWallet},
presale::PresaleWallet,
vault_file::VaultFile,
vault_key_file::{
insert_vault_name_to_json_meta, remove_vault_name_from_json_meta, VaultKeyFile,
Expand Down
4 changes: 1 addition & 3 deletions crates/concensus/ethash/src/keccak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,5 @@ pub mod keccak_512 {
pub mod keccak_256 {
use super::hash;

pub use self::hash::{
keccak256 as inplace, keccak256_range as inplace_range, keccak_256 as write,
};
pub use self::hash::{keccak256 as inplace, keccak_256 as write};
}
1 change: 1 addition & 0 deletions crates/concensus/miner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ serde_derive = "1.0"
serde_json = "1.0"
trace-time = "0.1"
txpool = { path = "../../transaction-pool" }
rustc-hex = "1.0"

[dev-dependencies]
env_logger = "0.5"
Expand Down
3 changes: 1 addition & 2 deletions crates/concensus/miner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extern crate parking_lot;
#[cfg(feature = "price-info")]
extern crate price_info;
extern crate rlp;
extern crate rustc_hex;
extern crate txpool;

#[macro_use]
Expand All @@ -52,8 +53,6 @@ extern crate trace_time;
extern crate env_logger;
#[cfg(test)]
extern crate ethkey;
#[cfg(test)]
extern crate rustc_hex;

pub mod external;
#[cfg(feature = "price-info")]
Expand Down
2 changes: 1 addition & 1 deletion crates/concensus/miner/src/pool/local_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl txpool::Listener<Transaction> for LocalTransactionsList {
return;
}

warn!(target: "own_tx", "Transaction canceled (hash {:?})", tx.hash());
warn!(target: "own_tx", "Transaction canceled (hash {:?}), zero gas price: {}, nonce: {} data: {} ", tx.hash(), tx.has_zero_gas_price(), tx.nonce(), rustc_hex::ToHex::to_hex(tx.transaction.tx().data.as_slice()));
self.insert(*tx.hash(), Status::Canceled(tx.clone()));
self.clear_old();
}
Expand Down
3 changes: 1 addition & 2 deletions crates/ethcore/benches/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ impl<'a> BuiltinBenchmark<'a> {

let builtin = builtins
.get(&H160::from_str(builtin_address).unwrap())
.unwrap()
.clone();
.unwrap();
let input = FromHex::from_hex(input).unwrap();
let expected = FromHex::from_hex(expected).unwrap();

Expand Down
213 changes: 213 additions & 0 deletions crates/ethcore/res/contracts/hbbft_connectivity_tracker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
}
],
"name": "checkReportReconnectCallable",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "currentEpoch",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "earlyEpochEndThreshold",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "earlyEpochEndToleranceLevel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "validator",
"type": "address"
}
],
"name": "getCurrentConnectionStatus",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFlaggedValidators",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minReportAgeBlocks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
}
],
"name": "reportMissingConnectivity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
}
],
"name": "reportReconnect",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "validatorConnectivityScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "address",
"name": "reporter",
"type": "address"
}
],
"name": "isReported",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
22 changes: 22 additions & 0 deletions crates/ethcore/res/local_tests/hbbft/hbbft_test_fork.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"blockNumberStart": 10,
"blockNumberEnd": 100,
"validators": [
"091d8eba3fedbd073d07d5da39fc42f61a2f4e7100018329f5b845aa86f64d6636de27aaa4c9872942811750a3db8cb8be03584fb50aaa557f8f13d4187db686",
"bf4ee1d6d3e72fe8ab1c8ccdeef3aff73665ca0dd2ef5497cd8152e329a9ebd283eba076c369977390f4697026209a9fdfa78c2d98e76c4bafb3f8fb669ee4b0"
],
"parts": [
"00000000000000000100000000000000b8192b72d83b24d9d13229521f74e6664135cd9dd3d5c4fee6b46244c7fb637e099a7cf83ff84f7da56f119391a5be45020000000000000099000000000000000410da71b86de8a64eda03139cb4aa2c86d7dc30b3a8125658d25454e31b6aaadc21d8a16290cd9a9367f7c81933e517f314481fe43f0385829e843a4ff5f614c0329f8725ba757f0f05543255b5ccf70e204af8ad430a8dc7be7ba923be1e3efbcd0c2852ad29e2516972dedbe8d1cfba4f2d3af8a08caeee33cd60d294b95ecd70d60e5a2b0929106eea34d457b95487f8864ea926e9b04b990000000000000004dbb6269a2ffe83a197d9687060e1a509affa81b88b8b0b5ec37b6323abd6a4220d8d445273b5f0b937b01fb900369add18030953e62239353599d6005081526d12567acda069033fb2c82109e8b8294d9f68e49fa461a81886d7162d37d8090c5e4ce633acd0ced42200a09eb9dacfb8c9dc0dcb5d5fa9b5d645318ed856fec6bdd146367d1258d5975681084122833c910f9c2c5f6ca8bf",
"00000000000000000100000000000000b38755bce7abb9935778b1803b7a4351f68c367e20a38d7208a5c24e3af245b13ded32434b982f15dfd0de99fb5188eb0200000000000000990000000000000004634fd14e7ce463dde2973d53ea2f9638239c22a7f22ee776f900f72ea093dd64c1b9747df1348a1c9293aafc5a99abbf511be721fc898d549dc9ffe94b3f4b6348eedc44322c1c1a6e62ecccc0b266fc44901bd777bddd512c351e56e6b6e3516c12cf3713edff7df201914d071f9a80cbcaea0fc1d228dc2485653d44d8829c9036040a184ac838e80074b2b6ee56f34690b6f26b85aa7a99000000000000000451456684fa30515c8d0ef1244ac419791fb0ff5d52bf2229cbef4fcf4928961d386f9c20c75fb530b1fce6e7e9ad5f0b0cd09944e8598d20e55f0208703e37ba191261e0d302824202eda3e0150731715b88e165f17203f1406023f9cd3d898e10fef65d99fc3f5e3891ce1001fda7bcbea95ac74d030f0a369c0b8cce8bdaac1d7b682649f644677953d1dc3f076bd3befa2c4aaa9d5ea3"
],
"acks": [
[
"0000000000000000020000000000000091000000000000000490a193eab4de97351348833b933705dfb903c7f5875559722a25de970a7bf58a434a9c4d251fa8412ada1e11d8b38e1530a765ef4d3f5d89264967ad75d9e0559318ea05314b8317d686ac51c4bd66ce09de4f4dc6cc64efde35efc1394d5371e968592551401240d901ee9bcde99de77bbdcfa6a65d64dc9f814ca0b4f17a0b5e35562e01c21c850903c55a2ab442699100000000000000042d9c2e94e9a5d2283fdf0dae7f0671fd9a81787ecb2908d1fccee00c57c43022e4f42f2bbf3059ce2c0bebc12d7b4fcae2c87ff1072e111bb7b67839266e23a778272003f3ec618082b750c3b7fdb5800ce76312154fd8ba33a6aaf3aa6c6aaa5880f9516c6f5094d09a69f3c7918f0e2ec92542d91a0e2ba9f65722e3a374ab01c73bff571f114b7bdd0e9298eba220",
"010000000000000002000000000000009100000000000000047eee4f119edac1a8f78f0b44426ffbb26b03ea36234678b287711d4e3a47a0215fc917d83c64ff1adfa3c4e985dcaddf550953768ab3725680f8cb4046e0b4338f351cbe49e69c4fcfd3df3285f7b1deed4e1fe41a0ca2d6962de6348db84a690e018a170b3df8a1283a16514ff58be083668fc4226a4921c35a15ac59f8c2e6e3e00adb9da20df161013beacef2330c9100000000000000049d03818e04ff4631844a94e73976653117fa97d88d029159af7cfadf71ed285202f17332cef132f3bb0ca6f5ddfdb3b9cafcc6a9e5b4b86e493d9946b3a6ab5b8e981fe70792b2ec3f63ed9b682eb5b8667398191a16fa308bf1b600541418d6673ba3902d4b58f60875e117984b970dc0d646f721285cacb759e07938ee5a8dbb2bfc70c1b5d6168446571531cccf64"
],
[
"00000000000000000200000000000000910000000000000004a87bbba9d5bed1aaa03a2f761213b7bcc8e9b7ae4fb9704562504a07d17f058dfc8725686682e31a12795822f748bd7925085106f2632aecd1e8f2aba231c02c619d8f9263a2683e0cc87be5bad052873cad313550e4c3509ee5cd410cf1aa3350e6ac24c3741781ffa3c5f4a64676cb533f73470e56c7679caef649785494c12c999f6bfb9053c31627ca112cffac1c9100000000000000046a88660f1c401aabfc2e565105eb6ccdaa7f403f897e63512beee5b2a8f5b5a3a63f002ee74ace2778da41935a5fc44a1f5dc5e5a58484f662edd3dbb9f5a6088a7b53b0626b5c42fd2a1ec9f78374288bab74bd0e8398d7203aa294d1c78733365b646b0d38b72447f36e3908e9f2ab31a682b4f62c37ca3240b7e607f264b63917eff09c6fbaaef0331b17260b2074",
"010000000000000002000000000000009100000000000000040a911f3a00d13a252002b042e65052016a1426e05464246145247c72b3825459d92903a1dbf8381a475f38d89b79d6c3b8ea4213a379e5c0dfd78540b633ad3aac019c199c6f22c7c484e2c405bff32d55bc650ae88088b8d930f9a0b066f4576a0c781c80feeb6fc8c220b11964807aa611dcf4dafb5386cbaab7a14f210d78438472b1f427e5e85b49bfbf97e03f7a91000000000000000406c4f04455ad55cecdecd1969ec7ad7684602056eb17b7cd656adc82e741c873eab437d54d8c9e191bc51246e25d0b5c77b2440e866d6c38b6d82a408bd02b64c1bf0584231a4201b9916ed2be1282ab1640866c347ec017a5c92a924e5012334b59d82359544177b762568ea96bb3f7ce2dd6ff60cdfa6fa52c7a78cc6a3f2ec230bddfa6974934a0f6899797493f85"
]
]
}
Loading
Loading