Skip to content

DefaultAddressParserProvider: improve Javadoc, enable external subclasses - #4371

Open
msgilligan wants to merge 4 commits into
bitcoinj:masterfrom
msgilligan:msgilligan/address-parsing-javadoc-p2poolv2
Open

msgilligan wants to merge 4 commits into
bitcoinj:masterfrom
msgilligan:msgilligan/address-parsing-javadoc-p2poolv2

Conversation

@msgilligan

@msgilligan msgilligan commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

4 commits:

  • The first fixes an error in the Javadoc for Address.
  • The second is Javadoc improvements for DefaultAddressParserProvider
  • The third allows subclassing DefaultAddressParserProvider
  • The fourth catches an API usage error in DefaultAddressParserProvider earlier.

@msgilligan msgilligan added this to the 0.18 milestone Sep 8, 2026
The list of normalized networks for Base58 should be:

TESTNET,SIGNET,REGTEST

not:

TESTNET,REGTEST,REGTEST
Explain the difference between the two constructors and provide more
detail on what the two static constant lists of networks are for.
Make the class itself `public` and the two-arg constructor `protected`.
This will enable users to create subclasses that could for example,
add network types such as Liquid.
A parser returned from forNetwork() with an invalid network would
throw when any address is parsed, but this change will fail sooner
(i.e. before the parser is created.)
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.

1 participant