Simple CLI to simulate p-token feature activation while receiving transactions. The program upgrade mechanism is defined in Agave PR #7125.
The simulation consists of starting a test validator running SPL Token and 10 "clients" submitting transfer transactions. After 10 seconds, the feature is activated and the token program is upgraded to p-token. At the upgrade point, some transactions are expected to fail since the program is in DelayVisibility mode for one slot but should quickly resume.
First, build all necessary components:
make buildThis will build the CLI, p-token and activator programs. After that, to start the simulation use:
make runp-tokenrepository- SIMD-0266: Efficient Token program
- Agave PR #7125:
p-tokenfeature gate