diff --git a/lib/postgresql_interface.js b/lib/postgresql_interface.js index 50e384b2..ec9c3030 100644 --- a/lib/postgresql_interface.js +++ b/lib/postgresql_interface.js @@ -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)); - });