Skip to content

Feature/regtest address#1

Open
SuperCipher wants to merge 10 commits intosimpleledger:masterfrom
ActorForth:feature/regtest-address
Open

Feature/regtest address#1
SuperCipher wants to merge 10 commits intosimpleledger:masterfrom
ActorForth:feature/regtest-address

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