mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 21:34:46 +00:00
Merge branch 'unstable' into off-4844
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
TESTS_TAG := v1.3.0-rc.1
|
||||
TESTS_TAG := v1.3.0-rc.3
|
||||
TESTS = general minimal mainnet
|
||||
TARBALLS = $(patsubst %,%-$(TESTS_TAG).tar.gz,$(TESTS))
|
||||
|
||||
|
||||
@@ -53,9 +53,11 @@ excluded_paths = [
|
||||
"bls12-381-tests/hash_to_G2"
|
||||
]
|
||||
|
||||
|
||||
def normalize_path(path):
|
||||
return path.split("consensus-spec-tests/")[1]
|
||||
|
||||
|
||||
# Determine the list of filenames which were accessed during tests.
|
||||
passed = set()
|
||||
for line in open(accessed_files_filename, 'r').readlines():
|
||||
@@ -88,4 +90,5 @@ for root, dirs, files in os.walk(tests_dir_filename):
|
||||
# Exit with an error if there were any files missed.
|
||||
assert len(missed) == 0, "{} missed files".format(len(missed))
|
||||
|
||||
print("Accessed {} files ({} intentionally excluded)".format(accessed_files, excluded_files))
|
||||
print("Accessed {} files ({} intentionally excluded)".format(
|
||||
accessed_files, excluded_files))
|
||||
|
||||
@@ -653,6 +653,11 @@ impl<E: EthSpec + TypeName> Handler for MerkleProofValidityHandler<E> {
|
||||
|
||||
fn is_enabled_for_fork(&self, fork_name: ForkName) -> bool {
|
||||
fork_name != ForkName::Base
|
||||
// Test is skipped due to some changes in the Capella light client
|
||||
// spec.
|
||||
//
|
||||
// https://github.com/sigp/lighthouse/issues/4022
|
||||
&& fork_name != ForkName::Capella
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,4 @@ deposit_contract = { path = "../../common/deposit_contract" }
|
||||
reqwest = { version = "0.11.0", features = ["json"] }
|
||||
hex = "0.4.2"
|
||||
fork_choice = { path = "../../consensus/fork_choice" }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
logging = { path = "../../common/logging" }
|
||||
|
||||
@@ -7,7 +7,7 @@ use std::{env, fs::File};
|
||||
use tempfile::TempDir;
|
||||
use unused_port::unused_tcp_port;
|
||||
|
||||
const GETH_BRANCH: &str = "master";
|
||||
// const GETH_BRANCH: &str = "master";
|
||||
const GETH_REPO_URL: &str = "https://github.com/ethereum/go-ethereum";
|
||||
|
||||
pub fn build_result(repo_dir: &Path) -> Output {
|
||||
@@ -27,7 +27,9 @@ pub fn build(execution_clients_dir: &Path) {
|
||||
}
|
||||
|
||||
// Get the latest tag on the branch
|
||||
let last_release = build_utils::get_latest_release(&repo_dir, GETH_BRANCH).unwrap();
|
||||
// TODO: Update when version is corrected
|
||||
// let last_release = build_utils::get_latest_release(&repo_dir, GETH_BRANCH).unwrap();
|
||||
let last_release = "v1.11.1";
|
||||
build_utils::checkout(&repo_dir, dbg!(&last_release)).unwrap();
|
||||
|
||||
// Build geth
|
||||
|
||||
@@ -100,7 +100,7 @@ async fn import_and_unlock(http_url: SensitiveUrl, priv_keys: &[&str], password:
|
||||
|
||||
impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
pub fn new(generic_engine: E) -> Self {
|
||||
let log = environment::null_logger().unwrap();
|
||||
let log = logging::test_logger();
|
||||
let runtime = Arc::new(
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
@@ -270,6 +270,8 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
};
|
||||
let proposer_index = 0;
|
||||
|
||||
// To save sending proposer preparation data, just set the fee recipient
|
||||
// to the fee recipient configured for EE A.
|
||||
let prepared = self
|
||||
.ee_a
|
||||
.execution_layer
|
||||
@@ -278,7 +280,7 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
head_root,
|
||||
proposer_index,
|
||||
// TODO: think about how to test different forks
|
||||
PayloadAttributes::new(timestamp, prev_randao, Address::zero(), None),
|
||||
PayloadAttributes::new(timestamp, prev_randao, Address::repeat_byte(42), None),
|
||||
)
|
||||
.await;
|
||||
|
||||
@@ -334,6 +336,7 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
.unwrap()
|
||||
.to_payload()
|
||||
.execution_payload();
|
||||
assert_eq!(valid_payload.transactions().len(), pending_txs.len());
|
||||
|
||||
/*
|
||||
* Execution Engine A:
|
||||
@@ -398,7 +401,6 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(status, PayloadStatus::Valid);
|
||||
assert_eq!(valid_payload.transactions().len(), pending_txs.len());
|
||||
|
||||
// Verify that all submitted txs were successful
|
||||
for pending_tx in pending_txs {
|
||||
@@ -489,8 +491,10 @@ impl<E: GenericExecutionEngine> TestRig<E> {
|
||||
let head_block_hash = valid_payload.block_hash();
|
||||
let finalized_block_hash = ExecutionBlockHash::zero();
|
||||
// TODO: think about how to handle different forks
|
||||
// To save sending proposer preparation data, just set the fee recipient
|
||||
// to the fee recipient configured for EE A.
|
||||
let payload_attributes =
|
||||
PayloadAttributes::new(timestamp, prev_randao, Address::zero(), None);
|
||||
PayloadAttributes::new(timestamp, prev_randao, Address::repeat_byte(42), None);
|
||||
let slot = Slot::new(42);
|
||||
let head_block_root = Hash256::repeat_byte(100);
|
||||
let validator_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user