Skip to content

SWIP 049 - Fixed set of stamps for stamp sampling phase#98

Open
lat-murmeldjur wants to merge 1 commit into
ethersphere:masterfrom
lat-murmeldjur:swip_049_stamp_set
Open

SWIP 049 - Fixed set of stamps for stamp sampling phase#98
lat-murmeldjur wants to merge 1 commit into
ethersphere:masterfrom
lat-murmeldjur:swip_049_stamp_set

Conversation

@lat-murmeldjur

Copy link
Copy Markdown

Bee and the Redistribution contract must use the same set of batches and indexes. This SWIP fixes that set when sampling begins and keeps it fixed through the last claim block. A batch may be used only if it already existed, had at least 456 blocks of balance at the price in force when sampling began, and already contained the proved index at that time. New batches and newly created indexes remain usable for uploads immediately, but they cannot be used by an already open redistribution round.

Furthermore, the suggestion is for the PostageStamp contract to keep one previous price and two previous batch depths. The Redistribution contract can use that history to reconstruct the price and index range that applied when sampling began at claim. A top-up is allowed only while the batch still has at least six rounds of balance, and a dilution must leave at least six rounds of balance. The claim verifies that the batch is still present and live, verifies all postage proofs, including that the index existed at the start of sampling, and only then allows the price to change.

@lat-murmeldjur lat-murmeldjur changed the title Fixed set of stamps for stamp sampling phase SWIP 049 - Fixed set of stamps for stamp sampling phase Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant