build: updates for npm install
This commit is contained in:
parent
1fb552a972
commit
7c344b5f24
|
@ -1,5 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var index = require('..');
|
||||
var log = index.log;
|
||||
|
||||
|
@ -64,7 +65,7 @@ describe('P2P Functionality', function() {
|
|||
bitcoind = require('../').services.Bitcoin({
|
||||
spawn: {
|
||||
datadir: datadir,
|
||||
exec: 'bitcoind'
|
||||
exec: path.resolve(__dirname, '../bin/bitcoind')
|
||||
},
|
||||
node: {
|
||||
network: bitcore.Networks.testnet
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var levelup = require('levelup');
|
||||
var bitcore = require('bitcore-lib');
|
||||
var Transaction = bitcore.Transaction;
|
||||
|
||||
var index = require('./');
|
||||
var errors = index.errors;
|
||||
|
||||
var MAX_TRANSACTION_LIMIT = 5;
|
||||
|
||||
Transaction.prototype.populateInputs = function(db, poolTransactions, callback) {
|
||||
|
@ -30,7 +32,7 @@ Transaction.prototype._populateInput = function(db, input, poolTransactions, cal
|
|||
}
|
||||
var txid = input.prevTxId.toString('hex');
|
||||
db.getTransaction(txid, true, function(err, prevTx) {
|
||||
if(err instanceof levelup.errors.NotFoundError) {
|
||||
if(err instanceof errors.Transaction.NotFoundError) {
|
||||
// Check the pool for transaction
|
||||
for(var i = 0; i < poolTransactions.length; i++) {
|
||||
if(txid === poolTransactions[i].hash) {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"async": "^1.3.0",
|
||||
"bitcoind-rpc": "^0.3.0",
|
||||
"bitcoind-rpc": "braydonf/bitcoind-rpc#8d27a545f4e7de5a8faca5de6bdbb1a6c1e41f5c",
|
||||
"bitcore-lib": "^0.13.13",
|
||||
"body-parser": "^1.13.3",
|
||||
"colors": "^1.1.2",
|
||||
|
@ -58,6 +58,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"benchmark": "1.0.0",
|
||||
"bitcore-p2p": "^1.1.0",
|
||||
"chai": "^3.0.0",
|
||||
"mocha": "~1.16.2",
|
||||
"proxyquire": "^1.3.1",
|
||||
|
|
|
@ -44,7 +44,7 @@ if test $? -eq 0; then
|
|||
echo "Unpacking bitcoin distribution"
|
||||
tar -xvzf $tarball_name
|
||||
if test $? -eq 0; then
|
||||
ln -s "bitcoin-${version}/bin/bitcoind"
|
||||
ln -sf "bitcoin-${version}/bin/bitcoind"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue