Skip to content

Commit 0cc0e24

Browse files
authored
Merge pull request #34 from rustaceanrob/8-15-mainnet
Switch to `Bitcoin` network
2 parents eedd6df + 74517e1 commit 0cc0e24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hintfile/src/bin/construct.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ use std::{fs::File, io::Write, sync::Arc};
33
use hintfile::write_compact_size;
44
use kernel::{ChainType, ChainstateManager, ChainstateManagerOptions, ContextBuilder, KernelError};
55

6+
const CHAIN_TYPE: ChainType = ChainType::MAINNET;
7+
68
fn main() {
7-
let mut file = File::create("./signet.hints").unwrap();
9+
let mut file = File::create("./bitcoin.hints").unwrap();
810

911
let mut args = std::env::args();
1012
let _ = args.next();
@@ -13,7 +15,7 @@ fn main() {
1315
blocks_dir.push_str("/blocks");
1416
println!("Initializing");
1517
let ctx = ContextBuilder::new()
16-
.chain_type(ChainType::SIGNET)
18+
.chain_type(CHAIN_TYPE)
1719
.build()
1820
.unwrap();
1921
let options = ChainstateManagerOptions::new(&ctx, &data_dir, &blocks_dir).unwrap();

0 commit comments

Comments
 (0)