Stake-weighted Quality of Service (swQoS) is a core mechanism in Solayer’s architecture that governs the allocation of network resources. This system dynamically distributes block space and transaction processing capacity based on the stake committed by validators or stakers.

Key Concepts

  1. Proportional Resource Allocation: Validators receive network resources proportional to their stake.
  2. Sybil Attack Resistance: Higher stake provides increased resistance against Sybil attacks.
  3. Commercial Benefits: RPC infrastructure operators and validator node hosts gain advantages in transaction inclusion and capacity sales.

Technical Implementation

The swQoS system operates on the following principles:

  1. Packet Transmission Rights: A validator’s right to transmit packets to the epoch leader is directly proportional to their stake percentage.
  2. Priority Queueing: Transactions from higher-staked validators receive priority in block inclusion.

Example Scenario

Consider two validators:

  • Validator A: 2% stake
  • Validator B: 0.2% stake

In this scenario:

  • Validator A can submit up to 2% of packets to the block producer
  • Validator B is limited to 0.2% of packet submissions

Transaction Weighting

In the swQoS system:

  1. Each transaction carries a “weight” based on the staker’s total stake.
  2. Higher-weight transactions have a greater probability of inclusion in the next block.
  3. Increased stake correlates with higher quality of service and improved resilience against potential malicious activities from lower-stake validators.

This mechanism ensures a fair, stake-proportional distribution of network resources, incentivizing higher stake commitments while maintaining network security and efficiency.