# Ephemeral Anchors and MEVil

**URL:** <https://delvingbitcoin.org/t/ephemeral-anchors-and-mevil/383>\
**Category:** Protocol Design\
**Tags:** mempool\
**Created:** [January 8, 2024, 5:11pm UTC](https://delvingbitcoin.org/t/ephemeral-anchors-and-mevil/383 "2024-01-08T17:11:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![instagibbs](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/instagibbs/32/28_2.png) [@instagibbs](https://delvingbitcoin.org/u/instagibbs)\
**Post date:** [January 23, 2024, 5:15pm UTC](https://delvingbitcoin.org/t/ephemeral-anchors-and-mevil/383/8 "2024-01-23T17:15:37Z")

</div>

Thinking more about how precisely this would be implemented as I think this can be made simpler, but posting my draft to give the idea:

> [@ajtowns](#):
>
> That diagram doesn’t make sense to me: all the txs pay a non-zero fee, so presumably none of them have ephemeral anchor outputs?

Ok everything I said was wrong in last post; I think it all works. Let me try again with diagrams which I should have been making earlier:

When an ephemeral anchor spend is evaluated against `TxA`:

```mermaid
flowchart TD
    A[TxA: fee 0\nsize 300\n1000 sats in anchor] --> B[TxB: fee 1100\nsize 200]

```

We simulate/induce an RBF against a 65byte OP\_RETURN tx:

```mermaid
flowchart TD
    A[TxA: fee 0\nsize 300\n1000 sats in anchor] --> C[TxC: fee 1000\nsize 65\npure burn]

```

which results in a diagram check:

 ![image](https://delvingbitcoin.org/uploads/default/original/1X/722217ece5a8b0835b09d3c00cc6827711b339b7.png)

As you can see, even though the total fees are higher, it doesn’t dominate the pure burn, so it would be rejected. The “pure burn” case would of course be accepted, since we would not be doing an incremental relay check.

If instead the proposed spend looked like:

```mermaid
flowchart TD
    A[TxA: fee 0\nsize 300\n1000 sats in anchor] --> B[TxB: fee 1400\nsize 200]

```

we get:

 ![image](https://delvingbitcoin.org/uploads/default/original/1X/39c288ca0e1c1da5eb1946bfedffb9dc0b6dbca1.png)

and this would be accepted.

---

_[View the full topic](https://delvingbitcoin.org/t/ephemeral-anchors-and-mevil/383)._
