Skip to content

Commit c516805

Browse files
authored
change default testnet explorer (#504)
1 parent 4e436af commit c516805

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 0.3.10
22

3+
* Change default testnet block explorer to `https://esplora.minibill.tech`
34
* Add LICENSE to npm package
45
* Reduce size of the WASM binary
56
* Fix a small issue, where bills were recalculated instead of taken from cache, once their payment/sell/recourse/accept requests expired

crates/bcr-ebill-api/src/service/bill_service/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn get_service(mut ctx: MockBillContext) -> BillService {
173173
.expect_get_mempool_link_for_address()
174174
.returning(|_| {
175175
String::from(
176-
"http://blockstream.info/testnet/address/1Jfn2nZcJ4T7bhE8FdMRz8T3P3YV4LsWn2",
176+
"https://esplora.minibill.tech/testnet/address/1Jfn2nZcJ4T7bhE8FdMRz8T3P3YV4LsWn2",
177177
)
178178
});
179179
bitcoin_client.expect_generate_link_to_pay().returning(|_,_,_| String::from("bitcoin:1Jfn2nZcJ4T7bhE8FdMRz8T3P3YV4LsWn2?amount=0.01&message=Payment in relation to bill some bill"));

crates/bcr-ebill-api/src/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub mod tests {
315315
None => {
316316
crate::init(crate::Config {
317317
bitcoin_network: "mainnet".to_string(),
318-
esplora_base_url: "https://blockstream.info".to_string(),
318+
esplora_base_url: "https://esplora.minibill.tech".to_string(),
319319
nostr_relay: "ws://localhost:8080".to_string(),
320320
surreal_db_connection: "ws://localhost:8800".to_string(),
321321
data_dir: ".".to_string(),

crates/bcr-ebill-wasm/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ document.getElementById("clear_bill_cache").addEventListener("click", clearBillC
3030
async function start() {
3131
let config = {
3232
log_level: "debug",
33-
bitcoin_network: "regtest", // local reg test
34-
esplora_base_url: "http://localhost:8094", // local reg test via docker-compose
35-
// bitcoin_network: "testnet",
36-
// esplora_base_url: "https://blockstream.info",
33+
// bitcoin_network: "regtest", // local reg test
34+
// esplora_base_url: "http://localhost:8094", // local reg test via docker-compose
35+
bitcoin_network: "testnet",
36+
esplora_base_url: "https://esplora.minibill.tech",
3737
nostr_relay: "wss://bitcr-cloud-run-05-550030097098.europe-west1.run.app",
3838
job_runner_initial_delay_seconds: 1,
3939
job_runner_check_interval_seconds: 600,

crates/bcr-ebill-web/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct Config {
3030
pub frontend_url_path: String,
3131
#[arg(default_value_t = false, long, env = "LAUNCH_FRONTEND_AT_STARTUP")]
3232
pub launch_frontend_at_startup: bool,
33-
#[arg(default_value_t = String::from("https://blockstream.info"), long, env = "ESPLORA_BASE_URL")]
33+
#[arg(default_value_t = String::from("https://esplora.minibill.tech"), long, env = "ESPLORA_BASE_URL")]
3434
pub esplora_base_url: String,
3535
}
3636

docs/wasm_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It contains the following options:
2929
```javascript
3030
let config = {
3131
bitcoin_network: "testnet",
32-
esplora_base_url: "https://blockstream.info",
32+
esplora_base_url: "https://esplora.minibill.tech",
3333
nostr_relay: "wss://bitcr-cloud-run-05-550030097098.europe-west1.run.app",
3434
surreal_db_connection: "indxdb://default",
3535
data_dir: ".",

docs/web_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following options are available:
1717
* `FRONTEND_URL_PATH` - default path to serve the frontend from (default: /)
1818
* `FRONTEND_SERVE_FOLDER` - folder where the static frontend is served from (default: ./frontend)
1919
* `LAUNCH_FRONTEND_AT_STARTUP` - open the frontend in a browser on startup (default: false)
20-
* `ESPLORA_BASE_URL` - The base url of the esplora URL for payment checks (default: https://blockstream.info)
20+
* `ESPLORA_BASE_URL` - The base url of the esplora URL for payment checks (default: https://esplora.minibill.tech)
2121

2222
## Example
2323

0 commit comments

Comments
 (0)