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

Add bitcoin testnet4 #273

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

wakiyamap
Copy link
Contributor

It seems that testnet4 has been merged into bitcoin, so I will make a pull request to electrumx as well.
bitcoin/bitcoin#29775
cculianu/Fulcrum#255

@cculianu
Copy link
Contributor

cculianu commented Sep 6, 2024

Hey I tried adding your server testnet4-electrumx.wakiyamap.dev as a peer but it is missing the 'hosts' key in the server.features map -- likely you turned peering off? Maybe turn it on so we can mingle?

@wakiyamap
Copy link
Contributor Author

It seems I made a mistake in the settings.
Thanks. I was able to check the hosts.

$ echo '{"id": 1, "method": "server.features"}' | nc localhost 51001 -i 1
{"jsonrpc":"2.0","result":{"hosts":{"testnet4-electrumx.wakiyamap.dev":{"tcp_port":51001,"ssl_port":51002,"wss_port":51004}},"pruning":null,"server_version":"ElectrumX 1.16.0","protocol_min":"1.4","protocol_max":"1.4.3","genesis_hash":"00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043","hash_function":"sha256","services":["tcp://testnet4-electrumx.wakiyamap.dev:51001","ssl://testnet4-electrumx.wakiyamap.dev:51002","wss://testnet4-electrumx.wakiyamap.dev:51004"]},"id":1}

@cculianu
Copy link
Contributor

cculianu commented Sep 6, 2024

Yay! Our two servers are peered now! Thanks!

@SomberNight SomberNight merged commit 9258910 into spesmilo:master Sep 6, 2024
3 checks passed
@SomberNight
Copy link
Member

Thanks

@jmptbl
Copy link

jmptbl commented Nov 30, 2024

@wakiyamap @SomberNight The testnet4 RPC port default changed from 18332 to 48332. Unfortunately this update missed that detail.

@SomberNight
Copy link
Member

The testnet4 RPC port default changed from 18332 to 48332

Hmm, indeed looks like that:
https://github.com/bitcoin/bitcoin/blob/e8cc790fe2a223cfaa6dedfba88a6dc4f336f1d9/src/chainparamsbase.cpp#L45-L48

Could you open a new PR with that change?


Anyway, note that you can specify the port manually in the DAEMON_URL env var:

http://username:password@hostname:port/

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.

4 participants