Tay 💖 Profile picture
Aug 16, 2021 25 tweets 6 min read Read on X
So @blocknative has been looking closely at EIP-1559 vs legacy txs since this question & one thing I learned from the discussions absolutely blew my brain up:

Since EIP-1559 there are often a large number of transactions sitting in the tx pool EVEN WHEN BLOCKS ARE NEARLY EMPTY.
Say whaaaa?! That must be a bug, right? Or are miners just mining empty blocks for shits and giggles? It’s not always the case, right?

No. No. Wrong.

This is actually…er…the design.

Big brains may see it already but if you have a brain like mine, I’ll walk you thru it. 😁
Note:
- Type 2 = EIP-1559 transactions
- Type 0 = legacy, gas price transactions
- Effective Fee = aka effective tip (see attached). how much the miner will get from the tx. how txs are sorted in a node’s tx pool. presumably the order txs are included in.
The data @blocknative pulled today shows that Type 2 transactions were included in a block ~40% faster than Type 0 transactions.

HOWEVER, Type 0’s had a 23.5% *higher* Effective Fee than Type 2’s.

Whoa. Image
This is even more startling because the @blocknative data from last week showed Type 2’s being included 24% faster than Type 0’s even though Type 2’s only had a 6% higher effective fee. Image
Does this mean miners are more willing to include Type 2 transactions than Type 0? 🤷‍♀️

Does it mean using a Type 2 transaction has an effect on the time it takes for you to be included? 🤷‍♀️ Image
One difference between now and before the hard fork is the “time til inclusion” datapoint means something slightly different.

Before, every transaction had the ability to be included in a block. Price competition was what prevented/delayed inclusion.
Now, only transactions that have an effective price > 0 can be included.

In other words, if your tx’s max fee/gas price is less than the current base fee, it CANNOT be included in a block.

The price competition applies to transactions that *can* be included [1]

[1] sort of…
One reason Type 2’s may be included faster is because the wallets and code and humans pricing a Type 2 tx do so with consideration of the base fee (e.g. using a max fee that is 2x the current base fee.)

Type 0’s pricing strategy may be more like “~current base fee”
Example:

Current base fee = 40, increases to 42 while you’re sending.

Type 2: max=80, priority=1 -> effective price=1

Type 0: gas price=40 -> max=40, priority=40 -> 0/CANNOT BE INCLUDED

[1] “sort of” bc even when base fee returns to 40, Type 0 still has effective fee=0
This is glaringly obvious to some brain-types but I took a minute to really grok this. It makes sense, it’s just a battle realizing “priority=40” means absolutely nothing here…and that *ALL* underpriced txs have an effective price of “0” the moment they become not-underpriced 🤯
The discrepancies in time til inclusion across types may be simply bc we are comparing apples to oranges.

Or there could be something else. I don’t think the fact Type 0s may happen to be less likely to be able to be included fully explains the discrepancy.

Chime in big brains.
So back to the beginning:

Since EIP-1559 there are often a large number of transactions sitting in the tx pool EVEN WHEN BLOCKS ARE NEARLY EMPTY.

Do you see why now?
Because they can’t be included in the block because the current base fee is higher than their max fee! They are underpriced. Duh!

It’s by design.

Again, it makes total sense and yet is still weird af, imho. This next bit really boggled my brain though.😊
Imagine you have a pile of transactions in the tx pool that all have a max fee/gas price of 1-10 gwei. NO new txs are being sent. Just pretend.

Block 1: 100% full of 10 gwei txs

Base fee📈to 11

Block 2: There's no 11 gwei txs, therefore block is empty.

Base fee📉to 10 gwei.
Block 3: There's no 10 gwei txs. The block is empty.

Base fee📉to 9 gwei.

Block 4: Block gets 100% filled with 9 gwei txs.

Base fee📈to 10 gwei.

Block 5: There are no 10 gwei txs. Block empty.

Base fee📉to 9 gwei.

Block 6: There are no 9 gwei txs. Block empty.
Base fee📉to 8 gwei.

Block 7: Block gets 100% filled with 8 gwei txs.

