Skip to content

Create surfnet_blockAccountDownload cheatcode #563

@MicaiahReid

Description

@MicaiahReid

When you have deployed a program to mainnet and initialized accounts, your local surfnet automatically pulling these accounts can be problematic - now the accounts you're wantint to test initialized are already being pulled from mainnet initialized.

We need a cheatcode to block an account from being pulled from mainnet, including the accounts it owns.

Wire format would be:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "surfnet_blockAccountDownload",
  "params": [
    "<my_program_id>",
    {
      "includeOwnedAccounts": true
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions