feat: add singleGossip commitment level

This commit is contained in:
Tyera Eulberg
2020-05-26 15:17:35 -06:00
committed by Michael Vines
parent ed08c25d2d
commit e2e4b47103
4 changed files with 6 additions and 5 deletions

View File

@ -94,11 +94,12 @@ function notificationResultAndContext(resultDescription: any) {
* 'recent': Query the most recent block which has reached 1 confirmation by the connected node
* 'root': Query the most recent block which has been rooted by the connected node
* 'single': Query the most recent block which has reached 1 confirmation by the cluster
* 'singleGossip': Query the most recent block which has reached 1 confirmation according to votes seen in gossip
* </pre>
*
* @typedef {'max' | 'recent' | 'root' | 'single'} Commitment
* @typedef {'max' | 'recent' | 'root' | 'single' | 'singleGossip'} Commitment
*/
export type Commitment = 'max' | 'recent' | 'root' | 'single';
export type Commitment = 'max' | 'recent' | 'root' | 'single' | 'singleGossip';
/**
* Filter for largest accounts query