Base fee📈to 9 gwei.

Block 8: There are no 9 gwei txs. Block empty.

Base fee📉to 8 gwei.

Block 9: There are no 8 gwei txs. Block empty.

Base fee📉to 7 gwei.
See the pattern?

Every time the base fee moves down a step, it shoots back up. Then it must move back down two steps in order to clear out the next-lowest step.

Before EIP-1559, three blocks would clear out three “steps”

After, three blocks clear out one “step”
Obvs, reality is WAY messier. Fees being used have huge amts of decimals and blocks can be 78.23% or 15.23% full.

But it means that, at times, the base fee can shoot up rapidly but fall more slowly and more stutter-y. Esp. bc in reality, people are always sending new TXs.
Another thing this imaginary example shows is that if you send using 2x the base fee (Type 2 txs), you can (and will) be included in any of the above imaginary example blocks.

If you send using the current base fee (some Type 0 txs), you can’t be included in all of them.
Put another way, a new TX entering the pool that uses current base fee as the gas price results in the TX competing for space with TXs already in the pool.

While 2x base-fee TX’s have moments where they are included bc they are one of the only txs that isn’t underpriced.
NOTE: the last few tweets are looking at how things play out in one of many multi-block scenarios…specifically a completely imaginary multi-block scenario. Do not change how you transact based on this lol i am not painting a full story.
One general takeaway from all this is that while the onchain/inpool data today is showing discrepancies between Type 0 & Type 2 txs, I suspect the discrepancies have less to do with the actual transaction type and more to do with how each transaction type happens to be crafted.
Namely, Type 0’s (most often) use estimate api’s which don’t directly know the current base fee. While Type 2’s (most often) pad the current base fee.

So, will using a Type 2 tx will get you mined faster than a Type 0?
Data says yes.

I say it prob depends on how you price it.

Which means it’s prob “yes” for average joe switching to EIP-1559 wallet from a legacy wallet.

But, again, prob not just bc it’s a Type 2.

Also you prob aren’t average joe if you made it to the end of this thread 😉

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tay 💖

Tay 💖 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @tayvano_

Jul 8
Crypto folks (hopefully) already know that Lazarus is one of the most prevalent threat actors targeting this industry.

They rekt more people, companies, protocols than anyone else.

But it's good to know exactly how they get in. Bc another smart contract audit won't save you.
For example, one long-time fave method:
- Contact employee via social/messaging app
- Direct them to a Github for a job offer, "skills test," or to help with a bug
- Rekt individual's device
- Gain entry to company's AWS
- Rekt company (and their users)

cloud.google.com/blog/topics/th…
Image
With permission, I’m sharing a recent convo that led to $2m+ stolen so you can see how this DPRK crew (TraderTraitor) is operating today.

These convos are pretty rare to see. Thefts occur months later, so very few uncover how the initial entry was made.

cisa.gov/news-events/cy…Image
Read 14 tweets
Jun 19
Txn History Deposit 1

0x5a7732d8710af819dd16c82d38ed4385e137285c

0xce7d8feb6f4a88f4a2694beb8f92be6a1670d3a8fa243ab3416b46f4576d3fc5

0x8cd115e1d45dc80894204244a2749cb7cdb7ac7b14cf9809cac19714d3626bfc

0xa119fd1efd639fde5837566dfd843ba401825702e7694ce1591194b2b98297ae

0x0dea174d7bd9f6e978b98e6e1d0a0f1fc22d90f82f35537b1754d3f73652f1d6

0xa2bd92a528ffc2cb66f7317ff9e6ad55f094112e2937980c8b782d052d22dc76

0x886f187b7f3929032072a98160dac084d02a0ce62b556c64140d76f399d4922d

0x9d661a1d89613e2fa53a9ca63ad64db5401cde7d70f4eefb883724b0f1a57a31

0x1dbc11b50913f8633c049072428f4db0cce4d38cabe6087afc472c6668f5dc1a

0xa3a4a5878da0240cf0dbcb1b68bde88b877ed2c0c2390d000f796cda2c579af9

