code for blocksonly disagrees with documentation #17294

issue dooglus opened this issue on October 29, 2019
  1. dooglus commented at 12:53 AM on October 29, 2019: contributor

    The docs for blocksonly say that "Transactions from the wallet or RPC are not affected" but the code says:

    if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) {
        LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
    }

    Here's the relevant documentation:

    -blocksonly
       Whether to reject transactions from network peers. Transactions from the
       wallet or RPC are not affected. (default: 0)
    
    -walletbroadcast
       Make the wallet broadcast transactions (default: 1)

    Doesn't that imply that blocksonly does affect transactions from the wallet?

  2. dooglus added the label Bug on Oct 29, 2019
  3. MarcoFalke commented at 1:17 PM on October 29, 2019: member

    Correct. The documentation should be updated.

  4. MarcoFalke added the label Docs on Oct 29, 2019
  5. MarcoFalke added the label good first issue on Oct 29, 2019
  6. MarcoFalke commented at 1:18 PM on October 29, 2019: member

    My bad in fa8ced32a60dea37ac169241cf9a1f708ef46c4b

  7. birtony commented at 3:52 PM on October 29, 2019: none

    Hey, I would be happy to work on this!

  8. birtony cross-referenced this on Oct 29, 2019 from issue doc: Updated -blocksonly documentation by birtony
  9. MarcoFalke cross-referenced this on Dec 4, 2019 from issue Balance is 0 after send transaction in testnet v0.19 and blocksonly flag enabled by webloft
  10. MarcoFalke added the label Up for grabs on Dec 4, 2019
  11. glowang commented at 11:46 PM on March 14, 2020: contributor

    I will work on this!

  12. glowang referenced this in commit aeec15f0f5 on Mar 20, 2020
  13. glowang cross-referenced this on Mar 20, 2020 from issue doc: Update init and reduce-traffic docs for -blocksonly by glowang
  14. fanquake removed the label Up for grabs on Mar 23, 2020
  15. glowang referenced this in commit 1d503e7beb on Mar 25, 2020
  16. glowang referenced this in commit 3019ba95a4 on Mar 25, 2020
  17. glowang referenced this in commit be1b3b94cc on Mar 25, 2020
  18. glowang referenced this in commit 9a7d39bd05 on Mar 25, 2020
  19. glowang referenced this in commit 869327ca6e on Mar 26, 2020
  20. glowang referenced this in commit 408585f8f1 on Mar 29, 2020
  21. MarcoFalke closed this on Mar 29, 2020

  22. bitcoin locked this on Feb 15, 2022
  23. vijaydasmp referenced this in commit 744970234d on Mar 24, 2022
  24. vijaydasmp referenced this in commit 6000028733 on Mar 27, 2022
  25. vijaydasmp referenced this in commit 4f27607598 on Mar 28, 2022
  26. vijaydasmp referenced this in commit e736406c6f on Mar 31, 2022
  27. vijaydasmp referenced this in commit 53cc35017c on Mar 31, 2022
  28. vijaydasmp referenced this in commit 42ddb4546d on Mar 31, 2022
  29. vijaydasmp referenced this in commit 89c3e09c97 on Mar 31, 2022
  30. vijaydasmp referenced this in commit c2269e1670 on Apr 1, 2022
  31. vijaydasmp referenced this in commit 29c78e2f44 on Apr 2, 2022

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-05-20 06:54 UTC