You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bch(g3a): populate embedded mempool from BCHN GBT for populated won blocks
The embedded daemon built coinbase-only templates (nTx=1) on regtest and any
RPC-primary deploy: loose BCHN-mempool txs never reach the embedded P2P relay,
so build_template selected from an empty m_pool. Two fenced fixes:
1. EmbeddedDaemon::sync_mempool_from_rpc() (run()-startup): feed the BCHN GBT
tx set -- the same set NodeRPC::getwork() consumes -- into m_pool. No-op when
no external RPC is bound; regtest skips the mainnet/testnet anchor (is_regtest
stored as a member). One-shot known limitation; per-tip refresh is a tracked
non-blocking follow-up.
2. Mempool::add_tx_with_known_fee() + GBT per-tx fee passthrough (fee_known=true)
so get_sorted_txs_with_fees() selects GBT txs into the template and
coinbasevalue stays accurate.
Proven on live regtest BCHN: won block @h326 nTx=7 (6 mempool + coinbase),
1539-byte relayed body, both broadcaster legs fire (p2p sent, rpc ok, tip
325->326). Fence: src/impl/bch only; no p2pool-merged-v36 surface; external-RPC
fallback preserved.
0 commit comments