stellar / stellar-protocol

Developer discussion about possible changes to the protocol.
509 stars 301 forks source link

cap-57 initial draft: State Archival Persistent Entry Eviction #1495

Closed SirTyson closed 1 week ago

SirTyson commented 1 week ago

See https://github.com/stellar/stellar-protocol/discussions/1480 for discussion.

anupsdf commented 1 week ago

nit: In the verifyProofOfExistence, the indentation is slightly off where expectedHash == r.hash condition is showing as inside the for loop of proof.entries.

anupsdf commented 1 week ago

If an archived entry is restored and the entry currently exists in the Hot Archive, the INITENTRY previously stored in the Hot Archive is overwritten by a RESTORED entry.

How about rephrasing to something like, If an archived entry is restored and the entry exists in the Hot Archive, then a RESTORED entry is inserted into the Hot Archive bucketlist. This overrides the previously stored INITENTRY in the Hot Archive.

anupsdf commented 1 week ago

nit: 4.3% change a single miss