-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: bitcoin/bitcoin#24304: [kernel 0/n] Introduce dash-chainstate
#7234
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
base: develop
Are you sure you want to change the base?
Changes from all commits
080496a
bc62f1a
6b9abe4
99d2079
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -148,6 +148,10 @@ if BUILD_BITCOIN_UTIL | |||||||||||||||||
| bin_PROGRAMS += dash-util | ||||||||||||||||||
| endif | ||||||||||||||||||
|
|
||||||||||||||||||
| if BUILD_BITCOIN_CHAINSTATE | ||||||||||||||||||
| bin_PROGRAMS += dash-chainstate | ||||||||||||||||||
| endif | ||||||||||||||||||
|
|
||||||||||||||||||
| .PHONY: FORCE check-symbols check-security | ||||||||||||||||||
| # dash core # | ||||||||||||||||||
| BITCOIN_CORE_H = \ | ||||||||||||||||||
|
|
@@ -1156,6 +1160,164 @@ dash_util_LDADD = \ | |||||||||||||||||
| $(BACKTRACE_LIBS) | ||||||||||||||||||
|
|
||||||||||||||||||
| dash_util_LDADD += $(BOOST_LIBS) | ||||||||||||||||||
|
|
||||||||||||||||||
| # dash-chainstate binary # | ||||||||||||||||||
| dash_chainstate_SOURCES = \ | ||||||||||||||||||
| bitcoin-chainstate.cpp \ | ||||||||||||||||||
| addressindex.cpp \ | ||||||||||||||||||
| arith_uint256.cpp \ | ||||||||||||||||||
| base58.cpp \ | ||||||||||||||||||
| batchedlogger.cpp \ | ||||||||||||||||||
| bech32.cpp \ | ||||||||||||||||||
| blockfilter.cpp \ | ||||||||||||||||||
| bls/bls.cpp \ | ||||||||||||||||||
| bls/bls_worker.cpp \ | ||||||||||||||||||
| chain.cpp \ | ||||||||||||||||||
| chainparamsbase.cpp \ | ||||||||||||||||||
| chainparams.cpp \ | ||||||||||||||||||
| clientversion.cpp \ | ||||||||||||||||||
| coins.cpp \ | ||||||||||||||||||
| compressor.cpp \ | ||||||||||||||||||
| chainlock/clsig.cpp \ | ||||||||||||||||||
| chainlock/chainlock.cpp \ | ||||||||||||||||||
| consensus/merkle.cpp \ | ||||||||||||||||||
| consensus/tx_check.cpp \ | ||||||||||||||||||
| consensus/tx_verify.cpp \ | ||||||||||||||||||
| common/bloom.cpp \ | ||||||||||||||||||
| core_read.cpp \ | ||||||||||||||||||
| dbwrapper.cpp \ | ||||||||||||||||||
| deploymentinfo.cpp \ | ||||||||||||||||||
| deploymentstatus.cpp \ | ||||||||||||||||||
| evo/assetlocktx.cpp \ | ||||||||||||||||||
| evo/cbtx.cpp \ | ||||||||||||||||||
| evo/creditpool.cpp \ | ||||||||||||||||||
| evo/chainhelper.cpp \ | ||||||||||||||||||
| evo/deterministicmns.cpp \ | ||||||||||||||||||
| evo/dmnstate.cpp \ | ||||||||||||||||||
| evo/evodb.cpp \ | ||||||||||||||||||
| evo/netinfo.cpp \ | ||||||||||||||||||
| evo/mnhftx.cpp \ | ||||||||||||||||||
| evo/providertx.cpp \ | ||||||||||||||||||
| evo/simplifiedmns.cpp \ | ||||||||||||||||||
| evo/smldiff.cpp \ | ||||||||||||||||||
| evo/specialtx.cpp \ | ||||||||||||||||||
| evo/specialtx_filter.cpp \ | ||||||||||||||||||
| 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/vote.cpp \ | ||||||||||||||||||
| governance/votedb.cpp \ | ||||||||||||||||||
| gsl/assert.cpp \ | ||||||||||||||||||
| hash.cpp \ | ||||||||||||||||||
| index/base.cpp \ | ||||||||||||||||||
| index/blockfilterindex.cpp \ | ||||||||||||||||||
| index/coinstatsindex.cpp \ | ||||||||||||||||||
| index/txindex.cpp \ | ||||||||||||||||||
| instantsend/db.cpp \ | ||||||||||||||||||
| instantsend/instantsend.cpp \ | ||||||||||||||||||
| init/common.cpp \ | ||||||||||||||||||
| key.cpp \ | ||||||||||||||||||
| key_io.cpp \ | ||||||||||||||||||
| llmq/blockprocessor.cpp \ | ||||||||||||||||||
| llmq/commitment.cpp \ | ||||||||||||||||||
| llmq/context.cpp \ | ||||||||||||||||||
| llmq/debug.cpp \ | ||||||||||||||||||
| llmq/dkgsession.cpp \ | ||||||||||||||||||
| llmq/dkgsessionhandler.cpp \ | ||||||||||||||||||
| llmq/dkgsessionmgr.cpp \ | ||||||||||||||||||
| llmq/options.cpp \ | ||||||||||||||||||
| llmq/quorums.cpp \ | ||||||||||||||||||
| llmq/quorumsman.cpp \ | ||||||||||||||||||
| llmq/signhash.cpp \ | ||||||||||||||||||
| llmq/signing.cpp \ | ||||||||||||||||||
| llmq/snapshot.cpp \ | ||||||||||||||||||
| llmq/utils.cpp \ | ||||||||||||||||||
| logging.cpp \ | ||||||||||||||||||
| netaddress.cpp \ | ||||||||||||||||||
| netbase.cpp \ | ||||||||||||||||||
| node/blockstorage.cpp \ | ||||||||||||||||||
| node/chainstate.cpp \ | ||||||||||||||||||
| node/transaction.cpp \ | ||||||||||||||||||
| kernel/coinstats.cpp \ | ||||||||||||||||||
| masternode/meta.cpp \ | ||||||||||||||||||
| masternode/payments.cpp \ | ||||||||||||||||||
| masternode/sync.cpp \ | ||||||||||||||||||
| messagesigner.cpp \ | ||||||||||||||||||
| merkleblock.cpp \ | ||||||||||||||||||
| node/interface_ui.cpp \ | ||||||||||||||||||
| policy/feerate.cpp \ | ||||||||||||||||||
| policy/fees.cpp \ | ||||||||||||||||||
| policy/packages.cpp \ | ||||||||||||||||||
| policy/policy.cpp \ | ||||||||||||||||||
| policy/settings.cpp \ | ||||||||||||||||||
| pow.cpp \ | ||||||||||||||||||
| protocol.cpp \ | ||||||||||||||||||
| primitives/block.cpp \ | ||||||||||||||||||
| primitives/transaction.cpp \ | ||||||||||||||||||
| pubkey.cpp \ | ||||||||||||||||||
| random.cpp \ | ||||||||||||||||||
| randomenv.cpp \ | ||||||||||||||||||
| saltedhasher.cpp \ | ||||||||||||||||||
| scheduler.cpp \ | ||||||||||||||||||
| script/interpreter.cpp \ | ||||||||||||||||||
| script/script.cpp \ | ||||||||||||||||||
| script/script_error.cpp \ | ||||||||||||||||||
| script/sigcache.cpp \ | ||||||||||||||||||
| script/standard.cpp \ | ||||||||||||||||||
| spork.cpp \ | ||||||||||||||||||
| shutdown.cpp \ | ||||||||||||||||||
| support/cleanse.cpp \ | ||||||||||||||||||
| support/lockedpool.cpp \ | ||||||||||||||||||
| sync.cpp \ | ||||||||||||||||||
| timedata.cpp \ | ||||||||||||||||||
| txdb.cpp \ | ||||||||||||||||||
| txmempool.cpp \ | ||||||||||||||||||
| uint256.cpp \ | ||||||||||||||||||
| util/asmap.cpp \ | ||||||||||||||||||
| util/bytevectorhash.cpp \ | ||||||||||||||||||
| util/check.cpp \ | ||||||||||||||||||
| util/getuniquepath.cpp \ | ||||||||||||||||||
| util/hasher.cpp \ | ||||||||||||||||||
| util/message.cpp \ | ||||||||||||||||||
| util/moneystr.cpp \ | ||||||||||||||||||
| util/ranges_set.cpp \ | ||||||||||||||||||
| util/serfloat.cpp \ | ||||||||||||||||||
| util/settings.cpp \ | ||||||||||||||||||
| util/sock.cpp \ | ||||||||||||||||||
| util/string.cpp \ | ||||||||||||||||||
| util/strencodings.cpp \ | ||||||||||||||||||
| util/syserror.cpp \ | ||||||||||||||||||
| util/system.cpp \ | ||||||||||||||||||
| util/thread.cpp \ | ||||||||||||||||||
| util/threadinterrupt.cpp \ | ||||||||||||||||||
| util/threadnames.cpp \ | ||||||||||||||||||
| util/time.cpp \ | ||||||||||||||||||
| util/tokenpipe.cpp \ | ||||||||||||||||||
| validation.cpp \ | ||||||||||||||||||
| validationinterface.cpp \ | ||||||||||||||||||
| versionbits.cpp \ | ||||||||||||||||||
| warnings.cpp | ||||||||||||||||||
| dash_chainstate_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS) | ||||||||||||||||||
| dash_chainstate_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | ||||||||||||||||||
| dash_chainstate_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS) | ||||||||||||||||||
| dash_chainstate_LDADD = \ | ||||||||||||||||||
| $(LIBBITCOIN_CRYPTO) \ | ||||||||||||||||||
| $(LIBUNIVALUE) \ | ||||||||||||||||||
| $(LIBSECP256K1) \ | ||||||||||||||||||
| $(LIBDASHBLS) \ | ||||||||||||||||||
| $(LIBLEVELDB) \ | ||||||||||||||||||
| $(LIBLEVELDB_SSE42) \ | ||||||||||||||||||
| $(LIBMEMENV) | ||||||||||||||||||
|
|
||||||||||||||||||
| # Required for obj/build.h to be generated first. | ||||||||||||||||||
| # More details: https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html | ||||||||||||||||||
| bitcoin_chainstate-clientversion.$(OBJEXT): obj/build.h | ||||||||||||||||||
|
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.
The dependency is attached to Useful? React with 👍 / 👎. |
||||||||||||||||||
| # | ||||||||||||||||||
|
Comment on lines
+1318
to
1321
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. 🟡 Suggestion: obj/build.h dependency rule uses old upstream target name Because 💡 Suggested change
Suggested change
source: ['claude'] 🤖 Fix this with AI agents |
||||||||||||||||||
|
|
||||||||||||||||||
| # dashconsensus library # | ||||||||||||||||||
|
|
||||||||||||||||||
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.
🟡 Suggestion: dash_chainstate_LDADD references undefined variable LIBLEVELDB_SSE42
LIBLEVELDB_SSE42is not defined anywhere in the tree.src/Makefile.leveldb.includeonly definesLIBLEVELDB = $(LIBLEVELDB_INT) $(LIBCRC32C)andLIBMEMENV; a grep forLIBLEVELDB_SSE42finds only this LDADD line. Make silently expands an unset variable to empty so this is dead text rather than a build failure today, but it is misleading (implies SSE4.2 acceleration is being linked when it isn't) and would silently pick up content if that variable is later defined for an unrelated purpose. Drop the line, or define it explicitly inMakefile.leveldb.includeif SSE4.2-accelerated leveldb is actually intended.💡 Suggested change
source: ['claude']
🤖 Fix this with AI agents