Skip to content

bch: wire --pool external BCHN-RPC fallback endpoint from --rpc-conf - #610

Merged
frstrtr merged 1 commit into
masterfrom
bch/pool-rpc-fallback-wire
Jul 3, 2026
Merged

bch: wire --pool external BCHN-RPC fallback endpoint from --rpc-conf#610
frstrtr merged 1 commit into
masterfrom
bch/pool-rpc-fallback-wire

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Threads the existing --rpc-conf flag into the --pool run-loop so the embedded daemon external BCHN-RPC fallback (+ submitblock leg + eager getwork prime) reaches the operator node instead of an unset endpoint (Connection refused).

Fenced: src/c2pool/main_bch.cpp run_pool only (+23/-3). PER-COIN ISOLATION: src/impl/bch entrypoint. p2pool-merged-v36 surface: NONE.

Verified against an isolated testnet4 BCHN substrate (chain=test4 at tip h312817) on :28332 -- CoindRPC connected (previously Connection refused). Build green.

NOTE: this is the RPC leg of the testnet4 crossing. The embedded HeaderChain P2P leg still EOF-drops because --testnet emits testnet3 magic (f4e5f3f4) vs test4; a --testnet4 magic path is the follow-on slice for stratum-jobs-off-tip.

Surface-for-tap: NO self-merge -- integrator merges on operator push approval.

run_pool builds config by hand (no YAML load), leaving config.coin()->m_rpc
unset. The embedded daemon is the primary work source, but coin::Node::
init_rpc still binds the external BCHN-RPC as the v36 external_fallback sink
and eager getwork prime; an unset endpoint yielded "Connection refused", so
the --pool run had only the embedded leg with no live external fallback.

Thread the existing --rpc-conf flag (already parsed but ignored by --pool)
into run_pool and load rpcuser/rpcpassword/rpcport via the existing
load_rpc_conf helper, setting config.coin()->m_rpc.address + userpass. The
external RPC fallback + submitblock leg now reach the operator node (verified
against an isolated testnet4 BCHN on :28332: CoindRPC connected).

PER-COIN ISOLATION: src/impl/bch entrypoint only. p2pool-merged-v36 surface:
NONE (run-loop RPC endpoint wiring; no share/PPLNS/coinbase/PoW bytes).
@frstrtr
frstrtr merged commit 4b23f9d into master Jul 3, 2026
21 checks passed
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