Skip to content

Commit

Permalink
feat: add bootnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
orriin committed May 31, 2024
1 parent f94e0d4 commit cdf96f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/src/chain_spec/finney.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
.with_protocol_id("bittensor")
.with_id("bittensor")
.with_chain_type(ChainType::Live)
.with_boot_nodes(vec![
"/dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC"
.parse()
.unwrap(),
])
.with_genesis_config_patch(finney_genesis(
// Initial PoA authorities (Validators)
// aura | grandpa
Expand Down
5 changes: 5 additions & 0 deletions node/src/chain_spec/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ pub fn finney_testnet_config() -> Result<ChainSpec, String> {
},
)
.with_name("Bittensor")
.with_boot_nodes(vec![
"/dns/bootnode.test.chain.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr"
.parse()
.unwrap(),
])
.with_protocol_id("bittensor")
.with_id("bittensor")
.with_chain_type(ChainType::Development)
Expand Down

0 comments on commit cdf96f4

Please sign in to comment.