# Chain Race Dynamics

<figure><img src="/files/daGjtm50dYNuiYZ6KkSJ" alt=""><figcaption></figcaption></figure>

The competition between the honest chain and an attacker's chain can be effectively modeled as a **Binomial Random Walk**. In this model, the success event is characterized by the honest chain being extended by one block, which increases its lead by +1. Conversely, the failure event occurs when the attacker's chain is extended by one block, thereby reducing the gap by -1.

This dynamic can be visualized as follows:

* **Honest Chain**: Each time an honest node successfully mines a block, the lead increases.
* **Attacker's Chain**: Each time the attacker successfully mines a block, the lead decreases.

The block discovery process is inherently random due to the **proof-of-work** mechanism, which means that both honest and dishonest nodes are subject to the probabilities dictated by this process. Each party must engage in a full network proof of work to either extend their chain or reduce the gap.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bitcoin-whitepaper-series/section-11-calculations-bitcoin-whitepaper/chain-race-dynamics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
