Skip to content

Instantly share code, notes, and snippets.

@pinheadmz
Last active November 13, 2021 16:48
Show Gist options
  • Save pinheadmz/a5a5c506b8d0c18bfaa2121532142620 to your computer and use it in GitHub Desktop.
Save pinheadmz/a5a5c506b8d0c18bfaa2121532142620 to your computer and use it in GitHub Desktop.

bcoin v2.2.0 has been released!

Featuring bech32m support for sending to Taproot addresses.

https://github.com/bcoin-org/bcoin/releases/tag/v2.2.0

Be sure to read and understand the upgrade details in CHANGELOG

IF YOU USE THE ADDRESS INDEXER you will need to delete and rebuild that database, which could take 24-48 hours depending on your machine:

  • Stop bcoin (bcoin-cli rpc stop or ctrl-C)
  • Delete the existing addr indexer data (rm -rf ~/.bcoin/index/addr)
  • Restart bcoin
  • The address indexer will automatically begin re-indexing the chain. It may take up to 24 hours.

You can tell if your address index is broken and requires update if these two addresses return the same result:

bcoin-cli tx bc1pqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqs3wf0qm

and

bcoin-cli tx bc1qqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsw9e2a9

(Same 2 transactions returned)

An UPDATED and fully synced address indexer will respond as follows:

bcoin-cli tx bc1pqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqs3wf0qm -> invalid address

bcoin-cli tx bc1qqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsw9e2a9 -> no transactions

bcoin-cli tx bc1pqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsyjer9e -> 2 transactions (should match results from blockstream.info for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment