Skip to content

Commit

Permalink
Test validator installer now sources from version 2.0.x line
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Nov 27, 2024
1 parent be3ad1e commit 09cee6d
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 53 deletions.
11 changes: 11 additions & 0 deletions .changeset/wicked-bikes-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@solana/sysvars': minor
---

Removed the fees sysvar which has been disabled on the network for a year, and has now been removed from the test validator in Agave 2.0

```
% solana feature status JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG
Feature | Status | Activation Slot | Description
JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG | active since epoch 483 | 208656004 | disable fees sysvar
```
6 changes: 3 additions & 3 deletions packages/rpc-api/src/__tests__/get-program-accounts-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ describe('getProgramAccounts', () => {
});
});

it('returns RPC response with parsed JSON data for Sysvar rent account', async () => {
it.only('returns RPC response with parsed JSON data for Sysvar rent account', async () => {

Check failure on line 2007 in packages/rpc-api/src/__tests__/get-program-accounts-test.ts

View workflow job for this annotation

GitHub Actions / Build & Test on Node current

Unexpected focused test

Check failure on line 2007 in packages/rpc-api/src/__tests__/get-program-accounts-test.ts

View workflow job for this annotation

GitHub Actions / Build & Test on Node current

Unexpected focused test

Check failure on line 2007 in packages/rpc-api/src/__tests__/get-program-accounts-test.ts

View workflow job for this annotation

GitHub Actions / Build & Test on Node lts/*

Unexpected focused test

Check failure on line 2007 in packages/rpc-api/src/__tests__/get-program-accounts-test.ts

View workflow job for this annotation

GitHub Actions / Build & Test on Node lts/*

Unexpected focused test
expect.assertions(1);
// Sysvar accounts don't need a fixture
// They're owned by Sysvar1111111111111111111111111111111111111
Expand Down Expand Up @@ -2063,7 +2063,7 @@ describe('getProgramAccounts', () => {
data: {
parsed: {
info: expect.any(Object),
type: 'fees',
type: 'lastRestartSlot',
},
program: 'sysvar',
space: 8n,
Expand All @@ -2074,7 +2074,7 @@ describe('getProgramAccounts', () => {
rentEpoch: expect.any(BigInt),
space: 8n,
},
pubkey: 'SysvarFees111111111111111111111111111111111',
pubkey: 'SysvarLastRestartS1ot1111111111111111111111',
},
{
account: {
Expand Down
15 changes: 15 additions & 0 deletions packages/rpc-api/src/__tests__/simulate-transaction-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -284,6 +285,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -323,6 +325,7 @@ describe('simulateTransaction', () => {
err: 'BlockhashNotFound',
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -362,6 +365,10 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: {
blockhash: expect.any(String),
lastValidBlockHeight: expect.any(BigInt),
},
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -464,6 +471,7 @@ describe('simulateTransaction', () => {
err: 'AccountNotFound',
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -513,6 +521,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -562,6 +571,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -628,6 +638,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -678,6 +689,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -727,6 +739,7 @@ describe('simulateTransaction', () => {
innerInstructions: null,

logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -781,6 +794,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down Expand Up @@ -821,6 +835,7 @@ describe('simulateTransaction', () => {
err: null,
innerInstructions: null,
logs: expect.any(Array),
replacementBlockhash: null,
returnData: null,
unitsConsumed: expect.any(BigInt),
},
Expand Down
29 changes: 0 additions & 29 deletions packages/sysvars/src/__tests__/fees-test.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/sysvars/src/__tests__/sysvar-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
fetchJsonParsedSysvarAccount,
SYSVAR_CLOCK_ADDRESS,
SYSVAR_EPOCH_SCHEDULE_ADDRESS,
SYSVAR_FEES_ADDRESS,
SYSVAR_LAST_RESTART_SLOT_ADDRESS,
SYSVAR_RECENT_BLOCKHASHES_ADDRESS,
SYSVAR_RENT_ADDRESS,
Expand Down Expand Up @@ -77,22 +76,6 @@ describe('sysvar account', () => {
});
});
});
describe('fees', () => {
it('fetch encoded', async () => {
expect.assertions(3);
await assertValidEncodedSysvarAccount(SYSVAR_FEES_ADDRESS);
});
it('fetch JSON-parsed', async () => {
expect.assertions(3);
await assertValidJsonParsedSysvarAccount(SYSVAR_FEES_ADDRESS, {
data: {
feeCalculator: {
lamportsPerSignature: expect.any(String), // JsonParsed converts to string
},
},
});
});
});
// `Instructions` does not exist on-chain.
describe('last restart slot', () => {
it('fetch encoded', async () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/sysvars/src/sysvar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export const SYSVAR_EPOCH_REWARDS_ADDRESS =
'SysvarEpochRewards1111111111111111111111111' as Address<'SysvarEpochRewards1111111111111111111111111'>;
export const SYSVAR_EPOCH_SCHEDULE_ADDRESS =
'SysvarEpochSchedu1e111111111111111111111111' as Address<'SysvarEpochSchedu1e111111111111111111111111'>;
export const SYSVAR_FEES_ADDRESS =
'SysvarFees111111111111111111111111111111111' as Address<'SysvarFees111111111111111111111111111111111'>;
export const SYSVAR_INSTRUCTIONS_ADDRESS =
'Sysvar1nstructions1111111111111111111111111' as Address<'Sysvar1nstructions1111111111111111111111111'>;
export const SYSVAR_LAST_RESTART_SLOT_ADDRESS =
Expand All @@ -37,7 +35,6 @@ type SysvarAddress =
| typeof SYSVAR_CLOCK_ADDRESS
| typeof SYSVAR_EPOCH_REWARDS_ADDRESS
| typeof SYSVAR_EPOCH_SCHEDULE_ADDRESS
| typeof SYSVAR_FEES_ADDRESS
| typeof SYSVAR_INSTRUCTIONS_ADDRESS
| typeof SYSVAR_LAST_RESTART_SLOT_ADDRESS
| typeof SYSVAR_RECENT_BLOCKHASHES_ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-latest-validator-release-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(
set -e
version=$(node -e \
'fetch("https://api.github.com/repos/anza-xyz/agave/releases").then(res => res.json().then(rs => rs.filter(r => !r.prerelease && r.tag_name.startsWith("v1.18."))).then(x => console.log(x[0].tag_name)));'
'fetch("https://api.github.com/repos/anza-xyz/agave/releases").then(res => res.json().then(rs => rs.filter(r => !r.prerelease && r.tag_name.startsWith("v2.0."))).then(x => console.log(x[0].tag_name)));'
)
if [ -z $version ]; then
exit 3
Expand Down

0 comments on commit 09cee6d

Please sign in to comment.