Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: equintana on March 16, 2023, 07:20:22 AM



Title: Had enough of ordinals?
Post by: equintana on March 16, 2023, 07:20:22 AM
Ordinals discussions have been on the table now for some time.
Some may argue that they are beneficial, some see them as harmful,
and some other people don't bother because the incentives mechanisms
and the market will eventually figure out their place in the ecosystem.
I am not going to debate any of these positions.

As a node operator, I have the freedom to choose the bitcoin version running
on my node. Likewise I can choose not to propagate on the network those
transactions that I may consider harmful. It's my choice.

But I am not a bitcoin core developer; today I lack the technical skills to patch
bitcoin-core or tune some parameter that would allow me to control what the
software on my node is doing on my behalf.

Question: is there anyone out there that can illustrate how to remove ordinals
transactions from the mempool of my node?

Thank you.


Title: Re: Had enough of ordinals?
Post by: ABCbits on March 16, 2023, 10:22:56 AM
Question: is there anyone out there that can illustrate how to remove ordinals
transactions from the mempool of my node?

Only for mempool? Use this patch and compile Bitcoin Core from source code, https://gist.github.com/luke-jr/4c022839584020444915c84bdd825831 (https://gist.github.com/luke-jr/4c022839584020444915c84bdd825831). You just need to follow compilation guide from https://github.com/bitcoin/bitcoin/tree/master/doc#building (https://github.com/bitcoin/bitcoin/tree/master/doc#building). But if you don't want to store any Ordinal data on blocks, you should run Bitcoin Core 0.12.1 or other client which doesn't support SegWit which means your node doesn't store any witness data.


Title: Re: Had enough of ordinals?
Post by: Gabrics on March 16, 2023, 12:06:29 PM
I believe this is fairly hard/impossible to do but would be fairly easy from the source of bitcoin core. Assuming of course this is a kind of consensus (eg. enough nodes agree)

On my own I would choose a transaction size based approach like charing 10-100x fee for the top 1x of the transactions?

Ordinals discussions have been on the table now for some time.
Some may argue that they are beneficial, some see them as harmful,
and some other people don't bother because the incentives mechanisms
and the market will eventually figure out their place in the ecosystem.
I am not going to debate any of these positions.

As a node operator, I have the freedom to choose the bitcoin version running
on my node. Likewise I can choose not to propagate on the network those
transactions that I may consider harmful. It's my choice.

But I am not a bitcoin core developer; today I lack the technical skills to patch
bitcoin-core or tune some parameter that would allow me to control what the
software on my node is doing on my behalf.

Question: is there anyone out there that can illustrate how to remove ordinals
transactions from the mempool of my node?

Thank you.


Title: Re: Had enough of ordinals?
Post by: Macadonian on March 16, 2023, 02:09:58 PM
Question: is there anyone out there that can illustrate how to remove ordinals
transactions from the mempool of my node?

Only for mempool? Use this patch and compile Bitcoin Core from source code, https://gist.github.com/luke-jr/4c022839584020444915c84bdd825831 (https://gist.github.com/luke-jr/4c022839584020444915c84bdd825831). You just need to follow compilation guide from https://github.com/bitcoin/bitcoin/tree/master/doc#building (https://github.com/bitcoin/bitcoin/tree/master/doc#building). But if you don't want to store any Ordinal data on blocks, you should run Bitcoin Core 0.12.1 or other client which doesn't support SegWit which means your node doesn't store any witness data.
Is it possible to detect which nodes have applied this patch because I think if every node did it we could remove ordinals and the problems they bring to the Blockchain?


Title: Re: Had enough of ordinals?
Post by: pooya87 on March 16, 2023, 02:42:35 PM
Is it possible to detect which nodes have applied this patch
Not presently but technically it is an easy thing to do. The nodes could modify their user agent (also known as subversion) to indicate their refusal to contribute to the Ordinals Attack. eg. "/Satoshi:24.0.1(NoOrdinals)/"


Title: Re: Had enough of ordinals?
Post by: vjudeu on March 16, 2023, 06:12:43 PM
Quote
Is it possible to detect which nodes have applied this patch
Yes, even some of those who approve ordinals, created some scripts to ban nodes with that filters, because they consider it to be a "censorship": https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2023-February/021487.html


Title: Re: Had enough of ordinals?
Post by: ABCbits on March 17, 2023, 12:23:56 PM
--snip--
Is it possible to detect which nodes have applied this patch because I think if every node did it we could remove ordinals and the problems they bring to the Blockchain?

Theoretically it's possible, but who knows how reliable is it. You can initiate connection with any full node, then send "mempool" message[1] which ask list of unconfirmed transaction. After you obtain the list, you just need to check whether it contains any Ordinals TX. Or just ask Ordinal TX data using "getdata" message[2].

[1] https://developer.bitcoin.org/reference/p2p_networking.html#mempool (https://developer.bitcoin.org/reference/p2p_networking.html#mempool)
[2] https://developer.bitcoin.org/reference/p2p_networking.html#getdata (https://developer.bitcoin.org/reference/p2p_networking.html#getdata)