RPC client option: -rpcwait, to wait for server start #3283

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:rpcwait changing 2 files +11 −2
  1. gavinandresen commented at 6:02 AM on November 20, 2013: contributor

    I often want to run RPC command(s) as soon as I've started bitcoind.

    This lets me do that without annoying sleeps or grepping debug.log; e.g.

    bitcoin-cli -rpcwait getinfo
    
  2. RPC client option: -rpcwait, to wait for server start 480e75ceab
  3. BitcoinPullTester commented at 6:16 AM on November 20, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/480e75ceabdf83438023d066ed494c371fcef239 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.

  4. in src/init.cpp:None in 480e75ceab
     252 | @@ -253,6 +253,7 @@ bool static Bind(const CService &addr, unsigned int flags) {
     253 |      if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_CLI)
     254 |      {
     255 |          strUsage += "  -rpcconnect=<ip>       " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n";
     256 | +        strUsage += "  -rpcwait               " + _("Wait for RPC server to start") + "\n";
    


    laanwj commented at 7:32 AM on November 20, 2013:

    Maybe "Wait for RPC server to be available"

  5. laanwj commented at 8:31 AM on November 20, 2013: member

    ACK

  6. gavinandresen commented at 1:57 AM on November 21, 2013: contributor

    Merging because I need this now for some regression tests I'm writing.

  7. gavinandresen referenced this in commit 34f5b0ab93 on Nov 21, 2013
  8. gavinandresen merged this on Nov 21, 2013
  9. gavinandresen closed this on Nov 21, 2013

  10. laanwj commented at 7:06 AM on November 21, 2013: member

    I still think the proposed description would be somewhat better, as it doesn't only wait for start, but also when the server becomes unreachable for other reasons. Oh well...

  11. gavinandresen deleted the branch on Mar 13, 2014
  12. Bushstar referenced this in commit 617c588488 on Apr 8, 2020
  13. 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 18:16 UTC

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