Skip to content

Commit

Permalink
docs: client points to protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Jan 28, 2025
1 parent a7893e2 commit c4f63c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/clients/v2/accountant.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ func NewAccountant(accountID string, reservation *core.ReservedPayment, onDemand
// will attempt to use the active reservation first and check for quorum settings,
// then on-demand if the reservation is not available. The returned values are
// reservation period for reservation payments and cumulative payment for on-demand payments,
// and both fields are used to create the payment header and signature
// and both fields are used to create the payment header and signature.
// These generated values are used to create the payment header and signature, as specified in
// api/proto/common/v2/common_v2.proto
func (a *Accountant) BlobPaymentInfo(ctx context.Context, numSymbols uint32, quorumNumbers []uint8) (uint32, *big.Int, error) {
now := time.Now().Unix()
currentReservationPeriod := meterer.GetReservationPeriod(uint64(now), a.reservationWindow)
Expand Down

0 comments on commit c4f63c5

Please sign in to comment.