This commit is contained in:
Patrick O'Grady 2020-10-27 10:25:57 -07:00
parent 2200f52687
commit c2b434e04a
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85

View file

@ -775,6 +775,8 @@ func (i *Indexer) GetCoins(
return i.coinStorage.GetCoins(ctx, accountIdentifier) return i.coinStorage.GetCoins(ctx, accountIdentifier)
} }
// GetBalance returns the balance of an account
// at a particular *types.PartialBlockIdentifier.
func (i *Indexer) GetBalance( func (i *Indexer) GetBalance(
ctx context.Context, ctx context.Context,
accountIdentifier *types.AccountIdentifier, accountIdentifier *types.AccountIdentifier,