Skip to content

Commit be6b6d3

Browse files
Merge branch '4003-probe-evm-chain-identity' into 4003-probe-bitcoin-genesis-hash
2 parents b400906 + fc8da4e commit be6b6d3

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

  • crates
    • foreign-chain-health-check/src
    • foreign-chain-inspector/src

crates/foreign-chain-health-check/src/probe.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ pub async fn probe_all_providers(config: &ForeignChainsConfig) -> ProbeReport {
124124
ProbeReport { rows: report_rows }
125125
}
126126

127-
/// The chain marker only types the inspector; `eth_chainId` is the same call for all of them.
128127
async fn probe_evm<Chain>(chain: ForeignChain, config: &ForeignChainConfig) -> Vec<ProviderHealth>
129128
where
130129
Chain: EvmChain + Clone + Send + Sync + 'static,

crates/foreign-chain-inspector/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ pub(crate) const NO_PARAMS: [(); 0] = [];
5050
pub struct NetworkFingerprint(String);
5151

5252
impl NetworkFingerprint {
53-
/// The longest fingerprint in use is Bitcoin's genesis hash, at 64 characters. Must stay
54-
/// clear of what any chain reports, since fingerprints are compared after the cut and two
55-
/// that agree up to it would read as one network.
53+
/// Values are compared after the cut, so this must exceed every fingerprint in use. The
54+
/// longest is Bitcoin's genesis hash at 64 characters.
5655
pub const MAX_CHARS: usize = 96;
5756
const CUT_SHORT_MARKER: &str = "_TRUNCATED";
5857

0 commit comments

Comments
 (0)