From 38fa1126ef23e8412ebfb468cfdb65e72c859432 Mon Sep 17 00:00:00 2001 From: disco-infinex <168691292+disco-infinex@users.noreply.github.com> Date: Thu, 5 Sep 2024 03:10:42 +1000 Subject: [PATCH] Fixing misnamed field in the getRecentPerformanceSamples method return type (#422) --- docs/rpc/http/getRecentPerformanceSamples.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/rpc/http/getRecentPerformanceSamples.mdx b/docs/rpc/http/getRecentPerformanceSamples.mdx index 7fcabb9a4..670491666 100644 --- a/docs/rpc/http/getRecentPerformanceSamples.mdx +++ b/docs/rpc/http/getRecentPerformanceSamples.mdx @@ -31,14 +31,14 @@ An array of `RpcPerfSample` with the following fields: period - `numSlots: ` - Number of slots completed during the sample period - `samplePeriodSecs: ` - Number of seconds in a sample window -- `numNonVoteTransaction: ` - Number of non-vote transactions processed +- `numNonVoteTransactions: ` - Number of non-vote transactions processed during the sample period. - `numNonVoteTransaction` is present starting with v1.15. To get a number of + `numNonVoteTransactions` is present starting with v1.15. To get a number of voting transactions compute:
- `numTransactions - numNonVoteTransaction` + `numTransactions - numNonVoteTransactions`
@@ -65,28 +65,28 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" - { "numSlots": 126, "numTransactions": 126, - "numNonVoteTransaction": 1, + "numNonVoteTransactions": 1, "samplePeriodSecs": 60, "slot": 348125 }, { "numSlots": 126, "numTransactions": 126, - "numNonVoteTransaction": 1, + "numNonVoteTransactions": 1, "samplePeriodSecs": 60, "slot": 347999 }, { "numSlots": 125, "numTransactions": 125, - "numNonVoteTransaction": 0, + "numNonVoteTransactions": 0, "samplePeriodSecs": 60, "slot": 347873 }, { "numSlots": 125, "numTransactions": 125, - "numNonVoteTransaction": 0, + "numNonVoteTransactions": 0, "samplePeriodSecs": 60, "slot": 347748 }