Rebase (BOB) Core onto modern Dogecoin Core for SegWit+CSV (unblock native XMR↔(BOB) atomic swap) #52
Labels
No labels
do-not-open-till-X-Day
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SubGeniusFinance/dobbscoin-source#52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
safe because SegWit fixes txid malleability. Hard requirement.
OP_CHECKSEQUENCEVERIFY) — the in-script relative timelocks.Findings (verified against source + the live mainnet node, 2026-11-14)
version-bits (
versionbits.cppabsent), nobech32.cpp, no SegWit code (CTxWitness,IsWitnessProgram, witness serialization all absent). CSV opcode exists but is notconsensus-enforced.
1024,1,1.→ LWMA-3 @1,888,808 (active). Block spacing 10 min until 68425, 2 min since.
HARDFORK_CLTV_MAINandHARDFORK_AUXPOW_MAIN— CLTV + AuxPoW activate together. SegWit is NOT in this bundle.a0fb1783, port19985, base58 prefixes0/5/128+ BTC ext keys,genesis
nTime 1389086657 / nBits 0x1e0ffff0 / nNonce 2084524493, 13 mainnet checkpoints(last
1,848,000), AuxPoW chain-id0x00B0.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
1.21-devb2bootstrap fails on modern GCCBuild blocker (decision needed)
Doge Core v1.14.9's
dependspins Boost 1.63, whose Boost.Build engine won't compile on a modernGCC. Options:
sudo apt+ likely source patches.1.21-devinstead — solves the build and adds bech32/Taproot, but means trusting code Dogecoin never released. Flip to C only if1.21-devbuilds and passes its test suite cleanly (checkable).Plan / staging (consensus-critical)
Acid test: a full sync from genesis reaches the same tip hash as the live
/EndTimes:0.14.0node. Nothing proceeds until that matches.🚨 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
doc/rebase-plan.mdon branchfeat/modern-core-rebase.1.21-devto settle A-vs-C on evidence.
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.