Skip to content

Use loader v3 instead of v2 in the SVM#454

Merged
LucasSte merged 1 commit intoanza-xyz:masterfrom
LucasSte:loader-v3
Mar 27, 2024
Merged

Use loader v3 instead of v2 in the SVM#454
LucasSte merged 1 commit intoanza-xyz:masterfrom
LucasSte:loader-v3

Conversation

@LucasSte
Copy link
Copy Markdown

Problem

BPFLoader v1 and v2 are deprecated, but the integration tests were still using them. In addition, there were no guidance functions for deploying programs using the V3 standard, as described in #114.

Summary of Changes

I updated the test to use the loader V3 and created an example function to deploy programs.

@LucasSte LucasSte linked an issue Mar 27, 2024 that may be closed by this pull request
@LucasSte LucasSte requested review from dmakarov and pgarg66 March 27, 2024 18:34
@LucasSte LucasSte marked this pull request as ready for review March 27, 2024 18:34
@LucasSte LucasSte merged commit e70ff38 into anza-xyz:master Mar 27, 2024
@LucasSte LucasSte deleted the loader-v3 branch March 27, 2024 18:47
OliverNChalk pushed a commit to OliverNChalk/agave that referenced this pull request Nov 11, 2025
It seems simpler to have two distinct generator templates: one for
attacks that want to use the maximum possible number of accounts in a
transaction, and another one that uses the maximum possible number of
accounts of the maximum size.

These two templates have constraints that are quite different, and it
simplifies both the implementation and the interfaces of the templates.

SQUASH: This change should be incorporated into the following changes:

  Brennan <brennan.watt@anza.xyz>
  Tue Sep 3 21:28:31 2024 -0700
  constrain max accounts, shrink batch size (anza-xyz#419)

  Brennan <brennan.watt@anza.xyz>
  Thu Apr 18 18:10:43 2024 -0700
  read max accounts attack (anza-xyz#327)

  Illia Bobyr <illia.bobyr@solana.com>
  Mon Oct 23 12:21:02 2023 -0700
  Read and write lock attack (anza-xyz#196)
OliverNChalk pushed a commit to OliverNChalk/agave that referenced this pull request Nov 11, 2025
Original names were not specific enough.  "Max" in the name could refer
to the transaction size, account size, number of accounts or, possibly,
even more other things.  And we already have a `max_accounts_tx`
template that indeed is about putting as many accounts into a
transaction - it is confusing that `read_max_accounts` and
`max_accounts_tx` are unrelated.

FIXUP: This change should be absorbed into the changes that touch
`read_max_accounts.rs` and `write_max_accounts.rs`:

```
❯ git log --format=%s agave/master..upstream/master -- core/src/banking_stage/adversary/transaction_generators/{read,write}_max_accounts.rs
SQUASH Split max_size_accounts_tx out of max_accounts_tx (anza-xyz#454)
constrain max accounts, shrink batch size (anza-xyz#419)
write max accounts test (anza-xyz#328)
read max accounts attack (anza-xyz#327)
Read and write lock attack (anza-xyz#196)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating account data to match the loader header is a manual process

2 participants