Bumped version.
This commit is contained in:
parent
74d3c0212b
commit
5d0923a9d1
33
contrib/expensiveQueries.js
Normal file
33
contrib/expensiveQueries.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
var request = require('request');
|
||||||
|
var config = require('./config.json');
|
||||||
|
var addresses = require('/tmp/large_amounts_utxos.json');
|
||||||
|
|
||||||
|
// each of those addresses has a large number of utxos
|
||||||
|
|
||||||
|
// we are going to act like this group of addresses is our wallet, this ought to be fun!
|
||||||
|
|
||||||
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||||
|
|
||||||
|
var url = config.old;
|
||||||
|
|
||||||
|
if (process.argv[2] === 'old') {
|
||||||
|
url = config.new;
|
||||||
|
}
|
||||||
|
|
||||||
|
var options = {
|
||||||
|
|
||||||
|
url: url,
|
||||||
|
method: 'POST',
|
||||||
|
qs: { from: 0, to: 5, noAsm: 1, noScriptSig: 1, noSpent: 1 },
|
||||||
|
json: { addrs: '1H4drU7anmDUdJKAcJXfoExPPNJbwiM7nJ' }
|
||||||
|
//json: { addrs: addresses }
|
||||||
|
};
|
||||||
|
|
||||||
|
request(options, function(err, response, body) {
|
||||||
|
console.log(JSON.stringify(body));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitcore-node",
|
"name": "bitcore-node",
|
||||||
"version": "5.0.0-beta.32",
|
"version": "5.0.0-beta.33",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"author": "BitPay <dev@bitpay.com>",
|
"author": "BitPay <dev@bitpay.com>",
|
||||||
"version": "5.0.0-beta.32",
|
"version": "5.0.0-beta.33",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"repository": "git://github.com/bitpay/bitcore-node.git",
|
"repository": "git://github.com/bitpay/bitcore-node.git",
|
||||||
"homepage": "https://github.com/bitpay/bitcore-node",
|
"homepage": "https://github.com/bitpay/bitcore-node",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user