mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: Support testnet sync
- Add testnet S3 bucket - Use testnet RPC properly - Use testnet chainspec on pseudo peer
This commit is contained in:
@ -152,4 +152,12 @@ impl HlChainSpec {
|
||||
_ => unreachable!("Unreachable since ChainSpecParser won't return other chains"),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn official_s3_bucket(self) -> &'static str {
|
||||
match self.inner.chain().id() {
|
||||
MAINNET_CHAIN_ID => "hl-mainnet-evm-blocks",
|
||||
TESTNET_CHAIN_ID => "hl-testnet-evm-blocks",
|
||||
_ => unreachable!("Unreachable since ChainSpecParser won't return other chains"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user