Use notifications.dat for -*notify #460

issue ghost openend this issue on November 1, 2021
  1. ghost commented at 5:11 pm on November 1, 2021: none

    Is your feature request related to a problem? Please describe.

    -startupnotify and -shutdownnotify configuration parameter accept shell commands to be executed after Bitcoin Core starts/shutdown

    One is still WIP and not merged: https://github.com/bitcoin/bitcoin/pull/23395

    This provides options for attackers to target new users of Bitcoin Core and one example which involves some social engineering is explained in https://github.com/bitcoin/bitcoin/pull/23395#issuecomment-956353035

    Describe the solution you’d like

    I am not sure how is this used currently by different users and projects however if reading notifications about start/shutdown is the goal maybe a file with name notifications.dat with below format can help:

    0lastshutdown=1635786273
    1lastrestart=SOMEUNIXTIME
    2currentstate=shutdown
    

    Initially suggested this solution in https://github.com/bitcoin/bitcoin/pull/23395#issuecomment-955775728

    Describe alternatives you’ve considered

    Educate users about misuse of *notify options

  2. unknown added the label Feature on Nov 1, 2021
  3. unknown closed this on Nov 1, 2021

  4. bitcoin-core locked this on Nov 2, 2022


ghost

Labels
Feature


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:20 UTC

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