mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 22:43:06 +08:00
feat: fix download block
This commit is contained in:
@@ -2145,10 +2145,6 @@ pub async fn download_block(
|
||||
"method": "getblock",
|
||||
"params": [block_hash, 3]
|
||||
});
|
||||
let http_client = HttpClient::builder()
|
||||
.timeout(Duration::from_secs(20))
|
||||
.build()
|
||||
.expect("Unable to build http client");
|
||||
let block = http_client
|
||||
.post(&bitcoin_config.rpc_url)
|
||||
.basic_auth(&bitcoin_config.username, Some(&bitcoin_config.password))
|
||||
|
||||
Reference in New Issue
Block a user