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

Use testnet4 for electrum tests instead of testnet3 #733

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

sstone
Copy link
Member

@sstone sstone commented Nov 27, 2024

Testnet3 is bloated, slow and unreliable, making it hard to use for CI tests.

@sstone sstone requested a review from t-bast November 27, 2024 12:49
@@ -5,12 +5,12 @@ import fr.acinq.lightning.tests.utils.testLoggerFactory
import fr.acinq.lightning.utils.ServerAddress
import kotlinx.coroutines.CoroutineScope

val ElectrumTestnetServerAddress = ServerAddress("testnet1.electrum.acinq.co", 51002, TcpSocket.TLS.UNSAFE_CERTIFICATES)
val ElectrumTestnet4ServerAddress = ServerAddress("mempool.space", 40002, TcpSocket.TLS.TRUSTED_CERTIFICATES())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand, mempool.space also acts as an electrum server?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes (testnet4 on port 40002, mainnet on 50002).

t-bast
t-bast previously approved these changes Nov 27, 2024
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If mempool.space is able to run a testnet4 electrum server, that means other people (including us) should be able to do the same, right? Do we know if they used a non-released version of electrumx or something else?

TLS certificare verification fails on iOS simulators with error "TLS: -9808: bad certificate format".
@sstone
Copy link
Member Author

sstone commented Nov 27, 2024

If mempool.space is able to run a testnet4 electrum server, that means other people (including us) should be able to do the same, right? Do we know if they used a non-released version of electrumx or something else?

They use of fork of Blokckstream's electrs (which is a fork of the original electrs project). This is probably what we would use if we were to deploy a testnet4 server.

@sstone sstone merged commit 97b1525 into master Nov 27, 2024
2 checks passed
@sstone sstone deleted the use-testnet4 branch November 27, 2024 14:49
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.

2 participants