Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
stub out disable fees feature
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Nov 14, 2024
1 parent c250727 commit fff4e5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions scripts/fixtures/sysvar-fees.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"pubkey": "SysvarFees111111111111111111111111111111111",
"account": {
"lamports": 10000000000,
"data": ["ECcAAAAAAAA=", "base64"],
"owner": "Sysvar1111111111111111111111111111111111111",
"executable": false,
"rentEpoch": 0,
"space": 8
}
}
4 changes: 3 additions & 1 deletion scripts/start-shared-test-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ TEST_VALIDATOR=$( cd "$(dirname "${BASH_SOURCE[0]}")/.." ; pwd -P )/.agave/activ
TEST_VALIDATOR_LEDGER="$( cd "$(dirname "${BASH_SOURCE[0]}")/.." ; pwd -P )/test-ledger"
FIXTURE_ACCOUNTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")/fixtures" ; pwd -P)"

DEACTIVATE_FEES_SYSVAR_FEATURE_ID="JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG"

if [ ! -x "$TEST_VALIDATOR" ]; then
echo "ERROR: No test validator is installed. Install one using the following command: pnpm test:live-with-test-validator:setup" >&2
exit 1
Expand All @@ -24,7 +26,7 @@ mkdir -p $LOCK_DIR
flock -s 200 || exit 1
(
if flock -nx 200; then
$TEST_VALIDATOR --ledger $TEST_VALIDATOR_LEDGER --reset --quiet --account-dir $FIXTURE_ACCOUNTS_DIR --rpc-pubsub-enable-vote-subscription --rpc-pubsub-enable-block-subscription >/dev/null &
$TEST_VALIDATOR --ledger $TEST_VALIDATOR_LEDGER --reset --quiet --account-dir $FIXTURE_ACCOUNTS_DIR --deactivate-feature $DEACTIVATE_FEES_SYSVAR_FEATURE_ID --rpc-pubsub-enable-vote-subscription --rpc-pubsub-enable-block-subscription >/dev/null &
validator_pid=$!
echo "Started test validator (PID $validator_pid)"
wait
Expand Down

0 comments on commit fff4e5a

Please sign in to comment.