-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"bwallet-cli admin wallets" Error: socket hang up #674
Comments
related: #634 I tried using
here is the log on the node side:
|
Seems like this guy is having similar issue : #493 (comment) |
I commented out this: |
Glad you solved your issue, @sulliwane ! A bit more info for you: wallet-auth means a Another thing I noticed about your setup is you are missing the endpoint |
Hey @pinheadmz , I'm not quite sure what you mean by "missing the endpoint /wallet" ? I just did that: const newWallet = await walletClient.createWallet('1', {
witness: false,
watchOnly: true,
accountKey: 'tpubDDYmpeYPBzPC2...',
});
console.log(await wallet.getInfo()) But my balance shows Are these two things related? Do I need the extra step of running Thank you for the clarification! |
I just received a new tx from a faucet (0.01BTC) and these appear correctly: { tx: 1, coin: 1, unconfirmed: 1000000, confirmed: 0 }. My node is running with --spv, but i did start a rescan...any idea why it's discovered the previous tx to this address ? |
To recover the older transactions, you may need to run |
Yes! the watch-only wallet was already created. So it's working as expected. So If my current understanding is correct, I have two options:
I'm not sure about My app is very simple, watch-only service, xpubkey only new wallets, in the most lightweight way possible. The best would have been not to maintain the bcoin node myself, but seems I have no choice ;) |
You only need to
Yes, you're correct. If you import an xpub that has already been used on chain, you'll need to run a
Yeah I kinda agree. Pruned nodes are more secure and private because they verify everything and rely on nothing. They maintain a complete UTXO set and so they offer some more features than SPV, but if you ever think you will have the need to look up transactions in historical blocks, a pruned node will be useless there. |
thanks a tone for your detailed answer. Right, I did not clarify this => 90% of new wallets will have previous/existing tx onchain, made before I start tracking them. But, I'm only interested in knowing the latest state of balance (but I guess I can't avoid scanning all the history to get this information). You mean
I understand |
Yeah you are correct! Because SPV has no block history on disk, the only way to recover old tx history is with This would be TERRIBLE practice for a full node, because it would require immense bandwidth and processing every single time. However, in SPV it is a somewhat trivial operation because it only downloads and processes 80-byte block headers 😄 and then whatever transactions are requested by the bloom filter. If you are deploying a production application with multiple users all running wallets on the same node, I would advise against using SPV. For a busy application you'd probably want to even bump UP the disk usage by running a full node with |
hum, I see. very interesting! I may indeed go for a full node with the options you mention, so I don't need to rescan. Any idea of what would be roughly the disk space requirements when using Under the hood, is bcoin spawning a bitcoind node? Or is bcoin a full JS bitcoin node in its own? |
bcoin is a completely separate implementation of the Bitcoin protocol written in JavaScript :-) This post goes in to a lot of detail about our disk usage and ways to improve it: Unfortunately at this time a full node plus indexing probably takes up about ~500 GB For comparison, my Bitcoin Core full node takes up about 232 GB, some ~20 GB of which appears to be |
Ok, I see. 500 GB doesn't sound like very lightweight :) 232GB neither anyway... Out of curiosity, is it possible to connect the wallet service to a bitcoin core full node instead of the bcoin JS node? Or is bcoin JS node providing some API layers that are not provided by vanilla bitcoind node? (sorry for the neophyte questions here, I'm much more familiar with the way ethereum nodes work). I was expecting to find some centralized services (like Infura for eth) publicly exposing bitcoin core node API (using one standardized API layer everyone would agree on). Running a full node is often a deal breaker for developers. |
Yeah there are tons of API services, most block explorers offer (paid) high volume endpoints. You might also look for Insight servers or even try the Electrum protocol -- which is basically SPV but wrapped in some extra security features. Just keep in mind there is no security or privacy unless you are verifying the blockchain yourself! |
I'm running a bcoin node locally (testnet, --prune, synced).
Here is my
bcoin.conf
:Here is my
wallet.conf
:This command is NOT working:
But this command is working:
So it seems like the wallet service is not up...I'm starting bcoin with this command
BCOIN_CONFIG=/data/bcoin.conf /bcoin/bin/bcoin --spv
...is there a seperate command to start the wallet service?Many thanks!
The text was updated successfully, but these errors were encountered: