Commit a57149cd authored by Allan Juma's avatar Allan Juma

update

parent 255f7bfc
......@@ -92,6 +92,8 @@ module.exports.startLndProcess = async function({
'--bitcoin.node=neutrino',
'--neutrino.connect=btcd-mainnet.lightning.computer',
'--neutrino.addpeer=dev.conner.money',
'--neutrino.addpeer=lnd-p2p.bitsoko.org',
'--neutrino.addpeer=channel.bitsoko.org',
'--neutrino.addpeer=mainnet1-btcd.zaphq.io',
'--neutrino.addpeer=mainnet2-btcd.zaphq.io',
'--neutrino.addpeer=mainnet3-btcd.zaphq.io',
......
......@@ -159,7 +159,7 @@ when(
async () => {
await nap();
autopilot.init();
if(store.balanceSatoshis===0 ) nav.goDeposit();
if(store.balanceSatoshis > 0 && store.channelBalanceSatoshis === 0 ) channel.connectAndOpen();
if(store.balanceSatoshis < 60000) nav.goDeposit();
if(store.balanceSatoshis > 25000 && store.channelBalanceSatoshis < (store.balanceSatoshis*0.2) && store.pendingChannels.length==0 && store.channelBalanceSatoshis < 20000) channel.connectAndOpen();
}
);
......@@ -359,12 +359,7 @@ export const sendToEscrow = async (amount, memo) => {
try {
const uri = 'https://gateway.bitsoko.org/escrowInvoice/?action=escrowInvoice&memo='+memo+'&amount='+amount/Math.pow(10,8);
// const uri = 'https://gateway.bitsoko.org/fallback/';
//checkHttpStatus(uri);
//const response = (await fetch(uri)).json();
const response = await fetch(uri,{ headers: {'Content-Type':'application/json'}, mode: 'cors'});
//const response = await fetch(uri,{method: 'POST', body: {memo: memo, amount: amount/Math.pow(10,8) }, headers: {'Content-Type':'application/json'}, mode: 'cors'});
console.log(JSON.stringify(response.body));
var datStrm = await new Response(response.body, {headers: { "Content-Type": "application/json" } }).json();
return datStrm.data.inv.payment_request;
......
......@@ -115,7 +115,7 @@ export class Store {
closedChannels: [],
selectedChannel: null,
channel: {
pubkeyAtHost: '033686dc68a8aaacd5caff3bd993cf9a0a4d7a5c5a3bdbcb786002d314de8cbae6@channel.bitsoko.org',
pubkeyAtHost: '03fc96e4e90cbc3f3b57548b0693b77c34ac696a125fe1158aaa9cf3752498fe63@170.75.163.101:9735',
amount: '20000',
},
paymentRequest: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment