I knew it was something like those two rules, but can never remember details. Bitmex has a good write up on it iirc
Discussion
Yeah I had to wrangle my LLM into believing my condensed explanation of NAT. It was explaining the algorithm core uses and saying my definition was wrong. Classic junior engineer thinking.
Kinda weird that it doesn't include your own node's system time in the median calculation. 🤔 I wonder if there is a reason for that. Or maybe my LLM is just wrong.
I honestly struggle a bit still understanding how it works, and thinking about it too hard starts to worry grug with fud. Surely it's ungamable with those restrictions 😅
Essentially the NAT calculation excludes your own node's clock time from the consensus. This opens you up to eclipse attacks that warp your node's perception of network time.
If you're eclipsed, though, the much more effective attack is to simply withhold new blocks. But that attack would be obvious. Eclipse attacking the NAT time could be a much more insidious long-range attack, potentially causing you to mine an invalid block.
Pretty interesting but a very far fetched attack vector.