Skip to content

Fix Dogecoin AuxPoW headers parsing - #1334

Merged
NicolasDorier merged 1 commit into
masterfrom
fix/dogecoin-headers-auxpow
Sep 14, 2026
Merged

NicolasDorier merged 1 commit into
masterfrom
fix/dogecoin-headers-auxpow

Conversation

@NicolasDorier

Copy link
Copy Markdown
Collaborator

Dogecoin serializes entries in headers messages as blocks with empty transaction vectors. For AuxPoW blocks this includes the AuxPoW structure between the 80-byte header and the zero transaction count.

Parse DOGE headers through the existing DogecoinBlock serializer so AuxPoW bytes are consumed correctly, while keeping the payload assignable to HeadersPayload. Parsed messages also retain their wire representation for serialization.

Adds an offline regression test with hardcoded header bytes and expected hashes.

Fixes the NBitcoin parsing failure reported in btcpayserver/NBXplorer#562:
btcpayserver/NBXplorer#562

Tested with:
dotnet test NBitcoin.Tests/NBitcoin.Tests.csproj --framework net10.0 --filter "Altcoins=Altcoins" --no-restore --verbosity minimal

@NicolasDorier
NicolasDorier merged commit 0a9c498 into master Sep 14, 2026
10 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