mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
Add ChainstateManager::m_adjusted_time_callback
This decouples validation.cpp from netaddress.cpp (transitively, timedata.cpp, and asmap.cpp). This is important for libbitcoinkernel as: - There is no reason for the consensus engine to be coupled with netaddress, timedata, and asmap - Users of libbitcoinkernel can now easily supply their own std::function that provides the adjusted time. See the src/Makefile.am changes for some satisfying removals.
This commit is contained in:
@@ -877,7 +877,6 @@ libbitcoinkernel_la_SOURCES = \
|
||||
init/common.cpp \
|
||||
key.cpp \
|
||||
logging.cpp \
|
||||
netaddress.cpp \
|
||||
node/blockstorage.cpp \
|
||||
node/chainstate.cpp \
|
||||
node/coinstats.cpp \
|
||||
@@ -906,11 +905,9 @@ libbitcoinkernel_la_SOURCES = \
|
||||
support/lockedpool.cpp \
|
||||
sync.cpp \
|
||||
threadinterrupt.cpp \
|
||||
timedata.cpp \
|
||||
txdb.cpp \
|
||||
txmempool.cpp \
|
||||
uint256.cpp \
|
||||
util/asmap.cpp \
|
||||
util/bytevectorhash.cpp \
|
||||
util/check.cpp \
|
||||
util/getuniquepath.cpp \
|
||||
|
||||
Reference in New Issue
Block a user