Skip to content

Commit b07f251

Browse files
authored
refactor: rename history_new and header_with_proof_new by removing _new (#1724)
1 parent 57351ca commit b07f251

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

bin/portal-bridge/src/api/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use ethportal_api::{
1010
BlockBody, BlockBodyLegacy, BlockBodyMerge, BlockBodyShanghai, MERGE_TIMESTAMP,
1111
SHANGHAI_TIMESTAMP,
1212
},
13-
header_with_proof_new::{BlockHeaderProof, HeaderWithProof},
13+
header_with_proof::{BlockHeaderProof, HeaderWithProof},
1414
},
1515
jsonrpc::{params::Params, request::JsonRequest},
1616
},

crates/ethportal-api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub use types::{
3636
state::StateContentKey,
3737
},
3838
content_value::{
39-
beacon::BeaconContentValue, error::ContentValueError, history_new::HistoryContentValue,
39+
beacon::BeaconContentValue, error::ContentValueError, history::HistoryContentValue,
4040
state::StateContentValue, ContentValue,
4141
},
4242
discv5::*,

crates/ethportal-api/src/types/content_value/history_new.rs renamed to crates/ethportal-api/src/types/content_value/history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use ssz::{Decode, Encode};
22

33
use crate::{
44
types::{
5-
content_value::ContentValue, execution::header_with_proof_new::HeaderWithProof,
5+
content_value::ContentValue, execution::header_with_proof::HeaderWithProof,
66
network::Subnetwork,
77
},
88
utils::bytes::hex_encode,

crates/ethportal-api/src/types/content_value/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
pub mod beacon;
77
pub mod constants;
88
pub mod error;
9-
pub mod history_new;
9+
pub mod history;
1010
pub mod state;
1111

1212
/// An encodable portal network content value.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pub mod accumulator;
22
pub mod block_body;
33
pub mod header;
4-
pub mod header_with_proof_new;
4+
pub mod header_with_proof;
55
pub mod receipts;
66
pub mod transaction;
77
pub mod withdrawal;

crates/subnetworks/history/src/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use alloy::primitives::B256;
44
use anyhow::{anyhow, ensure};
55
use ethportal_api::{
66
types::execution::{
7-
block_body::BlockBody, header::Header, header_with_proof_new::HeaderWithProof,
7+
block_body::BlockBody, header::Header, header_with_proof::HeaderWithProof,
88
receipts::Receipts,
99
},
1010
utils::bytes::hex_encode,

crates/subnetworks/state/src/validation/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ mod tests {
171171
use anyhow::Result;
172172
use ethportal_api::{
173173
types::{
174-
execution::header_with_proof_new::{BlockHeaderProof, HeaderWithProof},
174+
execution::header_with_proof::{BlockHeaderProof, HeaderWithProof},
175175
jsonrpc::{endpoints::HistoryEndpoint, json_rpc_mock::MockJsonRpcBuilder},
176176
portal::GetContentInfo,
177177
},

crates/validation/src/accumulator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use alloy::primitives::{B256, U256};
44
use anyhow::anyhow;
55
use ethportal_api::types::execution::{
66
accumulator::EpochAccumulator, header::Header,
7-
header_with_proof_new::BlockProofHistoricalHashesAccumulator,
7+
header_with_proof::BlockProofHistoricalHashesAccumulator,
88
};
99
use serde::{Deserialize, Serialize};
1010
use ssz::Decode;

crates/validation/src/header_validator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use alloy::primitives::B256;
22
use anyhow::anyhow;
33
use ethportal_api::{
44
consensus::historical_summaries::HistoricalSummaries,
5-
types::execution::header_with_proof_new::{
5+
types::execution::header_with_proof::{
66
BlockHeaderProof, BlockProofHistoricalRoots, BlockProofHistoricalSummaries, HeaderWithProof,
77
},
88
Header,
@@ -224,7 +224,7 @@ mod test {
224224
use ethportal_api::{
225225
types::execution::{
226226
accumulator::EpochAccumulator,
227-
header_with_proof_new::{BlockHeaderProof, HeaderWithProof},
227+
header_with_proof::{BlockHeaderProof, HeaderWithProof},
228228
},
229229
utils::bytes::{hex_decode, hex_encode},
230230
HistoryContentKey, OverlayContentKey,

0 commit comments

Comments
 (0)