3

I was watching Will's talk on program security and he mentioned that there is a field on Anchor that you can check on whether an account was closed and reopened.

What field is this?

1 Answer 1

5

Anchor used to set the account data to CLOSED_ACCOUNT_DISCRIMINATOR for closed accounts before version 0.26.0 which was equal to &[0xff; 8].

The close logic has been replaced after the introduction of realloc feature and the close constraint now uses realloc to zero the account data instead.

PR

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.