File tree Expand file tree Collapse file tree 16 files changed +31
-11
lines changed Expand file tree Collapse file tree 16 files changed +31
-11
lines changed Original file line number Diff line number Diff line change
1
+ # 0.3.8
2
+
3
+ * Add ` esplora_base_url ` as config parameter to be able to use a custom esplora based block explorer
4
+ * Add ` node_ids ` filter to ` list ` notifications endpoint
5
+ * Fixed an issue where events weren't propagated if no one was subscribed to the push notifications
6
+ * Run payment checks on startup
7
+
1
8
# 0.3.7
2
9
3
10
* Fix request recourse to accept validation - does not require a request to accept anymore
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " bcr-ebill-api"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2024"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change @@ -79,21 +79,21 @@ impl BitcoinClient {
79
79
pub fn request_url ( & self , path : & str ) -> String {
80
80
match get_config ( ) . bitcoin_network ( ) {
81
81
Network :: Bitcoin => {
82
- format ! ( "https://blockstream.info/ api{path}" )
82
+ format ! ( "{}/ api{path}" , get_config ( ) . esplora_base_url )
83
83
}
84
84
_ => {
85
- format ! ( "https://blockstream.info/ testnet/api{path}" )
85
+ format ! ( "{}/ testnet/api{path}" , get_config ( ) . esplora_base_url )
86
86
}
87
87
}
88
88
}
89
89
90
90
pub fn link_url ( & self , path : & str ) -> String {
91
91
match get_config ( ) . bitcoin_network ( ) {
92
92
Network :: Bitcoin => {
93
- format ! ( "https://blockstream.info{ path}" )
93
+ format ! ( "{}{ path}" , get_config ( ) . esplora_base_url )
94
94
}
95
95
_ => {
96
- format ! ( "https://blockstream.info/ testnet{path}" )
96
+ format ! ( "{}/ testnet{path}" , get_config ( ) . esplora_base_url )
97
97
}
98
98
}
99
99
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pub use persistence::notification::NotificationFilter;
23
23
#[ derive( Debug , Clone ) ]
24
24
pub struct Config {
25
25
pub bitcoin_network : String ,
26
+ pub esplora_base_url : String ,
26
27
pub nostr_relay : String ,
27
28
pub surreal_db_connection : String ,
28
29
pub data_dir : String ,
Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ pub mod tests {
315
315
None => {
316
316
crate :: init ( crate :: Config {
317
317
bitcoin_network : "mainnet" . to_string ( ) ,
318
+ esplora_base_url : "https://blockstream.info" . to_string ( ) ,
318
319
nostr_relay : "ws://localhost:8080" . to_string ( ) ,
319
320
surreal_db_connection : "ws://localhost:8800" . to_string ( ) ,
320
321
data_dir : "." . to_string ( ) ,
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " bcr-ebill-core"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2024"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " bcr-ebill-persistence"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2024"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " bcr-ebill-transport"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2024"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " bcr-ebill-wasm"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2024"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ async function start() {
31
31
let config = {
32
32
log_level : "debug" ,
33
33
bitcoin_network : "testnet" ,
34
+ esplora_base_url : "https://blockstream.info" ,
34
35
nostr_relay : "wss://bitcr-cloud-run-05-550030097098.europe-west1.run.app" ,
35
36
job_runner_initial_delay_seconds : 1 ,
36
37
job_runner_check_interval_seconds : 600 ,
You can’t perform that action at this time.
0 commit comments