Skip to content

Commit

Permalink
Avoid persisting redundant tx sets
Browse files Browse the repository at this point in the history
  • Loading branch information
marta-lokhova authored and leighmcculloch committed Nov 17, 2022
1 parent 26d3341 commit e530ceb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Stellar-internal.x
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ struct PersistedSCPStateV0
StoredTransactionSet txSets<>;
};

struct PersistedSCPStateV1
{
// Tx sets are saved separately
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
};

union PersistedSCPState switch (int v)
{
case 0:
PersistedSCPStateV0 v0;
case 1:
PersistedSCPStateV1 v1;
};
}

0 comments on commit e530ceb

Please sign in to comment.