github 0xPolygon/bor v2.12.0-beta

pre-release49 minutes ago

v2.12.0-beta is a performance, sync and transaction pool release on top of v2.11.2. It's cut from develop.

This is a pre-release for testnet validation. Mainnet operators should wait for the stable v2.12.0. There is no hardfork, no required config change, no schema change and no resync. Fork IDs are unchanged, so nodes can be upgraded one at a time, in any order.

The Salvador hardfork (#2546) is on develop but is reverted on this release branch, so this release schedules no fork.

Highlights

  • Execution performance: the receipt root is derived while the state root is hashed (#2523), parallel trie commit allocates less (#2522), and MULMOD caches the reciprocal of a repeated full-width modulus (#2310). The new --precompile-cache flag (default off) also gives the serial import path and the block builder the per-block VM result caches, which the prefetcher and parallel workers already use (#2431).
  • Transaction pool:
    • The filtered-addresses file is re-read and applied without a restart, every txpool.filter-reload (default 1m, 0 disables) (#2525).
    • Pending nonces are kept across a pool reset (#2519).
    • When a conditional transaction is dropped, the account's later transactions are re-queued (#2414).
    • Rebroadcast retries are kept when peer queues refuse transactions, and downloader timeouts no longer escalate to peer jailing (#2510).
    • Local-transaction tracking no longer reads state under its lock (#2476).
  • Sync and witnesses:
    • Operational state-sync and witness fetch failures are retried without penalising the serving peer (#2537).
    • Snap sync no longer panics when the result queue closes empty (#2477).
    • Databases that stored empty receipts for blocks whose header commits to none can freeze again, instead of stalling the freezer (#2474).
  • Finality: milestones now set the chain's finalized block, so the finalized and safe head metrics advance, and consumers of the standard finality API (live tracers, indexers) see Heimdall finality (#2226).
  • Block production:
    • Block producers can hold a base fee floor with miner.baseFeeFloor. This is producer policy, not consensus (#2541).
    • New producer stall and slow-announce metrics (#2478).
    • Sequencer mode keeps the preconfirmed transaction order across a producer takeover (#2480, #2475, #2504).
  • RPC and Heimdall:
    • eth_getBorBlockLogs works when toBlock is omitted (#2446).
    • debug_executionWitness returns block and parent in the right order (#2485).
    • In-flight calls are cancelled when a WS/IPC connection closes (#2518).
    • The log index no longer misses the last indexed block during a head map rewrite (#2530).
    • The Heimdall gRPC client honors --bor.heimdalltimeout (#2486).
  • CLI: snapshot prune-block and inspect-ancient-db open the ancient store from --datadir.ancient again (#2501). Pathdb and snapshot iterators copy their key before release (#2517).

Operator notes

  • New settings, all optional, with defaults that keep current behaviour except the filter reload:
    • [txpool] filter-reload / --txpool.filter-reload (default 1m0s): how often the filtered-addresses file is reloaded. Set 0 to keep the old load-at-startup behaviour.
    • precompile-cache / --precompile-cache (default false).
    • [miner] baseFeeFloor / --miner.baseFeeFloor (default 0, disabled): base fee floor in wei for block producers. When set, it is also used as the target base fee in place of miner.targetBaseFee.
  • --bor.heimdalltimeout now also bounds span and state-sync requests on nodes that use bor.heimdallgRPC. Behaviour only changes if you set a value other than the 30s default.

What's Changed

  • Call SetFinality when processing a milestone by @sduchesneau in #2226
  • core/vm: memoize MULMOD modulus reciprocal by @lucca30 in #2310
  • core/txpool/legacypool: requeue transactions stranded behind a dropped conditional tx by @kriss39 in #2414
  • consensus/bor: bound state-sync record overrides by the fetched records by @kriss39 in #2415
  • core, core/vm, miner, eth, cli: flag-gated shared VM result caches for serial import and block builder by @lucca30 in #2431
  • eth/filters: fix eth_getBorBlockLogs returning nothing when toBlock is omitted by @Bruce039 in #2446
  • core: cover revert, transient storage and self-introspection in the V2 parity fuzz by @Bruce039 in #2447
  • miner: stabilize prefetch abort stream test by @pratikspatil024 in #2452
  • eth: deflake TestSendTx by @aristide-bayard in #2471
  • ci: bump kurtosis-pos to v1.4.3 by @kamuikatsurgi in #2472
  • core/rawdb: freeze empty receipts when the header commits to none by @kamuikatsurgi in #2474
  • eth/sequencer: settle the seal gate from a reconcile through our own seal by @cffls in #2475
  • core/txpool/locals: avoid state reads under tracker lock by @ChanHongMing in #2476
  • eth/downloader: stop snap sync when the result queue closes empty by @Amirhosein in #2477
  • miner: add producer stall and slow-announce metrics by @cffls in #2478
  • core, consensus, eth/sequencer, miner: keep preconfirmed order across a producer takeover by @cffls in #2480
  • eth: fix TestPrivateTxNotPropagated flakiness in private-tx marking by @pratikspatil024 in #2482
  • p2p/discover: make lookup iterator test teardown deterministic by @pratikspatil024 in #2483
  • eth: fix block and parent order in debug_executionWitness by @Shailu-s in #2485
  • consensus/bor/heimdallgrpc: honor the configured request timeout by @Shailu-s in #2486
  • node: pass the ancient directory in OpenDatabaseWithFreezer (fixes snapshot prune-block / inspect-ancient-db) by @dmitrybitquery in #2501
  • eth/sequencer: snapshot the chain reader under the publisher mutex by @pratikspatil024 in #2504
  • ci: run kurtosis e2e against the rio-at-genesis branches by @kamuikatsurgi in #2508
  • core/txpool, eth: preserve rebroadcast retries and avoid timeout jailing by @0xrukimedo in #2510
  • triedb/pathdb, core/state/snapshot: copy the iterator key before Release by @lucca30 in #2517
  • rpc: cancel in-flight calls when a WS/IPC connection closes by @lucca30 in #2518
  • core/txpool/legacypool: keep pending nonces across a reset by @lucca30 in #2519
  • trie: reduce allocations in parallel commit by @lucca30 in #2522
  • core: derive the receipt root while hashing the state root by @lucca30 in #2523
  • chore(ci): upgrade to codegenie@v0.7.0 by @0xPolygonBot in #2524
  • core/txpool, internal/cli: reload filtered addresses without a restart by @cffls in #2525
  • core/filtermaps: fix empty log search for last indexed block during head map rewrite by @lucca30 in #2530
  • core, eth: retry operational witness sync failures without peer penalties by @0xrukimedo in #2537
  • ci: run kurtosis sequencer e2e on develop and share images across legs by @cffls in #2540
  • consensus/misc/eip1559, params, cli: let block producers hold a base fee floor by @lucca30 in #2541
  • internal/cli: fix debug block trace test timestamp flake by @pratikspatil024 in #2558
  • ci: update action versions and pin diffguard, Kurtosis CLI and Foundry by @kamuikatsurgi in #2560

Full Changelog: v2.11.2...v2.12.0-beta

Don't miss a new bor release

NewReleases is sending notifications on new releases.