stellar / rs-soroban-sdk

Rust SDK for Soroban contracts.
Apache License 2.0
118 stars 66 forks source link

Ledger snapshots store both the key and values unnecessarily #1310

Open leighmcculloch opened 1 month ago

leighmcculloch commented 1 month ago

The ledger snapshot crate stores the key and value for each ledger entry, but that's unnecessary since the key data is store inside the entry, so more data is being stored than is necessary.

This would be a breaking change, but we could drop the key and rematerialize it, make the existing key field optional in the next major release.