@@ -30,8 +30,10 @@ document.getElementById("clear_bill_cache").addEventListener("click", clearBillC
30
30
async function start ( ) {
31
31
let config = {
32
32
log_level : "debug" ,
33
- bitcoin_network : "testnet" ,
34
- 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://blockstream.info",
35
37
nostr_relay : "wss://bitcr-cloud-run-05-550030097098.europe-west1.run.app" ,
36
38
job_runner_initial_delay_seconds : 1 ,
37
39
job_runner_check_interval_seconds : 600 ,
@@ -224,9 +226,9 @@ async function triggerBill() {
224
226
225
227
const now = new Date ( ) ;
226
228
const issue_date = now . toISOString ( ) . split ( 'T' ) [ 0 ] ;
227
- const threeMonthsLater = new Date ( now ) ;
228
- threeMonthsLater . setMonth ( now . getMonth ( ) + 3 ) ;
229
- const maturity_date = threeMonthsLater . toISOString ( ) . split ( 'T' ) [ 0 ] ;
229
+ const nMonthsLater = new Date ( now ) ;
230
+ nMonthsLater . setMonth ( now . getMonth ( ) + 0 ) ; // use to set maturity date after issue date
231
+ const maturity_date = nMonthsLater . toISOString ( ) . split ( 'T' ) [ 0 ] ;
230
232
231
233
let file_upload_id = document . getElementById ( "file_upload_id" ) . value || undefined ;
232
234
let node_id = document . getElementById ( "node_id_bill" ) . value ;
0 commit comments