ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Add version byte to the `Anker` struct #510

Closed ruuda closed 2 years ago

ruuda commented 2 years ago

Just like in the Lido state struct, which starts with a version byte, we should start the Anker struct with a version byte, so that parsers that extract the account data can bail out in case a future version changes the data layout.

ruuda commented 2 years ago

Hi @enriquefynn, any progress on this?

enriquefynn commented 2 years ago

Forgot about this, will do it today.