Skip to content

Commit

Permalink
refactor: move crate trin-execution to bin/trin-execution
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Jan 14, 2025
1 parent 55acea1 commit d54cac8
Show file tree
Hide file tree
Showing 56 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
!/bin
!/crates
!/testing
!/trin-execution

# include for vergen constants
!/.git
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
members = [
"bin/portal-bridge",
"bin/trin",
"bin/trin-execution",
"crates/ethportal-api",
"crates/e2store",
"crates/evm",
Expand All @@ -18,7 +19,6 @@ members = [
"testing/ef-tests",
"testing/ethportal-peertest",
"testing/utp",
"trin-execution",
]

default-members = ["bin/trin"]
Expand Down Expand Up @@ -107,7 +107,7 @@ rpc = { path = "crates/rpc"}
trin = { path = "bin/trin"}
trin-beacon = { path = "crates/subnetworks/beacon" }
trin-evm = { path = "crates/evm" }
trin-execution = { path = "trin-execution" }
trin-execution = { path = "bin/trin-execution" }
trin-history = { path = "crates/subnetworks/history" }
trin-metrics = { path = "crates/metrics" }
trin-state = { path = "crates/subnetworks/state" }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ mod tests {
#[tokio::test]
async fn process_beacon_block() {
let signed_beacon_block_for_execution_block_15537397 =
std::fs::read("../test_assets/beacon/bellatrix/ValidSignedBeaconBlock/signed_beacon_block_15537397.ssz").unwrap();
std::fs::read("../../test_assets/beacon/bellatrix/ValidSignedBeaconBlock/signed_beacon_block_15537397.ssz").unwrap();
let signed_beacon_block = SignedBeaconBlock::from_ssz_bytes(
&signed_beacon_block_for_execution_block_15537397,
ForkName::Bellatrix,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod tests {
let mut trin_execution = TrinExecution::new(temp_directory.path(), StateConfig::default())
.await
.unwrap();
let raw_era1 = fs::read("../test_assets/era1/mainnet-00000-5ec1ffb8.era1").unwrap();
let raw_era1 = fs::read("../../test_assets/era1/mainnet-00000-5ec1ffb8.era1").unwrap();
let processed_era = process_era1_file(raw_era1, 0).unwrap();
for block in processed_era.blocks {
trin_execution.process_next_block().await.unwrap();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/Dockerfile.bridge
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WORKDIR /app

# copy build artifacts from build stage
COPY --from=builder /app/target/release/trin /usr/bin/
COPY --from=builder /app/trin-execution/resources /resources
COPY --from=builder /app/bin/trin-execution/resources /resources
COPY --from=builder /app/target/release/portal-bridge /usr/bin/

RUN apt-get update && apt-get install libcurl4 -y
Expand Down

0 comments on commit d54cac8

Please sign in to comment.