forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: repair dash-chainstate dist sources #7341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
PastaPastaPasta
merged 1 commit into
dashpay:develop
from
PastaPastaPasta:fix/dash-chainstate-dist-sources
Jun 7, 2026
+5
−13
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1165,7 +1165,8 @@ dash_util_LDADD += $(BOOST_LIBS) | |
| # dash-chainstate binary # | ||
| dash_chainstate_SOURCES = \ | ||
| bitcoin-chainstate.cpp \ | ||
| addressindex.cpp \ | ||
| index/addressindex.cpp \ | ||
| index/addressindex_util.cpp \ | ||
| arith_uint256.cpp \ | ||
| base58.cpp \ | ||
| batchedlogger.cpp \ | ||
|
|
@@ -1206,19 +1207,17 @@ dash_chainstate_SOURCES = \ | |
| evo/specialtxman.cpp \ | ||
| flatfile.cpp \ | ||
| fs.cpp \ | ||
| governance/classes.cpp \ | ||
| governance/common.cpp \ | ||
| governance/exceptions.cpp \ | ||
| governance/governance.cpp \ | ||
| governance/object.cpp \ | ||
| governance/validators.cpp \ | ||
| governance/superblock.cpp \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. governance/superblock.cpp is a replacement for governance/governance.cpp for chainstate, not an addition: - governance/governance.cpp \ |
||
| governance/vote.cpp \ | ||
| governance/votedb.cpp \ | ||
| gsl/assert.cpp \ | ||
| hash.cpp \ | ||
| index/base.cpp \ | ||
| index/blockfilterindex.cpp \ | ||
| index/coinstatsindex.cpp \ | ||
| index/spentindex.cpp \ | ||
| index/txindex.cpp \ | ||
| instantsend/db.cpp \ | ||
| instantsend/instantsend.cpp \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Blocking: dash_chainstate is missing index/addressindex_util.cpp — link will fail with undefined AddressBytesFromScript
The updated source list points at the real
index/addressindex.cpp, but does not include its companionindex/addressindex_util.cpp, which is the sole definition ofAddressBytesFromScript(src/index/addressindex_util.cpp:12). That symbol is used 6 times inindex/addressindex.cpp(lines 211, 232, 254, 313, 341, 368) and 3 times intxmempool.cpp(lines 555, 571, 626), both of which are compiled intodash_chainstate. Becausedash-chainstateis linked from this explicit source list rather than against the server library where the helper is normally pulled in, building with--enable-experimental-util-chainstatewill fail at link time with an unresolvedAddressBytesFromScriptsymbol. The PR fixesmake distdirbut leaves the actual binary unbuildable, so the repair is incomplete. Addindex/addressindex_util.cppnext to the address index source — it is already listed inlibbitcoin_common_a_SOURCES(Makefile.am:540), confirming it is a standalone translation unit. Note: ifspentindex.cpp/timestampindex.cppend up transitively required by chainstate code paths they would need similar treatment, butaddressindex_util.cppis the unambiguous immediate gap.source: ['claude', 'codex']
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved by 7a87bacc5d4cb1d9b5bb3ebf68a9e41ddb7c4fc8 —
_dash_chainstatenow includesindex/addressindex_util.cpp, soAddressBytesFromScriptis provided.Review-system reconciliation based on the latest commit diff.