Part of: #24303 Depends on: #24322
This PR:
- Removes
netaddress.cppandasmap.cppfrom the list of_SOURCESnecessary to be linked intolibbitcoinkernel. It does so by splitting offlibbitcoinkernel-used parts oftimedata.cppoff tokernel/timedata.cpp. Although not absolutely necessary at this step (but eventually necessary in stage 1 step 3 of #24303 (text fragment link), we also split off the corresponding declarations off tokernel/timedata.h, and adjust existing dependencies ontimedata.htokernel/timedata.hwherever appropriate. - Similarly splits off
libbitcoinkernel-used parts ofinit/common.cpp(namelyinit::SetGlobals()andinit::UnsetGlobals()) off tokernel/init/common.cpp. Meaning that the rest ofinit/common.cpp(which deals mostly with setting up the logger, which we abstract away in a future PR) will not be linked intolibbitcoinkernel.
Note for libbitcoinkernel reviewers: Changes like these are representative of the changes being done in stage 1 step 2 of #24303 (text fragment link)
Please read the commit messages for more details.