header-langage
简体中文
English
Tiếng Việt
Scan to Download the APP
Partnered With:

Welcome to the age of Flashbot, why did it open Pandora's box?

Read this article in 4 Minutes
Why I think the development of Flashbot is not good

Original title: "Welcome to the Age of Flashbot"
Original source: chives


Flashbot? The mechanism of whether transactions are packaged and the ordering of transactions in packages. In a nutshell: Some traders profit by controlling the order of transactions and whether they occur by deliberately sending low-gas transactions that will not be included by other mining pools and conducting off-exchange transactions with a specific mining pool.


Typical applications of Flashbot and why it opened Pandora's box


Arbitrage


The current main application of Flashbot is to carry out sandwich trading, that is, by controlling some illiquid The trading pair makes the two transactions double-team the transaction of a general trader. The two transactions are bought at a low price and sold at a high price in sequence, causing the trader who is double-teamed to suffer losses. In addition, double-team transactions can also be used to attack certain smart contract vulnerabilities (especially those involving randomness).


Pandora's Box


Although it was possible to carry out pinching transactions by increasing the gas, or by purchasing computing power for similar attacks, all traders in the former are still on the same level, while the cost of the latter is too high (the cost of purchasing computing power that can effectively attack Very large)
The above attack only utilizes Flashbot’s ability to control packaged transactions, and Flashbot can of course be used to prevent other people’s transactions from being packaged, or it can go a step further, judging whether a specific transaction is beneficial in the mining pool based on the accepted transaction . If this happens, all on-chain traders will be threatened by Flashbot traders. Therefore, all trades that may be profitable for the Flashbot trader must also use the Flashbot trade auction, thereby accelerating the profitability of the Flashbot trader.
Currently, only a mining pool known for destroying the ecology of the chain has adopted Flashbot, but because of the characteristics of Flashbot transactions, if other mining pools do not use Flashbot, it is equivalent to receiving losses (Flashbot traders lower the average gas value) .
Moreover, Flashbot transactions comply with the consensus mechanism, so that this behavior will not be restricted by the blockchain mechanism, so as long as a verifier accounts for a large enough proportion of the block (several percentage points are enough), it can be done , without the need for a 51% attack, in other words, Flashbot is a weaker 51% attack.


Countermeasures


Frankly speaking, there is currently no effective way to stop the Flashbot "plague "The spread of the virus, the measures seen so far are to counterattack by exploiting the weaknesses of robot programming.


Contract blacklisting address/deducting currency


Currently, there is already a way to use this method from A wild case of Flashbot traders making profits. There are two ways to implement this type of operation:


  1. Use the attack Flashbot to detect liquidity Contract
    The contract author uses the code that is beneficial to the creator, so that the Flashbot trader is locked after the transaction, so that he has to lose money to exit.
  2. Block the block producer
    The contract author can detect the block producer of this block, and read the transaction gas and the recent average gas value. If a suspected Flashbot attack is detected, the transaction will fail, or more Further, Flashbot user transactions are deducted.

But obviously under the PoS consensus mechanism, miners can easily transfer the block address to avoid the address being blocked.


Hash Locking Mechanism


Simply speaking, this mechanism turns the trading market into a T+n one, thereby preventing specific preemptive behavior in a broad sense, but the price it brings is also very obvious.


This mechanism is inspired by the Tick mechanism in some strategy games. In these games, in order to prevent the other party from faking the delay, all traders must first exchange actions The hash value, and then send out the action content, thereby preventing profit from predicting the other party's actions. If the action and the pre-submission hash are inconsistent, it proves that the player has performed an illegal operation.


Network


< p>The network can reduce the negative impact of Flashbot through a certain mandatory transaction packaging or sorting mechanism, but this cannot completely solve the problem.
The PoS mechanism can also provide a certain degree of resistance, because voters can oppose FLashbot behavior, and verifiers can hardly change addresses after being blocked.




Welcome to join the official BlockBeats community:

Telegram Subscription Group: https://t.me/theblockbeats

Telegram Discussion Group: https://t.me/BlockBeats_App

Official Twitter Account: https://twitter.com/BlockBeatsAsia

举报 Correction/Report
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit