Skip to content

Commit

Permalink
Serialize correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Oct 14, 2024
1 parent 3dfefeb commit cd2af07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/index/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ impl ContextBuilder {
];

let options = Options::try_parse_from(command.into_iter().chain(self.args)).unwrap();

let index = Index::open_with_event_sender(
&Settings::from_options(options).or_defaults().unwrap(),
self.event_sender,
)?;

index.update().unwrap();

Ok(Context {
Expand Down
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ impl Settings {
match client.get_blockchain_info() {
Ok(blockchain_info) => {
break match blockchain_info.chain.to_string().as_str() {
"main" => Chain::Mainnet,
"test" => Chain::Testnet,
"bitcoin" => Chain::Mainnet,
"testnet" => Chain::Testnet,
"regtest" => Chain::Regtest,
"signet" => Chain::Signet,
other => bail!("Bitcoin RPC server on unknown chain: {other}"),
Expand Down

0 comments on commit cd2af07

Please sign in to comment.