Rebase (BOB) Core onto modern Dogecoin Core for SegWit+CSV (unblock native XMR↔(BOB) atomic swap) #52

Open
opened 2026-11-14 18:22:20 +00:00 by MWOWM · 1 comment
Member

Summary

Rebase (BOB) Core onto modern Dogecoin Core to gain SegWit + CSV, so (BOB) can support
trustless on-chain script features — unblocking a native XMR ↔ (BOB) atomic-swap (no custodian,
no arbiter). (BOB) today has neither SegWit nor enforced CSV, and they cannot be added as a
parameter flip: the tree is an old base lacking the prerequisites.

Why now

A native monero↔(BOB) atomic swap needs:

  • SegWit — the protocol pre-signs a chain of txs (lock → cancel → refund/punish); that is only
    safe because SegWit fixes txid malleability. Hard requirement.
  • CSV (OP_CHECKSEQUENCEVERIFY) — the in-script relative timelocks.

Findings (verified against source + the live mainnet node, 2026-11-14)

  • (BOB) "0.14.1" is its own version number on an old ~Bitcoin-Core-0.10 base. No BIP9
    version-bits (versionbits.cpp absent), no bech32.cpp, no SegWit code (CTxWitness,
    IsWitnessProgram, witness serialization all absent). CSV opcode exists but is not
    consensus-enforced
    .
  • PoW: scrypt 1024,1,1.
  • Retarget history (by height): V1 → KGW @13579 → DigiShield @31597 → DigiShield/2-min @68425
    → LWMA-3 @1,888,808 (active). Block spacing 10 min until 68425, 2 min since.
  • Reward: 50 → halvings (≤951752) → hardset 1.5 (BOB) forever from height 951753.
  • Pending fork @ block 2,000,000 (~late Jan 2027): HARDFORK_CLTV_MAIN and
    HARDFORK_AUXPOW_MAIN — CLTV + AuxPoW activate together. SegWit is NOT in this bundle.
  • Network identity: magic a0fb1783, port 19985, base58 prefixes 0/5/128 + BTC ext keys,
    genesis nTime 1389086657 / nBits 0x1e0ffff0 / nNonce 2084524493, 13 mainnet checkpoints
    (last 1,848,000), AuxPoW chain-id 0x00B0.

Decision: base = Dogecoin Core

(BOB) becomes scrypt + AuxPoW at 2M. The only modern Core with scrypt and AuxPoW and
SegWit+CSV is Dogecoin Core. Litecoin Core lacks AuxPoW; Bitcoin Core lacks both. We re-apply
(BOB)'s identity + full historical consensus (the retarget schedule above, scrypt, reward,
genesis, AuxPoW@2M, CLTV@2M) onto that base.

Base candidate evaluation

Dogecoin Core v1.14.9 Dogecoin Core 1.21-dev
Features SegWit, CSV, versionbits, AuxPoW, scrypt (confirmed); no bech32 + bech32, Taproot, modern wallet; Boost 1.70; 13,781 commits ahead
Build ⛔ depends pins Boost 1.63 → b2 bootstrap fails on modern GCC builds on a modern toolchain
Provenance battle-tested (secures Dogecoin mainnet), stable tag unreleased dev branch, dormant since 2024-02 — never shipped

Build blocker (decision needed)

Doge Core v1.14.9's depends pins Boost 1.63, whose Boost.Build engine won't compile on a modern
GCC. Options:

  • A. Patch the Boost 1.63 bootstrap for modern GCC — smallest, no sudo, keeps the battle-tested base. (recommended default)
  • B. Build v1.14.9 against system libs (Boost 1.83 + libevent/openssl/BDB4.8) — needs sudo apt + likely source patches.
  • C. Base on 1.21-dev instead — solves the build and adds bech32/Taproot, but means trusting code Dogecoin never released. Flip to C only if 1.21-dev builds and passes its test suite cleanly (checkable).

Plan / staging (consensus-critical)

  1. Build the chosen base; pin the exact commit.
  2. Re-apply (BOB) network identity + money + genesis.
  3. Port (BOB)'s historical consensus (retarget-by-height, scrypt, reward, AuxPoW@2M, CLTV@2M).
    Acid test: a full sync from genesis reaches the same tip hash as the live
    /EndTimes:0.14.0 node. Nothing proceeds until that matches.
  4. Confirm SegWit+CSV; set a future (BOB) activation height.
  5. Testnet soak → coordinated mainnet activation (pool, seeds, miners) — a planned fork, far out.

🚨 Consensus-critical: any divergence in historical validation splits the chain. regtest → testnet
→ sync-audit → long soak before any mainnet activation height is set.

Status / artifacts

  • Full spec + staging: doc/rebase-plan.md on branch feat/modern-core-rebase.
  • Base candidate cloned + feature-checked on the build box; spec constants extracted from source.
  • Open decision: build strategy A / B / C above. Next concrete step: build-test 1.21-dev
    to settle A-vs-C on evidence.
