@@ -30,8 +30,10 @@ document.getElementById("clear_bill_cache").addEventListener("click", clearBillC
3030async function start ( ) {
3131 let config = {
3232 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",
3537 nostr_relay : "wss://bitcr-cloud-run-05-550030097098.europe-west1.run.app" ,
3638 job_runner_initial_delay_seconds : 1 ,
3739 job_runner_check_interval_seconds : 600 ,
@@ -224,9 +226,9 @@ async function triggerBill() {
224226
225227 const now = new Date ( ) ;
226228 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 ] ;
230232
231233 let file_upload_id = document . getElementById ( "file_upload_id" ) . value || undefined ;
232234 let node_id = document . getElementById ( "node_id_bill" ) . value ;
0 commit comments