Skip to content

nmc: P1 PB embedded mempool (re-homed btc mirror) - #210

Merged
frstrtr merged 1 commit into
masterfrom
nmc/p1-pb-mempool
Jun 19, 2026
Merged

nmc: P1 PB embedded mempool (re-homed btc mirror)#210
frstrtr merged 1 commit into
masterfrom
nmc/p1-pb-mempool

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

P1 PB — NMC embedded mempool

Adds nmc::coin::Mempool (src/impl/nmc/coin/mempool.hpp): a byte-faithful mirror of the btc pool re-homed into namespace nmc::coin so the NMC coin tree stays self-contained (no btc::coin symbols), matching the existing transaction.hpp/block.hpp/header_chain.hpp pattern. Unlike DOGE (which aliases ltc::coin::Mempool), NMC keeps the re-homed convention already established across P0/P1.

Namecoin is a Bitcoin fork — same wire format. Money params come from a locally-instantiated NMC_LIMITS (core::coin::ChainLimits = 21M*1e8 sat, 100-block coinbase maturity, no pegout); no src/core edit.

Coverage

+3 KATs in the existing CI-allowlisted nmc_auxpow_merkle_test (no build.yml change, no NOT_BUILT sentinel):

  • add/contains/remove + duplicate rejection
  • feerate-ordered selection (highest feerate first)
  • confirmed-block cleanup (remove_for_block)

Local: build green; suite 66 -> 69 PASS.

Fence

src/impl/nmc/ only. No src/core, no bitcoin_family/, no .github/. Next: P1 PC template builder consumes this pool.

Reference: namecoin-core (Bitcoin fork) txmempool.cpp / amount.h MAX_MONEY, consensus.h COINBASE_MATURITY.

Adds nmc::coin::Mempool — a byte-faithful mirror of src/impl/btc/coin/
mempool.hpp re-homed into namespace nmc::coin so the NMC coin tree stays
self-contained (no btc::coin symbols). Namecoin is a Bitcoin fork: same
wire format, 21M money cap, 100-block coinbase maturity (NMC_LIMITS,
instantiated locally from the public core::coin::ChainLimits; no core
edit). Feeds the P1 PC template builder next.

Coverage: +3 KATs in the existing (CI-allowlisted) nmc_auxpow_merkle_test
(add/contains/remove + dedup, feerate-ordered selection, confirmed-block
cleanup). Suite 66 -> 69 green. Fence held: src/impl/nmc/ only, no
build.yml / src/core / bitcoin_family change.

Reference: namecoin-core (Bitcoin fork) txmempool.cpp / amount.h MAX_MONEY,
consensus.h COINBASE_MATURITY.
@frstrtr
frstrtr merged commit dc256e8 into master Jun 19, 2026
18 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