0xa158192d24ca8fa79c95fa52f8c3d564e8f6304bacea9c9dfca440d7da33ddf7

0xa7285a96eb95dd76ce129f063424679a6d465b7b9a284cdac528405c75ce8393

0x3dd977a7b2edbbe629a8bab9a9b3f0ccf253ea12e31c6f748ddac9e025167e67
Read 20 tweets
Apr 10
🧵Highlights from the UN Security Council's 2023 report on DPRK

This one was a whopping 615 pages 😳

These reports are always like a birds eye view of random, raw, deep intel. They're amazing and shed light on attribution, irl banking networks, etc.

un.org/securitycounci…
re: MaybachsImage
Image
Image
Read 25 tweets
Jan 1
Orbit Bridge Hack looking v methodical 👀

Looks like 2024 is going to be another year of handing DPRK billions of dollars on a silver platter. 🙄

embarrassing af. Image
Attacker
0x9263e7873613ddc598a701709875634819176aff

Funds Holders
0x009b60aab8e64c8f5fe449bd96fa78b1a7fffcc5
0x3a886a63c768665a9830886e608d6f9dc6b4f730
0x817bb1761b715a08a9142f99fa7d0ccf73f4c0ef
0x157a409c2bfff38209a32e55d3eac1bfc93dd664
0x5e22cb028865d6a93080d7ab42d2fe9a0e8dc085
0xd283fa3bd85887725c8982f539cc404a450f7fd9
0xf49de491e1c0d84a0e0bd2d57a841825fcf179fd
0x589257e07e11e761f31956d54b2323f63ee36b7d

Receivers
0x009b60aab8e64c8f5fe449bd96fa78b1a7fffcc5
0x3a886a63c768665a9830886e608d6f9dc6b4f730
0xa70f8917a957757f5505a5535df1591c54f65b9d
0x9ca536d01b9e78dd30de9d7457867f8898634049
0xdadfa3ccd40fc3d5a0164c6f9444f60163ccbf3b

Intermediaries
0x0c43edeb2ee69c27d689e912ab5b8e8eef128d4c
0x42839f4423985b5ef989498b0605b1dcca8f0df1
0xe03d37392255fd1dae5476b04388315cc70b78c2

Attacker Funder (from TC)
0x70462bfb204bf3ccb0560f259072f8e3a85b3512

Instaswapper Depo from Attacker
0xbad82ca05bd3d40b783d39e52abc1446f33aae12

Instaswapper Receiver on XRP
rN7EFW25YcGG6nzRY4W7TbX5tRyngW1Dj1
happy new year
Read 9 tweets
Jul 10, 2023
When it comes to financial crime, money laundering, etc. everyone goes thru a phase of thinking that the solution is knowing the identity of the account holder.

"if only we knew who moved these assets! then we would be able to catch them and stop crime!"

N O .
Literally NO.

It doesn't work at any scale. It's never worked at any scale. It never will work at any scale.

AML laws and all the related shit don't stop crime or money laundering. And it never has.

And it's really important to note that the implementation is NOT the issue.
The laws are *designed* to detect and block people from accessing the financial system.

And they do exactly that. Really well. So well in fact that like 1/4th of the world's population doesn't have a basic ass bank account.

And the impact of this is horrifying.
Read 30 tweets
Jun 14, 2023
A thread of misc. interesting things related to the Atomic Wallet hack, Lazarus, and especially what sprawling hacks look like on-chain.

(this thread is gunna get into the weeds. i suggest the other thread if you want something shallow and easy-to-digest 😉)
On Fri June 2nd, thousands of Atomic Wallet users had their wallets drained across basically every chain.

Each theft involved 1-3 new addies. Initially we were only able to link thefts on-chain if they sent gas to multiple addresses.

(green guys are what we put alerts on first) Image
The lack of consolidation means the majority of addresses collected so far came direct from users sharing their info w/ folks like @zachxbt or w/ Atomic, @elliptic, @SlowMist, etc.

We have no idea how complete our lists are currently, or how long the long tail will be.
Read 23 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(