WIP cleanup
This commit is contained in:
parent
234dd9ef94
commit
2fb8ed3a69
1 changed files with 0 additions and 11 deletions
|
|
@ -13,10 +13,6 @@ var PG_ERRORS = {
|
|||
var conString = null;
|
||||
|
||||
function rollback(client, done) {
|
||||
//terminating a client connection will
|
||||
//automatically rollback any uncommitted transactions
|
||||
//so while it's not technically mandatory to call
|
||||
//ROLLBACK it is cleaner and more correct
|
||||
logger.warn('Rolling back transaction.');
|
||||
client.query('ROLLBACK', function(err) {
|
||||
return done(err);
|
||||
|
|
@ -263,10 +259,3 @@ exports.fillCartridges =
|
|||
client.query(query, [cartridge1, cartridge2, fingerprint], cb);
|
||||
};
|
||||
*/
|
||||
|
||||
var tx = {fiat: 100, satoshis: 10090000};
|
||||
exports.init('psql://lamassu:lamassu@localhost/lamassu');
|
||||
billsAndTxs('5ef9c631-d948-4f0f-bf22-d2a563f5cd26', 'USD', 'AB:9C:09:AA:7B:48:51:9A:0E:13:59:4E:5E:69:D0:74:E5:0F:4A:66',
|
||||
function(err, result) { console.dir(err); console.dir(result);
|
||||
console.dir(computeSendAmount(tx, result));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue