minor readme update + jeffs nits
This commit is contained in:
parent
95657c9f60
commit
d2c2ff2165
|
@ -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
|
||||
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
|
||||
### Overview
|
||||
|
||||
|
|
|
@ -61,19 +61,19 @@ func NewExporterConfig(
|
|||
)
|
||||
if lightMode {
|
||||
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 {
|
||||
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 {
|
||||
return nil, fmt.Errorf("'-light-mode' is imcompatible with `-nodekey`")
|
||||
return nil, fmt.Errorf("'-light-mode' is incompatible with `-nodekey`")
|
||||
}
|
||||
|
||||
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`")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -101,4 +101,5 @@ func TestCountVoteTransactions(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
// https://explorer.solana.com/block/297609329
|
||||
assert.Equal(t, 1048, voteCount)
|
||||
assert.Equal(t, 446, len(block.Transactions)-voteCount)
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
)
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue