Official bitcoin.conf documentation #7733

issue eriksank opened this issue on March 22, 2016
  1. eriksank commented at 8:33 AM on March 22, 2016: none

    I have been looking everywhere (bitcoin.org and here at github) for the official documentation for the bitcoin.conf file. I could not find it, though. Does this documentation exist?

    I am especially interested in the documentation for the blocknotify and walletnotify fields.

    When do they trigger? In my impression, blocknotify triggers for every block, but I am not sure about walletnotify. Does it trigger for every transaction, or only for transactions mentioning addresses from the wallet? Sometimes it seems to even trigger twice for the same transaction hash.

    Are blocknotify or walletnotify affected in any way by addresses imported through the importaddress RPC function?

  2. jonasschnelli added the label Docs and Output on Mar 22, 2016
  3. jonasschnelli added the label Feature on Mar 22, 2016
  4. jonasschnelli commented at 8:43 AM on March 22, 2016: contributor

    Some people recently discussed this on IRC and a possible solution would be to place a sample bitcoin.conf during the initial datadir creation. The sample bitcoin.conf could contain (#commented out) all relevant options with some explanations.

    It could also be stored under a different filename (bitcoin.sample.con) (some people might say the bitcoin.conf should only be created/controlled by the package maintainers).

  5. achow101 commented at 9:28 PM on March 22, 2016: member

    There is documentation on it on the wiki at https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File but I think it would also be a good idea to have a sample bitcoin.conf file included in the install.

  6. eriksank commented at 6:46 AM on March 23, 2016: none

    https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

    -walletnotify=<cmd>     Execute command when a wallet transaction changes (%s in cmd is replaced by TxID) 
    

    Does this mean: transactions mentioning just wallet addresses or does it also cover imported addresses? There does not seem to be a notification option that would notify for 'any' address (regardless whether it is in the wallet or not)?

  7. sipa commented at 6:55 AM on March 23, 2016: member

    An imported address is considered to be a wallet address.

    -walletnotify will run the command whenever 1) the transaction is first seen (usually when unconfirmed) 2) the transaction is seen in a block.

  8. laanwj commented at 10:51 AM on March 23, 2016: member

    I think you can safely remove 'bitcoin.conf' from the issue title. The project doesn't have any official user documentation at all. (nor anyone volunteering to write such.)

    As usually with open source projects you need to be someone more crafty to find documentation resources. There are some though:

    (and to get a short help message for all bitcoin.conf options, use bitcoind --help)

  9. MarcoFalke commented at 11:59 PM on March 23, 2016: member

    Just to mention for completeness: There is an unmaintained .conf in /contrib/debian/examples/bitcoin.conf

  10. laanwj commented at 10:55 AM on June 22, 2016: member

    Nothing left to be done here, closing.

  11. laanwj closed this on Jun 22, 2016

  12. sapph1re commented at 6:07 AM on May 5, 2020: none

    So as I can see, the issue is closed, and there is a sample bitcoin.conf in the repo with helpful comments, but blocknotify & walletnotify are not even mentioned there? Wouldn't it make sense to mention them? Because so far one can only assume the existence of these features from stackexchange and board discussions, but not from the original repository nor from the available versions of documentation.

  13. MarcoFalke commented at 10:37 AM on May 5, 2020: member

    You can get documentation with bitcoind -?

  14. MarcoFalke commented at 10:38 AM on May 5, 2020: member

    or with the manpages, of course

  15. DrahtBot locked this on Feb 15, 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-04-21 18:15 UTC

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