Skip to content

Commit

Permalink
Add Soroban write fee to LCM. (#173)
Browse files Browse the repository at this point in the history
* Add Soroban write fee to LCM.

* Add extension
  • Loading branch information
dmkozh authored Mar 19, 2024
1 parent b96148c commit 9f9eec1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,23 @@ struct LedgerCloseMetaV0
SCPHistoryEntry scpInfo<>;
};

struct LedgerCloseMetaV1
struct LedgerCloseMetaExtV1
{
// We forgot to add an ExtensionPoint in v0 but at least
// we can add one now in v1.
ExtensionPoint ext;
int64 sorobanFeeWrite1KB;
};

union LedgerCloseMetaExt switch (int v)
{
case 0:
void;
case 1:
LedgerCloseMetaExtV1 v1;
};

struct LedgerCloseMetaV1
{
LedgerCloseMetaExt ext;

LedgerHeaderHistoryEntry ledgerHeader;

Expand Down

0 comments on commit 9f9eec1

Please sign in to comment.