Skip to content

context: move context definitions into dogecoin/context.h - #396

Open
edtubbs wants to merge 1 commit into
dogecoinfoundation:0.1.5-devfrom
edtubbs:0.1.5-dev-context-header
Open

context: move context definitions into dogecoin/context.h#396
edtubbs wants to merge 1 commit into
dogecoinfoundation:0.1.5-devfrom
edtubbs:0.1.5-dev-context-header

Conversation

@edtubbs

@edtubbs edtubbs commented Aug 4, 2026

Copy link
Copy Markdown
Member

Adds include/dogecoin/context.h so src/context.c and test/context_tests.c no longer include the public dogecoin/libdogecoin.h API header, removes the duplicate SEED typedef and fixes nested comment markers in libdogecoin.h.

Adds include/dogecoin/context.h so src/context.c and test/context_tests.c
no longer include the public dogecoin/libdogecoin.h API header, removes the
duplicate SEED typedef and fixes nested comment markers in libdogecoin.h.

@xanimo xanimo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

tested on x86_64-pc-linux-gnu with 78/78 WITH_NET=ON, 72/72 OFF, no warnings.

SEED removal safe — dogecoin.h:212/234, installed, included by libdogecoin.h:36
Comment fixes cosmetic
context.c swap corrects a latent type mismatch: two dogecoin_chainparams layouts (2136 vs 2236, default_port at offset 84 vs 116). context.c never dereferenced a field, so nothing was misread.
Unfixed, separate issue: libdogecoin.h still exports dogecoin_chainparams_main with the 2136 layout.

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.

2 participants