spacemeshos / SMIPS

Spacemesh Improvement Proposals
https://spacemesh.io
Creative Commons Zero v1.0 Universal
7 stars 1 forks source link

Unified content block construction (WIP) #68

Closed lrettig closed 1 year ago

lrettig commented 2 years ago

Overview

As part of the Spacemesh transaction selection and processing workflow (#50, #37), the Spacemesh protocol specifies that all of the proposals (submitted by eligible Smeshers in a given layer) be assembled into a single, unified content block (hereinafter referred to simply as the "block") for that layer. This proposal describes the deterministic algorithm by which this happens.

Goals and motivation

Specify a simple, deterministic algorithm that takes as input a set of valid proposals, each containing zero or more transactions, and outputs a single block of ordered transactions. Drop (i.e., do not include in output) transactions that are invalid or won't be effective (i.e., won't pay any gas) if possible.

High-level design

Prior art

Proposed implementation

Implementation plan

Questions

Dependencies and interactions

Stakeholders and reviewers

Testing and performance