Skip to content

Commit

Permalink
Remove ColdArchive and proof structs (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson authored Feb 12, 2025
1 parent 2afe23b commit 63d87bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
3 changes: 1 addition & 2 deletions Stellar-ledger-entries.x
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ enum EnvelopeType
enum BucketListType
{
LIVE = 0,
HOT_ARCHIVE = 1,
COLD_ARCHIVE = 2
HOT_ARCHIVE = 1
};

/* Entries used to define the bucket list */
Expand Down
50 changes: 0 additions & 50 deletions Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -823,56 +823,6 @@ struct LedgerFootprint
LedgerKey readWrite<>;
};

enum ArchivalProofType
{
EXISTENCE = 0,
NONEXISTENCE = 1
};

struct ArchivalProofNode
{
uint32 index;
Hash hash;
};

typedef ArchivalProofNode ProofLevel<>;

struct NonexistenceProofBody
{
ColdArchiveBucketEntry entriesToProve<>;

// Vector of vectors, where proofLevels[level]
// contains all HashNodes that correspond with that level
ProofLevel proofLevels<>;
};

struct ExistenceProofBody
{
LedgerKey keysToProve<>;

// Bounds for each key being proved, where bound[n]
// corresponds to keysToProve[n]
ColdArchiveBucketEntry lowBoundEntries<>;
ColdArchiveBucketEntry highBoundEntries<>;

// Vector of vectors, where proofLevels[level]
// contains all HashNodes that correspond with that level
ProofLevel proofLevels<>;
};

struct ArchivalProof
{
uint32 epoch; // AST Subtree for this proof

union switch (ArchivalProofType t)
{
case EXISTENCE:
NonexistenceProofBody nonexistenceProof;
case NONEXISTENCE:
ExistenceProofBody existenceProof;
} body;
};

// Resource limits for a Soroban transaction.
// The transaction will fail if it exceeds any of these limits.
struct SorobanResources
Expand Down

0 comments on commit 63d87bb

Please sign in to comment.