Skip to content

Commit

Permalink
Replace bitcoind-rpc with crownd-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanzhenzhen committed Nov 4, 2018
1 parent 5f4bdbd commit 8dc6a7d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/services/bitcoind.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var bitcore = require('bitcore-lib-crown');
var zmq = require('zmq');
var async = require('async');
var LRU = require('lru-cache');
var BitcoinRPC = require('bitcoind-rpc');
var BitcoinRPC = require('crownd-rpc');
var $ = bitcore.util.preconditions;
var _ = bitcore.deps._;
var Transaction = bitcore.Transaction;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bitcore-node-crown",
"description": "Full node with extended capabilities using Bitcore and Crown Core",
"author": "Crown Developers <[email protected]>",
"version": "0.1.4",
"version": "0.1.5",
"publishConfig": {
"tag": "next"
},
Expand Down Expand Up @@ -52,8 +52,8 @@
],
"dependencies": {
"async": "^1.3.0",
"bitcoind-rpc": "^0.6.0",
"bitcore-lib-crown": "0.2.2",
"crownd-rpc": "0.1.x",
"bitcore-lib-crown": "0.2.x",
"body-parser": "^1.13.3",
"colors": "^1.1.2",
"commander": "^2.8.1",
Expand All @@ -74,7 +74,7 @@
},
"devDependencies": {
"benchmark": "1.0.0",
"bitcore-p2p-crown": "0.2.2",
"bitcore-p2p-crown": "0.2.x",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"istanbul": "^0.4.3",
Expand Down
2 changes: 1 addition & 1 deletion regtest/bitcoind.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var bitcoind;
var should = chai.should();
var assert = chai.assert;
var sinon = require('sinon');
var BitcoinRPC = require('bitcoind-rpc');
var BitcoinRPC = require('crownd-rpc');
var transactionData = [];
var blockHashes = [];
var utxos;
Expand Down
2 changes: 1 addition & 1 deletion regtest/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var path = require('path');
var async = require('async');
var spawn = require('child_process').spawn;

var BitcoinRPC = require('bitcoind-rpc');
var BitcoinRPC = require('crownd-rpc');
var rimraf = require('rimraf');
var bitcore = require('bitcore-lib-crown');
var chai = require('chai');
Expand Down
2 changes: 1 addition & 1 deletion regtest/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var node;

var should = chai.should();

var BitcoinRPC = require('bitcoind-rpc');
var BitcoinRPC = require('crownd-rpc');
var index = require('..');
var Transaction = bitcore.Transaction;
var BitcoreNode = index.Node;
Expand Down
2 changes: 1 addition & 1 deletion regtest/p2p.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var bitcoind;
var should = chai.should();
var assert = chai.assert;
var sinon = require('sinon');
var BitcoinRPC = require('bitcoind-rpc');
var BitcoinRPC = require('crownd-rpc');
var transactionData = [];
var blockHashes = [];
var txs = [];
Expand Down
2 changes: 1 addition & 1 deletion test/services/bitcoind.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ describe('Bitcoin Service', function() {
});

describe('#_wrapRPCError', function() {
it('will convert bitcoind-rpc error object into JavaScript error', function() {
it('will convert crownd-rpc error object into JavaScript error', function() {
var bitcoind = new BitcoinService(baseConfig);
var error = bitcoind._wrapRPCError({message: 'Test error', code: -1});
error.should.be.an.instanceof(errors.RPCError);
Expand Down

0 comments on commit 8dc6a7d

Please sign in to comment.