Skip to content

Commit

Permalink
fix rpc round-robin, bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
niahmiah committed Jan 17, 2018
1 parent a5c808e commit 6abc55e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Expand Up @@ -25,15 +25,16 @@ WORKDIR $PKG_DIR
RUN chown -R ows:ows $HOME_PATH && chgrp ows /usr/local/lib/node_modules && chgrp ows /usr/local/bin

USER ows
RUN npm install -g @owstack/btc-node@0.0.13
RUN npm install -g @owstack/btc-node@0.0.15

WORKDIR $HOME_PATH
RUN $PKG_NAME create -d $BITCOIN_DATA $APP_NAME

WORKDIR $APP_DIR
RUN $PKG_NAME install @owstack/btc-explorer-api@0.0.4
RUN $PKG_NAME install @owstack/btc-wallet-service@0.0.7
RUN $PKG_NAME install @owstack/btc-explorer-api@0.0.5
RUN $PKG_NAME install @owstack/btc-wallet-service@0.0.9
RUN $PKG_NAME install @owstack/ows-explorer@0.0.3
RUN $PKG_NAME install @owstack/ows-elastic-sync@1.0.1

USER root
CMD ["btcnode","start"]
4 changes: 1 addition & 3 deletions lib/services/bitcoind.js
Expand Up @@ -435,10 +435,8 @@ Bitcoin.prototype._resetCaches = function() {

Bitcoin.prototype._tryAllClients = function(func, callback) {
var self = this;
var nodesIndex = this.nodesIndex;
var retry = function(done) {
var client = self.nodes[nodesIndex].client;
nodesIndex = (nodesIndex + 1) % self.nodes.length;
var client = self.client;
func(client, done);
};
async.retry({times: this.nodes.length, interval: this.tryAllInterval || 1000}, retry, callback);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@owstack/btc-node",
"description": "Bitcoin Core full node with extended capabilities.",
"version": "0.0.14",
"version": "0.0.15",
"main": "./index.js",
"repository": "git://github.com/owstack/btc-node.git",
"homepage": "https://github.com/owstack/btc-node",
Expand Down

0 comments on commit 6abc55e

Please sign in to comment.