Set bank commitment level to recent

This includes unrooted votes.

Ref T666
This commit is contained in:
Leopold Schabel 2020-03-09 23:42:51 +01:00
parent 1e317bf2d3
commit ec50e7ccef
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (collector solanaCollector) Collect(ch chan<- prometheus.Metric) {
)
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 {
panic(err)
}