Skip to content

Commit 51b0801

Browse files
authored
Merge pull request #67 from casper-network/dev
PR to merge Casper 2.0 changes from `dev` to `main`
2 parents fc37f42 + 188283b commit 51b0801

File tree

97 files changed

+2454
-4864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2454
-4864
lines changed

condor/addressable-entity.md

Lines changed: 0 additions & 99 deletions
This file was deleted.

condor/block-lanes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Casper v2.0 Block Lanes
3+
description: Introduction to Block Lanes in the Casper v2.0 Release
4+
slug: block-lanes
5+
date: 2025-04-28T22:00
6+
authors: [ core-team ]
7+
tags: [v2]
8+
hide_table_of_contents: false
9+
---
10+
11+
In Casper 2.0 as part of the changes to the block structure, the body of the block now contains several distinct lanes which contain different transaction variants. Each lane has the following five properties:
12+
13+
An identifier for the lane represented as number, this identifier is simply a label. However, the system does reserve the 0 and 1 lane identifiers for native mint and auction interactions respectively.
14+
1. Max serialized length of the entire transaction in bytes for a given transaction in a certain lane
15+
2. Max args length size in bytes for a given transaction in a certain lane
16+
3. Transaction gas limit for a given transaction in a certain lane
17+
4. The maximum number of transactions the lane can contain
18+
19+
In 2.0, there are three distinct systemic lanes - lanes that must be present and defined. These required lanes are for native transactions (e.g., native transfer and native add-bid), and for the installation and upgrading of stored Wasm. In addition to these three lanes, a Casper network can be set up with a range of user-defined lanes for Wasm transactions. The number of user defined lanes is specific to a given network and is defined in the chainspec for that given network.
20+
21+
The assignment of a given transaction is determined by comparing the transaction's properties against those of a specific lane. If any of the transaction's properties exceed the lane's specified limits, the transaction is deemed ineligible to be part of that lane. It should be noted that during lane determination, the gas limit is determined based on the pricing mode.
22+
23+
In payment-limited mode, the gas limit for a given transaction is determined by the payment amount as specified by the user.
24+
In fixed mode, lane determination first estimates the lane based on the size of the transaction, measured in bytes, and the additional computational factor as specified by the user.

condor/condor.sidebar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const sidebars = {
2222
'local-setup',
2323
'transactions',
2424
'validator-rewards',
25+
'block-lanes',
2526
'zug',
2627
'devnet-info',
2728
'migration-guide',

condor/fee-elimination.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)