Skip to content
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

Feature/regtest address #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

SuperCipher
Copy link

add regtest support

naach added 9 commits September 17, 2020 09:25
should translate legacy address format to cashaddr format correctly
add regtest address test case
regtest address support
add slp regtest address
…re/regtest-address

* 'master' of github.com:simpleledger/bchaddrjs:
  d.ts update
  add d.ts file
@jcramer jcramer self-requested a review December 14, 2020 14:18
@jcramer
Copy link

jcramer commented Dec 14, 2020

Thanks for submitting the PR.

I don't understand why we need to add the "regtest" parameter in many of the methods. I use this library with the regtest network as-is.

For example:

https://github.com/simpleledgerinc/cpp_slp_graph_search/blob/766da4714524a57ba260f179556961eef30d11cb/regtest-bchn/test/helpers/rpcwallet.ts#L64

Can you please explain why these changes are needed and what can't be achieved as-is?

@SuperCipher
Copy link
Author

@jcramer Because many methods requires regtest flag to discern between regtest and testnet address
e.g. decodeAddress function won't be able to recognize the difference between regtest and testnet address because they have the same version byte.
df683dc#diff-fc46f429a15c48e36f14a8c98ee2897d741be553acaf266d17ec4c915caabd14R172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants