File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
soroban-ledger-snapshot/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ pub struct LedgerSnapshot {
4242 ledger_entries : LedgerEntries ,
4343}
4444
45- /// Extended ledger entry that includes the live util ledger sequence. Provides a more compact
45+ /// Extended ledger entry that includes the live until ledger sequence. Provides a more compact
4646/// form of the entry storage, to reduce the size of the snapshot when serialized to JSON.
4747#[ derive( Debug , Clone , serde:: Deserialize ) ]
4848struct LedgerEntryExt {
4949 entry : Box < LedgerEntry > ,
5050 live_until : Option < u32 > ,
5151}
5252
53- /// Extended ledger entry that includes the live util ledger sequence, and the entry by reference.
53+ /// Extended ledger entry that includes the live until ledger sequence, and the entry by reference.
5454/// Used to reduce memory usage during serialization.
5555#[ derive( serde:: Serialize ) ]
5656struct LedgerEntryExtRef < ' a > {
Original file line number Diff line number Diff line change @@ -100,12 +100,12 @@ fn test_set_and_update_entries() {
100100 // Update existing with new live_until
101101 (
102102 Rc :: new( ( * * entries[ 0 ] . 0 ) . clone( ) ) ,
103- Some ( ( Rc :: new( ( * entries[ 0 ] . 1 . 0 ) . clone( ) ) , Some ( 99 ) ) ) ,
103+ Some ( ( Rc :: new( ( * entries[ 0 ] . 1.0 ) . clone( ) ) , Some ( 99 ) ) ) ,
104104 ) ,
105105 // Add new entry
106106 (
107107 Rc :: new( ( * * entries[ 2 ] . 0 ) . clone( ) ) ,
108- Some ( ( Rc :: new( ( * entries[ 2 ] . 1 . 0 ) . clone( ) ) , entries[ 2 ] . 1 . 1 ) ) ,
108+ Some ( ( Rc :: new( ( * entries[ 2 ] . 1.0 ) . clone( ) ) , entries[ 2 ] . 1.1 ) ) ,
109109 ) ,
110110 ] ;
111111 snapshot. update_entries ( & updates) ;
You can’t perform that action at this time.
0 commit comments