Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ACP-41, which removes user-defined staking start times and instead begins staking automatically upon acceptance of the staking transaction.

This article translates, summarizes, and supplements the material linked below.

I have also covered other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ACP-41 removes StartTime, the staking start time previously selected by a staker, and begins staking when the staking transaction is accepted on the P-Chain.

The change reduces computational overhead on the P-Chain and improves efficiency for validators across the Avalanche network.

Terminology

Term Description
P-Chain Avalanche's Platform Chain, responsible for functions such as validator registration and staking management.
Staker A validator participating directly in validation or a delegator assigning stake to a validator.
Validator A node participating in block validation, with effective stake consisting of its own stake and delegated stake.
Delegator A participant who delegates assets to a validator rather than directly validating blocks.
StartTime The staking start time that stakers could previously specify.
Accept Finalizing the staking transaction as part of an accepted block and its state.
Verify Checking transaction validity before acceptance.
pending set Stakers whose scheduled start times have not yet arrived.
current set Stakers whose staking periods are currently active.
MaxValidatorStake The upper limit on a validator's total stake, including self-stake and delegated stake.
O(1) Constant-time computational complexity, independent of input size.

The central idea of ACP-41 is to remove user-specified StartTime and begin the staking period immediately upon acceptance of the staking transaction.

The P-Chain no longer needs to track stakers awaiting future start times. The pending set can be removed, leaving only the current set of active stakers.

This significantly simplifies the MaxValidatorStake check. Previously, the protocol had to check whether total stake would exceed the maximum at any overlapping future interval. Under the proposal, it only needs to consider the currently active total stake. The check can therefore be performed in O(1) time.

Motivation

Stakers could previously choose their own StartTime. Although flexible, this imposed ongoing costs on the P-Chain.

  • Checking future periods during verification

    When verifying a new delegation transaction, the protocol must consider other accepted staking transactions associated with the validator, including those not yet active. It must ensure that total delegated and self-stake does not exceed MaxValidatorStake during future overlapping periods.

  • Registering pending stakers upon acceptance

    A newly accepted staking transaction must be added to the pending set and retained until its scheduled start time.

  • Moving stakers as chain time advances

    Whenever the P-Chain's timestamp advances, stakers satisfying StartTime <= current chain time must be moved from the pending set to the current set.

All of these operations are required to support scheduled future start times. Beginning staking immediately on acceptance eliminates this bookkeeping and reduces the computational work performed by validators during P-Chain verification.

Computational Complexity

Previously, the protocol examined pending and current stakers across future start and end times, checking overlapping periods against MaxValidatorStake. The cost depended on the size and overlap of these sets.

Under the proposal, the protocol checks the currently active aggregate stake, allowing the MaxValidatorStake check to complete in O(1) time.

Processing Flow

Previous flow (with StartTime):

sequenceDiagram
  participant Staker as ステーカー
  participant P as P-chain
  Staker->>P: ステーキング取引を送信(StartTime付き)
  P->>P: 取引を検証(将来の重なりもチェック)
  P->>Staker: 取引を受理
  P->>P: pending setへ登録
  Note over P: 現在時刻が進む
  P->>P: StartTime到来でcurrent setへ移動

New flow (starting upon acceptance):

sequenceDiagram
  participant Staker as ステーカー
  participant P as P-chain
  Staker->>P: ステーキング取引を送信(StartTimeなし)
  P->>P: 取引を検証(現在の総ステークのみ確認)
  P->>Staker: 取引を受理
  P->>P: 受理と同時にcurrent setでアクティブ化

The original diagrams are retained, including their Japanese labels.

Compatibility

ACP-41 changes the state transition of existing transaction types. Changes to execution behavior require a coordinated network upgrade because nodes applying different rules could disagree about transaction validity and consensus.

The new behavior must not be activated before the network upgrade.

ACP-41 does not introduce a new transaction format or change an existing format. Wallet implementations therefore do not need to change transaction serialization or signature formats solely for this proposal.

However, wallets must choose a valid EndTime. A transaction whose EndTime is outside the permitted interval relative to CurrentChainTime + MaxStakeDuration will be rejected. The exact boundary condition should follow the specification.

CurrentChainTime is guaranteed to be at least the timestamp of the latest P-Chain block, providing a shared chain-time reference.

Reference Implementation

ACP-41 changes state management rather than introducing a new transaction type or additional fields.

At the time described by the original proposal, a complete reference implementation was not yet available. Avalanche network client implementations (ANCs) would need to update their execution rules accordingly.

The following pull request describes work on AvalancheGo, Avalanche's official client implementation.

ava-labs/avalanchego/pull/2175

Open Questions

The proposal discusses how a staker can use the full MaxStakeDuration (maximum staking duration) when StartTime can no longer be specified.

Effects of Removing StartTime

The staking start time is now determined automatically by the timestamp associated with acceptance of the transaction.

Users can no longer schedule an exact start time in advance.

  • Stakers may find it difficult to use the entire theoretical MaxStakeDuration.
  • They cannot predict the timestamp of the accepting block precisely.

As a result, targeting the exact maximum duration is difficult, and a discrepancy of seconds or minutes may occur.

Explicit Trade-Off

This is an intentional trade-off rather than an accidental limitation. To improve P-Chain efficiency, the design accepts that stakers may not be able to use the full MaxStakeDuration precisely.

The intended staking lifecycle remains based on the specified EndTime, including return of principal and payment of earned rewards under the protocol's applicable rules. Reward eligibility and the processing of withdrawals still depend on protocol requirements; this change does not independently guarantee rewards or instantaneous delivery.

Considerations for Delegators

To maximize their staking period, delegators are encouraged to use the same EndTime as their chosen validator, subject to the applicable duration limits.

This allows delegation to remain active until the validator's staking period ends.

Conclusion

ACP-41 removes user-specified staking start times and begins staking automatically when the staking transaction is accepted.

If you have questions, feel free to contact me on Twitter.

Twitter @cardene777

I also publish articles on the following platforms.

https://chaldene.net/