Giter Club home page Giter Club logo

bwdb's Issues

Unlock wallet, passphrase handling

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.

certain errors on server can prevent the server from resuming normal operation

Doing so will render the bwdb inoperable

Steps to reproduce:

  1. start fresh with no client/server configs
  2. start bwdb --regtest
  3. generate 150 blocks
  4. bwdb-cli createWallet test1
  5. bwdb-cli importAddresses test1 wallet.dat
  6. bwdb-cli createWallet test2
  7. bwdb-cli importAddresses test2 wallet.dat

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.

Problem with UTXO and Txids

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.

certain conditions can prevent a dbi from opening, node process hangs

steps to reproduce:

it might be hard to reproduce because I am not sure what causes it.

  1. you need to have a db already created. this does not seem to happen when there is no db when starting the server.
  2. issue db.env.openDbi('some db'...
  3. the node process will forever block on this call.

Can't import addresses using bwdb-cli command "importAddresses"

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:

  • Manjaro / Arch Linux
  • MSI X370 Gaming Pro Carbon
  • 32 core processor at 4.1GHz
  • 128GB RAM at 2933MHz
  • geForce GTX 1080 Ti
  • ASUS PCE-AC88 Network Card

******* 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! :)

errors can leave the wallet in limbo

steps to reproduce:

start fresh (no server/client.json files)

  1. bwdb --regest
  2. bwdb-cli createWallet testWallet

you should get "undefined" returned to the client

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.