Skip to content

Instantly share code, notes, and snippets.

@gtklocker
Created July 30, 2018 11:09
Show Gist options
  • Save gtklocker/c1d28c54f5db235faa578815f4c95230 to your computer and use it in GitHub Desktop.
Save gtklocker/c1d28c54f5db235faa578815f4c95230 to your computer and use it in GitHub Desktop.
Steps to get a tx to show as both confirmed and unconfirmed on bcoin

steps:

  • npm install (-g) bclient which provides bwallet-cli
  • make sure your ~/.bcoin/wallet.conf contains network: testnet
  • run an spv node on btc testnet (bcoin --network testnet --spv, or you could spawn one programmatically)
  • wait until it’s fully synced
  • get the receive address of the “default” account (bwallet-cli account get default)
  • send some btc testnet from a faucet to that address
  • bwallet-cli balance should immediately show some unconfirmed amount
  • wait until the tx gets 1 conf, now the amount that was previously unconfirmed should show both as confirmed and unconfirmed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment