Set bank commitment level to recent
This includes unrooted votes. Ref T666
This commit is contained in:
parent
1e317bf2d3
commit
ec50e7ccef
|
@ -124,7 +124,7 @@ func (collector solanaCollector) Collect(ch chan<- prometheus.Metric) {
|
||||||
)
|
)
|
||||||
|
|
||||||
req, err := http.NewRequest("POST", collector.rpcAddr,
|
req, err := http.NewRequest("POST", collector.rpcAddr,
|
||||||
bytes.NewBufferString(`{"jsonrpc":"2.0","id":1, "method":"getVoteAccounts"}`))
|
bytes.NewBufferString(`{"jsonrpc":"2.0","id":1, "method":"getVoteAccounts", "params":[{"commitment":"recent"}]}`))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue