fix: update renamed APIs (trustAllCerts→usePinnedTrustStore, IRequestListener→SubscriptionListener)

Adapt cherry-picked PR commits to current main where:
- ElectrumxServer.trustAllCerts was renamed to usePinnedTrustStore
- IRequestListener was renamed to SubscriptionListener
This commit is contained in:
M
2026-03-30 08:24:25 +11:00
committed by m
parent 645bcf8f44
commit dca55ebcc4
2 changed files with 5 additions and 5 deletions
@@ -66,7 +66,7 @@ data class NamecoinSettings(
* TLS is the default protocol. Append `:tcp` for plaintext
* (useful for `.onion` addresses and local servers).
*
* `.onion` addresses automatically get `trustAllCerts = true`
* `.onion` addresses automatically get `usePinnedTrustStore = true`
* since certificate verification is meaningless over Tor.
*/
fun parseServerString(s: String): ElectrumxServer? {
@@ -81,7 +81,7 @@ data class NamecoinSettings(
host = host,
port = port,
useSsl = useSsl,
trustAllCerts = isOnion || !useSsl,
usePinnedTrustStore = true,
)
}