2

AccountInfo::realloc is limited to increasing an account's size by 10kb. Is this limitation per instruction, per transaction or per block?

It would be most optimal if the limitation were per instruction, as this would allow multiple instructions in a single transaction to increase the size. Though it wouldn't be a surprise if it was limited to 10kb per transaction.

1 Answer 1

3

The docs and code are a little confusing around this point. It's 10kB per account, per top-level instruction.

2
  • 1
    Great, so you can have multiple instructions that reallocate space in the same transaction
    – Henry E
    Commented Aug 2, 2022 at 18:42
  • yep. same as you can have multiple instructions that allocate new accounts in the same transaction
    – trent.sol
    Commented Aug 2, 2022 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.