Skip to content

Commit

Permalink
minor change to node relay
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Dec 3, 2016
1 parent 6814d3b commit abe0a89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion json_relay_node/response.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'use strict';
var rpc = require('node-json-rpc');
var Sync = require('sync');
var BN = require('bignumber.js');
var wait = require('wait.for');
var Response = function() {}
var CACHE_DELAY = 15000;
var LAST_CACHE = 0;
Response.client = new rpc.Client({
port: 8545,
host: '23.239.20.147',
Expand Down Expand Up @@ -119,4 +122,4 @@ Response.formatAddress = function(addr) {
if (addr.substring(0, 2) == "0x") return addr;
return "0x" + addr;
}
module.exports = Response;
module.exports = Response;
2 changes: 1 addition & 1 deletion json_relay_node/runServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ app.use(vhost('rpc.myetherwallet.com', require('./index.js').app));
var httpServer = http.createServer(app);
var httpsServer = https.createServer(credentials, app);
httpServer.listen(80);
httpsServer2.listen(443);
httpsServer.listen(443);

0 comments on commit abe0a89

Please sign in to comment.