Commit 255f7bfc authored by allan juma's avatar allan juma

update

parent 48cf8637
......@@ -110,11 +110,11 @@ module.exports.startLndProcess = async function({
if (isDev) {
args = args.concat([
'--bitcoin.node=bitcoind',
'--bitcoind.rpchost=btc-p2p.bitsoko.org',
'--bitcoind.rpchost=192.168.1.3',
'--bitcoind.rpcuser=bitsoko',
'--bitcoind.rpcpass=12Bitcoinsrus12',
'--bitcoind.zmqpubrawblock=tcp://zmq-block.bitsoko.org',
'--bitcoind.zmqpubrawtx=tcp://zmq-tx.bitsoko.org'
'--bitcoind.zmqpubrawblock=tcp://192.168.1.3:28332',
'--bitcoind.zmqpubrawtx=tcp://192.168.1.3:28333'
]);
}
......
......@@ -358,12 +358,15 @@ export const generateArc = (x, y, radius, startAngle, endAngle) => {
export const sendToEscrow = async (amount, memo) => {
try {
const uri = 'https://gateway.bitsoko.org/escrowInvoice/?memo='+memo+'&amount='+amount/Math.pow(10,8);
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'});
var datStrm = await new Response(response.body, { headers: { "Content-Type": "application/json" } }).json();
//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;
} catch (err) {
console.error('Getting escrow invoice failed', err);
......
......@@ -137,7 +137,7 @@ const iconType = tx => {
return require('../asset/icon/'+tx.type+'.png');
};
const DaoView = ({ store, nav, dao }) => {
const { computedDao: pools,
const { computedDao: daos,
unitLabel } = store;
return (
<Background image="purple-gradient-bg">
......
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