Skip to content

Commit

Permalink
solana: make peers upgradable (#559)
Browse files Browse the repository at this point in the history
* make peers upgradable

* remove todo comment over set peer
  • Loading branch information
evgeniko authored Dec 4, 2024
1 parent 9c5276f commit 5f2845c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ pub fn claim_ownership(ctx: Context<ClaimOwnership>) -> Result<()> {
}

// * Set peers
// TODO: update peers? should that be a separate instruction? take timestamp
// for modification? (for total ordering)

#[derive(Accounts)]
#[instruction(args: SetPeerArgs)]
Expand All @@ -172,7 +170,7 @@ pub struct SetPeer<'info> {
pub config: Account<'info, Config>,

#[account(
init,
init_if_needed,
space = 8 + NttManagerPeer::INIT_SPACE,
payer = payer,
seeds = [NttManagerPeer::SEED_PREFIX, args.chain_id.id.to_be_bytes().as_ref()],
Expand All @@ -181,7 +179,7 @@ pub struct SetPeer<'info> {
pub peer: Account<'info, NttManagerPeer>,

#[account(
init,
init_if_needed,
space = 8 + InboxRateLimit::INIT_SPACE,
payer = payer,
seeds = [
Expand Down

0 comments on commit 5f2845c

Please sign in to comment.