Wednesday, June 10, 2026
The BLOCKCHAIN Page
No Result
View All Result
  • Home
  • Cryptocurrency
  • Blockchain
  • Bitcoin
  • Market & Analysis
  • Altcoins
  • DeFi
  • Ethereum
  • Dogecoin
  • XRP
  • Regulations
  • NFTs
The BLOCKCHAIN Page
No Result
View All Result
Home Ethereum

Transaction spam attack: Next Steps

by admin
December 3, 2023
in Ethereum
0
Dodging a bullet: Ethereum State Problems
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


At this time the community was attacked by a transaction spam assault that repeatedly known as the EXTCODESIZE opcode (see hint pattern here), thereby creating blocks that take as much as ~20-60 seconds to validate because of the ~50,000 disk fetches wanted to course of the transaction. The results of this was a ~2-3x discount within the price of block creation whereas the assault was going down; there was NO consensus failure (ie. community fork) and neither the community nor any consumer at any level totally halted. The assault has since, as of the time of this writing, largely halted, and the community has in the interim recovered.

The short-term repair is for customers, together with miners, enterprise customers (together with exchanges) and people to run geth with the flags:

–cache 1024 –targetgaslimit 1500000 –gasprice 20000000000

Or Parity with the flags:

–cache-size-db 1024 –gas-floor-target 1500000 –gasprice 20000000000 –gas-cap 1500000

This (i) will increase the cache dimension, lowering the variety of disk reads that nodes must make, and (ii) votes the gasoline restrict down by ~3x, lowering the utmost processing time of a block by the same issue.

Within the medium time period (ie. a number of days to per week), we’re actively engaged on a number of fixes for the Go consumer that ought to each present a extra steady decision for the current concern and mitigate the danger of comparable assaults, together with:

  • A change to miner software program that robotically briefly cuts the gasoline restrict goal by 2x when the miner sees a block that takes longer than 5 seconds to course of, permitting for changes just like what was coordinated in the present day to occur robotically (see here for a pull request; word that this can be a miner technique change and NOT a smooth fork or arduous fork)
  • Numerical tweaks to cache settings
  • Including extra caches
  • Including a further cache for EXTCODESIZE particularly (as it’s seemingly that EXTCODESIZE reads are a number of occasions slower than different IO-heavy operations because the contracts which might be being learn are ~18 KB lengthy)
  • An on-disk cache of state values that enables them to be extra rapidly (ie. O(log(n)) speedup) accessed

We’re additionally exploring the choice of changing the leveldb database with one thing extra performant and optimized for our use case, although such a change wouldn’t come quickly. The Parity workforce is engaged on their very own efficiency enhancements.

In the long run, there are low-level protocol modifications that will also be explored. For instance it might be smart so as to add a function to Metropolis to extend the gasoline prices of opcodes that require reads of account state (SLOAD, EXTCODESIZE, CALL, and so on), and particularly learn operations that learn exterior accounts; rising the gasoline price of all of those operations to a minimum of 500 would seemingly be ample, although care would have to be taken to keep away from breaking present contracts (eg. concurrently implementing EIP 90 would suffice).

This could put a a lot decrease higher sure on the utmost variety of bytes {that a} transaction could learn, rising security in opposition to all potential assaults of this sort, and lowering the scale of Merkle proofs and therefore enhancing safety for each gentle shoppers and sharding as a facet impact. At current, we’re specializing in the extra fast software-level modifications; nevertheless, in the long run such proposals needs to be mentioned and contract builders needs to be conscious that modifications of this kind could happen.




Source link

Tags: AttackspamStepstransaction
admin

admin

Recommended

House GOP Pressures SEC To Clarify Ethereum’s Security Designation For Prometheum’s Custody

House GOP Pressures SEC To Clarify Ethereum’s Security Designation For Prometheum’s Custody

2 years ago
3 reasons why Ethereum price continues to underperform against BTC in 2024

3 reasons why Ethereum price continues to underperform against BTC in 2024

2 years ago

Popular News

  • Protocol-Owned Liquidity: A Sustainable Path for DeFi

    Protocol-Owned Liquidity: A Sustainable Path for DeFi

    0 shares
    Share 0 Tweet 0
  • Cryptocurrency for College: Exploring DeFi Scholarship Models

    0 shares
    Share 0 Tweet 0
  • What are rebase tokens, and how do they work?

    0 shares
    Share 0 Tweet 0
  • What is Velodrome Finance (VELO): why it’s a next-gen AMM

    0 shares
    Share 0 Tweet 0
  • $10 XRP Price Envisioned By Fund Manager As Ripple Mounts Trillion-Dollar Payment Markets ⋆ ZyCrypto

    0 shares
    Share 0 Tweet 0

Latest

Hoskinson Says Ripple Needs Midnight to Unlock XRP’s Potential

Hoskinson Says Ripple Needs Midnight to Unlock XRP’s Potential

June 10, 2026
How to watch the 2026 FIFA World Cup: 9 ways to stream (including free options)

How to watch the 2026 FIFA World Cup: 9 ways to stream (including free options)

June 10, 2026

Categories

  • Altcoins
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • DeFi
  • Dogecoin
  • Ethereum
  • Market & Analysis
  • NFTs & Metaverse
  • Regulations
  • XRP

Follow us

Recommended

  • Hoskinson Says Ripple Needs Midnight to Unlock XRP’s Potential
  • How to watch the 2026 FIFA World Cup: 9 ways to stream (including free options)
  • I cracked open a ‘1,000W’ portable charger after it failed me in minutes – the cause was clear (and gooey)
  • Ripple (XRP) Has Found Its Way Into Wall Street’s Inner Sanctum, Here’s How
  • XRP Ledger 3.2.0 Goes Live June 15: What the rippled-to-xrpld Rebrand Means
  • About us
  • Privacy Policy
  • Terms & Conditions

© 2023 TheBlockchainPage | All Rights Reserved

No Result
View All Result
  • Home
  • Cryptocurrency
  • Blockchain
  • Bitcoin
  • Market & Analysis
  • Altcoins
  • DeFi
  • Ethereum
  • Dogecoin
  • XRP
  • Regulations
  • NFTs

© 2023 TheBlockchainPage | All Rights Reserved