bitcoin-cli: remove unneeded dependencies (only minor code movement) #3320

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2013_11_cli_split changing 13 files +144 −107
  1. laanwj commented at 2:47 PM on November 27, 2013: member

    Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server)

    Build system changes:

    • split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a

    Code changes (movement only):

    • split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp
    • move uiInterface from init.cpp to util.cpp
  2. laanwj commented at 6:21 AM on November 30, 2013: member

    @sipa now using a different solution for HelpMessage, in which I split off the cli part to a seperate function and leave the main part in init.cpp. As added benefit this cleans up the function in init.cpp a lot by only having to consider two instead of three cases.

    If ok, I'l rebase #3332 on top.

  3. gavinandresen commented at 6:53 AM on December 3, 2013: contributor

    Compiling with -DDEBUG_LOCKORDER I get EnterCritical/LeaveCritical undefined compiling bitcoin-cli.

    Maybe sync.cpp needs to be compiled into libbitcoin_common?

  4. laanwj commented at 7:12 AM on December 3, 2013: member

    @gavinandresen thanks for testing

    I think that's indeed the most straightforward solution. There is no functional reason for sync.cpp to be linked into the -cli, as it does not use threading, but I've consciously avoided splitting up util.cpp here (and it's util.cpp that pulls it in).

  5. bitcoin-cli: remove unneeded dependencies (only code movement)
    Remove unnecessary dependencies for bitcoin-cli
    (leveldb, berkelydb, wallet, RPC server)
    
    Build system changes:
    - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and
      libbitcoin_cli.a
    
    Code changes (movement only):
    - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli
      in rpcclient.cpp
    - move uiInterface from init.cpp to util.cpp
    0b47fe6bdc
  6. BitcoinPullTester commented at 8:57 AM on December 3, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/0b47fe6bdc14e942bc886a08a55cc183c6820636 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  7. laanwj commented at 11:01 AM on December 3, 2013: member

    Ok, works with DEBUG_LOCKORDER now.

    Btw: would it be useful to have a configure flag to enable DEBUG_LOCKORDER? Maybe something like --debug-threads?

  8. gavinandresen commented at 11:47 AM on December 3, 2013: contributor

    ACK.

  9. gavinandresen referenced this in commit cf74e8cb5e on Dec 3, 2013
  10. gavinandresen merged this on Dec 3, 2013
  11. gavinandresen closed this on Dec 3, 2013

  12. laanwj deleted the branch on Apr 9, 2014
  13. Bushstar referenced this in commit 581626f23b on Apr 8, 2020
  14. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me