<ol>
<li>-alertnotify is only used by validation.cpp::AlertNotify</li>
<li>validation.cpp::AlertNotify is only used by validation.cpp::DoWarning</li>
<li>validation.cpp::DoWarning is only used by validation.cpp::CChainState::UpdateTip, for rules, not for forks or for alerts.</li>
</ol>
<p>Because 1. and 2. and 3., there is no &quot;long&quot; at all. The RPC command help is obsolete.</p>

CC BY-SA 4.0
2022-06-11T20:56:24.637Z
2022-06-11T20:56:24.637Z
Mercedes
<pre><code>  -alertnotify=&lt;cmd&gt;
       Execute command when a relevant alert is received or we see a really
       long fork (%s in cmd is replaced by message)
</code></pre>
<p>How long is &quot;a really long fork&quot;?</p>

<bitcoin-core><blockchain-fork><alert-system>
alertnotify: how long is long?
Mercedes
# alertnotify: how long is long?

(Asked by: username_0 on 2022-03-13)

```
  -alertnotify=<cmd>
       Execute command when a relevant alert is received or we see a really
       long fork (%s in cmd is replaced by message)

```

How long is "a really long fork"?

**Tags:** bitcoin-core, blockchain-fork, alert-system


---

## 1 answers

### Answer by username_0 on 2022-06-11. Score: 0 | Accepted answer

1. -alertnotify is only used by validation.cpp::AlertNotify
2. validation.cpp::AlertNotify is only used by validation.cpp::DoWarning
3. validation.cpp::DoWarning is only used by validation.cpp::CChainState::UpdateTip, for rules, not for forks or for alerts.

Because 1. and 2. and 3., there is no "long" at all. The RPC command help is obsolete.


---

