minor readme update + jeffs nits

This commit is contained in:
Matt Johnstone 2024-11-05 20:54:24 +02:00
parent 95657c9f60
commit d2c2ff2165
No known key found for this signature in database
GPG Key ID: BE985FBB9BE7D3BB
4 changed files with 6 additions and 7 deletions

View File

@ -56,9 +56,6 @@ The exporter is configured via the following command line arguments:
* Configuring `-monitor-block-sizes` with many `-nodekey`'s can potentially strain the node - every block produced * Configuring `-monitor-block-sizes` with many `-nodekey`'s can potentially strain the node - every block produced
by a configured `-nodekey` is fetched, and a typical block can be as large as 5MB. by a configured `-nodekey` is fetched, and a typical block can be as large as 5MB.
If you want verbose logs, specify `-v=<num>`. Higher verbosity means more debug output. For most users, the default
verbosity level is fine. If you want detailed log output for missed blocks, run with `-v=1`.
## Metrics ## Metrics
### Overview ### Overview

View File

@ -61,19 +61,19 @@ func NewExporterConfig(
) )
if lightMode { if lightMode {
if comprehensiveSlotTracking { if comprehensiveSlotTracking {
return nil, fmt.Errorf("'-light-mode' is imcompatible with `-comprehensive-slot-tracking`") return nil, fmt.Errorf("'-light-mode' is incompatible with `-comprehensive-slot-tracking`")
} }
if monitorBlockSizes { if monitorBlockSizes {
return nil, fmt.Errorf("'-light-mode' is imcompatible with `-monitor-block-sizes`") return nil, fmt.Errorf("'-light-mode' is incompatible with `-monitor-block-sizes`")
} }
if len(nodeKeys) > 0 { if len(nodeKeys) > 0 {
return nil, fmt.Errorf("'-light-mode' is imcompatible with `-nodekey`") return nil, fmt.Errorf("'-light-mode' is incompatible with `-nodekey`")
} }
if len(balanceAddresses) > 0 { if len(balanceAddresses) > 0 {
return nil, fmt.Errorf("'-light-mode' is imcompatible with `-balance-addresses`") return nil, fmt.Errorf("'-light-mode' is incompatible with `-balance-addresses`")
} }
} }

View File

@ -101,4 +101,5 @@ func TestCountVoteTransactions(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
// https://explorer.solana.com/block/297609329 // https://explorer.solana.com/block/297609329
assert.Equal(t, 1048, voteCount) assert.Equal(t, 1048, voteCount)
assert.Equal(t, 446, len(block.Transactions)-voteCount)
} }

View File

@ -7,6 +7,7 @@ import (
) )
func newMethodTester(t *testing.T, method string, result any) (*MockServer, *Client) { func newMethodTester(t *testing.T, method string, result any) (*MockServer, *Client) {
t.Helper()
return NewMockClient(t, map[string]any{method: result}, nil, nil, nil, nil) return NewMockClient(t, map[string]any{method: result}, nil, nil, nil, nil)
} }