bitpay / bwdb Goto Github PK
View Code? Open in Web Editor NEWA bitcoin wallet database for wallets with millions of addresses and transactions
License: MIT License
A bitcoin wallet database for wallets with millions of addresses and transactions
License: MIT License
if no passphrase given in bwdb-cli during unlock wallet, then:
/Users/chrisk/source/bwdb/node_modules/bitcore-lib/lib/privatekey.js:55
throw new TypeError('Number must be less than N');
^
is given. This is a bit confusing as to what's going on.
Doing so will render the bwdb inoperable
Steps to reproduce:
TypeError: Invalid hex string at Function.WalletAddressMap.fromBuffer (/Users/chrisk/source/bwdb/lib/models/address-map.js:39:19)
server becomes useless after the error.
Version -1.0.0-beta
I started bwdb with pre-downloaded blockchain data that was used for bitcore
I created a wallet added some addresses
Upon GET /wallets/:walletId/balance I get the proper balance.
But on GET /wallets/:walletId/txids , GET /wallets/:walletId/utxos, GET /wallets/:walletId/transactions
I get empty transaction list.
steps to reproduce:
it might be hard to reproduce because I am not sure what causes it.
Hi there,
First of all thank you so much for the script and for your time.
I seem to be having an issue here using bwdb on linux and feel like I have tried everything to get it to work. First it was 2 weeks trying to get NPM to work lol, finally got that down. I have tried the same command on the TestNet network and it seems the command "importAddresses" works perfectly fine. However, when needing to use the main bitcoin network, the bwdb-cli command "importAddresses" returns me the below error. The error below is after successfully adding a wallet with bwdb-cli, and even successfully importing a single address using the "importAddress" command, but it just doesn't want to allow me to import multiple addresses at a time for some reason thus I am not able to use the command "importAddresses" on the main network. Am I doing something wrong?
Thank you so much for your time!
Exact terminal command I am using...
$ ./bwdb-cli importAddresses w1 xxx.json
The error the above command returns...
/home/x/bwdb/node_modules/progress/lib/node-progress.js:51
if ('number' != typeof options.total) throw new Error('total required');
^
Error: total required
at new ProgressBar (/home/x/bwdb/node_modules/progress/lib/node-progress.js:51:49)
at /home/x/bwdb/bin/bwdb-cli:137:24
at /home/x/bwdb/lib/utils.js:94:5
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:490:3)
System Specs:
******* USERS GETTING ERRORS WITH NPM / NODEJS READ BELOW *******
If anyone is trying to get their NPM to work do the following on preferably a fresh system.
1.) first install nvm using the command below:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
2.) then install a stable later version of nodejs and npm:
$ nvm install 8.0.0
3.) then tell nvm to use that version:
$ nvm use 8.0
... after that nodejs and npm should all be ready to fly and go ahead and install bwdb successfully! :)
steps to reproduce:
start fresh (no server/client.json files)
you should get "undefined" returned to the client
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.