You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
926 B
22 lines
926 B
diff --git a/node_modules/eth-query/index.js b/node_modules/eth-query/index.js
|
|
index 13e9f3c..303d703 100644
|
|
--- a/node_modules/eth-query/index.js
|
|
+++ b/node_modules/eth-query/index.js
|
|
@@ -1,5 +1,6 @@
|
|
const extend = require('xtend')
|
|
const createRandomId = require('json-rpc-random-id')()
|
|
+const debug = require('debug')('eth-query');
|
|
|
|
module.exports = EthQuery
|
|
|
|
@@ -63,7 +64,9 @@ EthQuery.prototype.submitHashrate = generateFnFor('eth_subm
|
|
|
|
EthQuery.prototype.sendAsync = function(opts, cb){
|
|
const self = this
|
|
- self.currentProvider.sendAsync(createPayload(opts), function(err, response){
|
|
+ const payload = createPayload(opts)
|
|
+ debug('making request %o', payload)
|
|
+ self.currentProvider.sendAsync(payload, function(err, response){
|
|
if (!err && response.error) err = new Error('EthQuery - RPC Error - '+response.error.message)
|
|
if (err) return cb(err)
|
|
cb(null, response.result)
|
|
|