## Summary Rebase (BOB) Core onto **modern Dogecoin Core** to gain **SegWit + CSV**, so (BOB) can support trustless on-chain script features — unblocking a native **XMR ↔ (BOB) atomic-swap** (no custodian, no arbiter). (BOB) today has neither SegWit nor enforced CSV, and they cannot be added as a parameter flip: the tree is an old base lacking the prerequisites. ## Why now A native monero↔(BOB) atomic swap needs: - **SegWit** — the protocol pre-signs a chain of txs (lock → cancel → refund/punish); that is only safe because SegWit fixes txid malleability. **Hard requirement.** - **CSV** (`OP_CHECKSEQUENCEVERIFY`) — the in-script relative timelocks. ## Findings (verified against source + the live mainnet node, 2026-11-14) - (BOB) "0.14.1" is its own version number on an **old ~Bitcoin-Core-0.10 base**. No BIP9 version-bits (`versionbits.cpp` absent), no `bech32.cpp`, **no SegWit code** (`CTxWitness`, `IsWitnessProgram`, witness serialization all absent). CSV opcode exists but is **not consensus-enforced**. - **PoW:** scrypt `1024,1,1`. - **Retarget history (by height):** V1 → KGW @13579 → DigiShield @31597 → DigiShield/2-min @68425 → **LWMA-3 @1,888,808** (active). Block spacing 10 min until 68425, **2 min since**. - **Reward:** 50 → halvings (≤951752) → **hardset 1.5 (BOB) forever from height 951753**. - **Pending fork @ block 2,000,000 (~late Jan 2027):** `HARDFORK_CLTV_MAIN` **and** `HARDFORK_AUXPOW_MAIN` — CLTV + **AuxPoW** activate together. **SegWit is NOT in this bundle.** - Network identity: magic `a0fb1783`, port `19985`, base58 prefixes `0/5/128` + BTC ext keys, genesis `nTime 1389086657 / nBits 0x1e0ffff0 / nNonce 2084524493`, 13 mainnet checkpoints (last `1,848,000`), AuxPoW chain-id `0x00B0`. ## Decision: base = Dogecoin Core (BOB) becomes **scrypt + AuxPoW** at 2M. The only modern Core with scrypt **and** AuxPoW **and** SegWit+CSV is **Dogecoin Core**. Litecoin Core lacks AuxPoW; Bitcoin Core lacks both. We re-apply (BOB)'s identity + **full historical consensus** (the retarget schedule above, scrypt, reward, genesis, AuxPoW@2M, CLTV@2M) onto that base. ## Base candidate evaluation | | **Dogecoin Core v1.14.9** | **Dogecoin Core `1.21-dev`** | |---|---|---| | Features | SegWit, CSV, versionbits, AuxPoW, scrypt (confirmed); **no bech32** | + bech32, Taproot, modern wallet; Boost 1.70; 13,781 commits ahead | | Build | ⛔ depends pins **Boost 1.63** → `b2` bootstrap fails on modern GCC | builds on a modern toolchain | | Provenance | **battle-tested** (secures Dogecoin mainnet), stable tag | **unreleased dev branch, dormant since 2024-02** — never shipped | ## Build blocker (decision needed) Doge Core v1.14.9's `depends` pins Boost 1.63, whose Boost.Build engine won't compile on a modern GCC. Options: - **A.** Patch the Boost 1.63 bootstrap for modern GCC — smallest, no sudo, keeps the battle-tested base. **(recommended default)** - **B.** Build v1.14.9 against system libs (Boost 1.83 + libevent/openssl/BDB4.8) — needs `sudo apt` + likely source patches. - **C.** Base on `1.21-dev` instead — solves the build and adds bech32/Taproot, but means trusting code Dogecoin never released. **Flip to C only if `1.21-dev` builds and passes its test suite cleanly** (checkable). ## Plan / staging (consensus-critical) 1. Build the chosen base; pin the exact commit. 2. Re-apply (BOB) network identity + money + genesis. 3. Port (BOB)'s historical consensus (retarget-by-height, scrypt, reward, AuxPoW@2M, CLTV@2M). **Acid test:** a full sync from genesis reaches the *same tip hash* as the live `/EndTimes:0.14.0` node. Nothing proceeds until that matches. 4. Confirm SegWit+CSV; set a **future** (BOB) activation height. 5. Testnet soak → coordinated mainnet activation (pool, seeds, miners) — a planned fork, far out. 🚨 Consensus-critical: any divergence in historical validation splits the chain. regtest → testnet → sync-audit → long soak before any mainnet activation height is set. ## Status / artifacts - Full spec + staging: `doc/rebase-plan.md` on branch **`feat/modern-core-rebase`**. - Base candidate cloned + feature-checked on the build box; spec constants extracted from source. - **Open decision:** build strategy **A / B / C** above. Next concrete step: build-test `1.21-dev` to settle A-vs-C on evidence.
Author
Member

Done as EndTimes 0.21.2, now in public testing: v0.21.2-beta1. It re-validates the whole chain from genesis to the live tip, agrees with the 0.14.1 daemon on 186 checks across the 2,000,000 forks, and opens 0.14 wallets as they are. SegWit and CSV are in the code but stay switched off until a separate activation decision. Closing at the final release.

Done as EndTimes 0.21.2, now in public testing: [v0.21.2-beta1](https://git.subgenius.finance/SubGeniusFinance/dobbscoin-source/releases/tag/v0.21.2-beta1). It re-validates the whole chain from genesis to the live tip, agrees with the 0.14.1 daemon on 186 checks across the 2,000,000 forks, and opens 0.14 wallets as they are. SegWit and CSV are in the code but stay switched off until a separate activation decision. Closing at the final release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SubGeniusFinance/dobbscoin-source#52
No description provided.