bitcoin-wallet
dependency on libbitcoin_server.a
ensures wallet code can’t access node global state, avoiding bugs like #15557 (review)
bitcoin-wallet
dependency on libbitcoin_server.a
ensures wallet code can’t access node global state, avoiding bugs like #15557 (review)
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
bumpfee
to include inputs when targeting a feerate by instagibbs)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Pass null Chain interface pointer to CWallet. This is needed to drop
libbitcoin_server dependency and avoid linking node code.
Remove last few instances of accesses to node global variables from wallet
code. Also remove accesses to node globals from code in policy/policy.cpp that
isn't actually called by wallet code, but does get linked into wallet code.
This is the last change needed to allow bitcoin-wallet tool to be linked
without depending on libbitcoin_server.a, to ensure wallet code doesn't access
node global state and avoid bugs like
https://github.com/bitcoin/bitcoin/pull/15557#discussion_r267735431
This ensures wallet code doesn't access node global state, avoiding bugs like
https://github.com/bitcoin/bitcoin/pull/15557#discussion_r267735431
tested ACK.
Cosmetic question/comment: is the proj moving back towards underscores in variables like old school Unix (dust_relay_fee
), or sticking with C++ style lower-cased first letter, and no underscores?
re: #15639#pullrequestreview-225022833
Cosmetic question/comment: is the proj moving back towards underscores in variables like old school Unix
Pretty much yes. It’s documented in the developer notes: https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#coding-style-general