Disabling blockchain-bonds and bobs-fund
This commit is contained in:
parent
d4f9aa7e82
commit
fed3e41047
@ -102,6 +102,7 @@ module.exports = function App(secret) {
|
||||
app.post('/withdraw-convert-coin-fund', Request.WithdrawConvertCoinFund);
|
||||
app.post('/withdraw-convert-currency-fund', Request.WithdrawConvertCurrencyFund);
|
||||
|
||||
/*
|
||||
//close blockchain-bond and bobs-fund-investment
|
||||
app.post('/close-blockchain-bonds', Request.CloseBlockchainBond);
|
||||
app.post('/close-bobs-fund-investment', Request.CloseBobsFund);
|
||||
@ -109,6 +110,7 @@ module.exports = function App(secret) {
|
||||
//check balance for blockchain-bond and bobs-fund (trusted IDs only)
|
||||
app.post('/check-blockchain-bond', Request.CheckBlockchainBondBalance);
|
||||
app.post('/check-bobs-fund', Request.CheckBobsFundBalance);
|
||||
*/
|
||||
|
||||
//Manage user tags (trusted IDs only)
|
||||
app.post('/add-tag', Request.AddUserTag);
|
||||
|
||||
@ -3,8 +3,10 @@
|
||||
const keys = require('./keys');
|
||||
const blockchain = require('./blockchain');
|
||||
const conversion_rates = require('./services/conversion').getRate;
|
||||
/*
|
||||
const bond_util = require('./services/bonds').util;
|
||||
const fund_util = require('./services/bobs-fund').util;
|
||||
*/
|
||||
const pCode = require('../docs/scripts/floExchangeAPI').processCode;
|
||||
const DB = require("./database");
|
||||
const coupling = require('./coupling');
|
||||
@ -417,6 +419,7 @@ function confirmConvertRefund() {
|
||||
}).catch(error => console.error(error))
|
||||
}
|
||||
|
||||
/*
|
||||
function retryBondClosing() {
|
||||
DB.query("SELECT id, floID, amount, btc_net, usd_net FROM CloseBondTransact WHERE r_status=?", [pCode.STATUS_PENDING]).then(results => {
|
||||
results.forEach(r => blockchain.bondTransact.retry(r.floID, r.amount, r.btc_net, r.usd_net, r.id))
|
||||
@ -462,6 +465,7 @@ function confirmFundClosing() {
|
||||
})
|
||||
}).catch(error => console.error(error))
|
||||
}
|
||||
*/
|
||||
|
||||
//Periodic Process
|
||||
|
||||
@ -485,6 +489,7 @@ function processAll() {
|
||||
retryConvertRefund();
|
||||
confirmConvertRefund();
|
||||
}
|
||||
/*
|
||||
//blockchain-bond service
|
||||
if (keys.sink_chest.list(keys.sink_groups.BLOCKCHAIN_BONDS).length) {
|
||||
retryBondClosing();
|
||||
@ -495,6 +500,7 @@ function processAll() {
|
||||
retryFundClosing();
|
||||
confirmFundClosing();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
var lastSyncBlockHeight = 0;
|
||||
|
||||
@ -3,8 +3,10 @@ const DB = require("./database");
|
||||
|
||||
const market = require("./market");
|
||||
const conversion = require('./services/conversion');
|
||||
/*
|
||||
const blockchain_bonds = require("./services/bonds");
|
||||
const bobs_fund = require("./services/bobs-fund");
|
||||
*/
|
||||
const background = require("./background");
|
||||
const sink = require("./backup/head").sink;
|
||||
const keys = require("./keys");
|
||||
@ -428,6 +430,7 @@ function WithdrawConvertCurrencyFund(req, res) {
|
||||
}, () => conversion.withdrawFund.currency(data.floID, data.coin, data.amount));
|
||||
}
|
||||
|
||||
/*
|
||||
function CloseBlockchainBond(req, res) {
|
||||
let data = req.body;
|
||||
if (!data.pubKey)
|
||||
@ -473,6 +476,7 @@ function CheckBobsFundBalance(req, res) {
|
||||
timestamp: data.timestamp
|
||||
}, () => bobs_fund.checkFundBalance(data.prior_time), false);
|
||||
}
|
||||
*/
|
||||
|
||||
/* Public Requests */
|
||||
|
||||
@ -715,10 +719,12 @@ module.exports = {
|
||||
DepositConvertCurrencyFund,
|
||||
WithdrawConvertCoinFund,
|
||||
WithdrawConvertCurrencyFund,
|
||||
/*
|
||||
CloseBlockchainBond,
|
||||
CloseBobsFund,
|
||||
CheckBlockchainBondBalance,
|
||||
CheckBobsFundBalance,
|
||||
*/
|
||||
set trustedIDs(ids) {
|
||||
trustedIDs = ids;
|
||||
},
|
||||
@ -729,8 +735,10 @@ module.exports = {
|
||||
secret = s;
|
||||
},
|
||||
refreshData(nodeList) {
|
||||
/*
|
||||
blockchain_bonds.refresh(nodeList);
|
||||
bobs_fund.refresh(nodeList);
|
||||
*/
|
||||
},
|
||||
pause() {
|
||||
serving = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user