This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vianetwork/bitcoin-lib-fixes
fix: bitcoin lib final fixes
- Loading branch information
Showing
20 changed files
with
1,384 additions
and
777 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 0 additions & 101 deletions
101
core/lib/via_btc_client/examples/bitcoin_client_example.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use anyhow::Result; | ||
use tracing_subscriber; | ||
use via_btc_client::{indexer::BitcoinInscriptionIndexer, regtest::BitcoinRegtest, types::Network}; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<()> { | ||
tracing_subscriber::fmt() | ||
.with_max_level(tracing::Level::DEBUG) | ||
.init(); | ||
|
||
tracing::info!("starting Bitcoin client example"); | ||
let context = BitcoinRegtest::new()?; | ||
let miner = context.get_miner_address()?; | ||
tracing::info!("miner address: {}", miner); | ||
let indexer = | ||
BitcoinInscriptionIndexer::new(&context.get_url(), Network::Regtest, vec![]).await; | ||
|
||
if let Err(e) = indexer { | ||
tracing::error!("Failed to create indexer: {:?}", e); | ||
} | ||
Ok(()) | ||
} |
File renamed without changes.
Oops, something went wrong.