Bitcoin

Stratum not connecting to hosted template provider?

I’m trying to learn the Stratum protocol by following the instructions on the Getting Started page.

According to the instructions for simplicity, you can point the SV2 Pool to our hosted Template Provider. However, when I start SV2 Pool, I get several warnings and only print two log lines.

Here’s what I get:

$ cargo run -p pool_sv2 
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   test/scale/Cargo.toml
workspace: Cargo.toml
warning: protocols/v2/noise-sv2/Cargo.toml: unused manifest key: dependencies.ed25519-dalek.commit
warning: Cargo.toml: unused manifest key: authors
warning: Cargo.toml: unused manifest key: description
warning: Cargo.toml: unused manifest key: documentation
warning: Cargo.toml: unused manifest key: edition
warning: Cargo.toml: unused manifest key: homepage
warning: Cargo.toml: unused manifest key: keywords
warning: Cargo.toml: unused manifest key: license
warning: Cargo.toml: unused manifest key: license-file
warning: Cargo.toml: unused manifest key: name
warning: Cargo.toml: unused manifest key: readme
warning: Cargo.toml: unused manifest key: repository
warning: Cargo.toml: unused manifest key: rust-version
warning: Cargo.toml: unused manifest key: version
    Finished dev (optimized + debuginfo) target(s) in 0.06s
     Running `target/debug/pool_sv2`
2024-01-04T17:58:39.173160Z  INFO pool_sv2: Pool INITIALIZING with config: "pool-config.toml"
2024-01-04T17:58:39.320649Z  INFO pool_sv2::lib::template_receiver: Connected to template distribution server at 89.116.25.191:8442

here my pool-config.toml file:

# SRI Pool config
authority_public_key = "2di19GHYQnAZJmEpoUeP7C3Eg9TCcksHr23rZCC83dvUiZgiDL"
authority_secret_key = "2Z1FZug7mZNyM63ggkm37r4oKQ29khLjAvEx43rGkFN47RcJ2t"
cert_validity_sec = 3600
test_only_listen_adress_plain =  "0.0.0.0:34250"
listen_address = "0.0.0.0:34254"
# list of compressed or uncompressed pubkeys for coinbase payout (only supports 1 item in the array at this point)
coinbase_outputs = (
    "04466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f276728176c3c6431f8eeda4538dc37c865e2784f3a9e77d044f33e407797e1278a",
)

# Template Provider config
# local TP (this is pointing to localhost so you must run a TP locally for this configuration to work)
# tp_address = "127.0.0.1:8442"
# hosted testnet TP 
tp_address = "89.116.25.191:8442"
# hosted regnet TP 
# tp_address = "75.119.150.111:8442"
# hosted testnet TP 
# tp_address = "89.116.25.191:8442"
# hosted regnet TP 
# tp_address = "75.119.150.111:8442"

# SRI Pool JN config
listen_jn_address = "127.0.0.1:34264"

i ran nmap I don’t think port 8442 is open on that host, so I think that’s the problem.

$ nmap 89.116.25.191
Starting Nmap 7.80 ( https://nmap.org ) at 2024-01-04 11:37 MST
Nmap scan report for vmi1199961.contaboserver.net (89.116.25.191)
Host is up (0.15s latency).
Not shown: 996 closed ports
PORT     STATE    SERVICE
22/tcp   open     ssh
25/tcp   filtered smtp
5431/tcp filtered park-agent
8333/tcp open     bitcoin

Nmap done: 1 IP address (1 host up) scanned in 15.07 seconds

Are there other hosting template providers? Or is there another way to get familiar with Stratum using a template provider hosted on the testnet?

Related Articles

Back to top button