Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 5
Generated: 22:47:16
> Aren't you also against inscriptions? Yes > Shouldn't knots also filter inscriptions? Yes > Maybe it does that already, I don't know It filters inscriptions that are larger than 83 bytes I would prefer it to filter all of them, but filtering the big ones is a decent start
2025-10-30 19:44:45 from 1 relay(s) ↑ Parent 1 replies ↓
Login to reply

Replies (5)

I think so. Here is the relevant code snippet: https://github.com/bitcoinknots/bitcoin/blob/eeb9cc1120661d0e9fd28ddb6fef2c04992a4666/src/script/script.cpp#L329 It is a function called DatacarrierBytes and I don't know c++ all that well but it appears to match transactions containing OP_FALSE OP_IF or OP_RETURN, and counts the number of bytes they carry as a payload. I assume this function gets called wherever the data arrives filter is applied, which I suppose is probably in policy.cpp -- though I haven't checked
2025-10-31 15:20:39 from 1 relay(s) ↑ Parent 1 replies ↓ Reply