commit

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package commit provides an implementation for finding transaction commit status that is specific to the Gateway embedded within a peer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder struct {
	// contains filtered or unexported fields
}

Finder is used to obtain transaction status.

func NewFinder

func NewFinder(provider ledger.Provider, notifier *Notifier) *Finder

func (*Finder) TransactionStatus

func (finder *Finder) TransactionStatus(ctx context.Context, channelName string, transactionID string) (*Status, error)

TransactionStatus provides status of a specified transaction on a given channel. If the transaction has already committed, the status is returned immediately; otherwise this call blocks waiting for the transaction to be committed or the context to be cancelled.

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier provides notification of transaction commits.

func NewNotifier

func NewNotifier(provider ledger.Provider) *Notifier

type Status

type Status struct {
	BlockNumber   uint64
	TransactionID string
	Code          peer.TxValidationCode
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL