node icon indicating copy to clipboard operation
node copied to clipboard

POC for PDA upgrade

Open skosito opened this issue 1 year ago • 1 comments

Couple of improvements (eg: https://github.com/zeta-chain/protocol-private/issues/182 https://github.com/zeta-chain/protocol-private/issues/186) would require extending PDA with new fields.

Purpose of this issue is to investigate and create POC/e2e test for adding new fields to PDA (eg: bump). Possible solutions:

  • use realloc https://solana.com/developers/courses/program-optimization/program-architecture#account-flexibility-and-future-proofing - this looks like a preferred approach

  • migrate to new PDA - seems more involved and not needed for now at least, it would mean that PDA have different address, moving all funds to new PDA etc

skosito avatar Dec 20 '24 15:12 skosito

As we discussed, I moved this one to the WithdrawAndCall epic https://github.com/zeta-chain/node/issues/2941

lumtis avatar Jan 07 '25 13:01 lumtis