receipt

package
v2.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParamsReceipts = &ParametersReceipts{}
View Source
var (
	Plugin *app.Plugin
)

Functions

This section is empty.

Types

type ParametersReceipts

type ParametersReceipts struct {
	// Enabled defines whether the receipts plugin is enabled.
	Enabled bool `default:"false" usage:"whether the receipts plugin is enabled"`

	Backup struct {
		// CfgReceiptsBackupEnabled configures whether receipts are additionally stored in the specified folder.
		Enabled bool `default:"false" usage:"whether to backup receipts in the backup folder"`
		// CfgReceiptsBackupPath configures the path to the receipts backup folder.
		Path string `default:"receipts" usage:"path to the receipts backup folder"`
	}

	Validator struct {
		// CfgReceiptsValidatorValidate configures whether to validate receipts.
		Validate bool `default:"false" usage:"whether to validate receipts"`
		// CfgReceiptsValidatorIgnoreSoftErrors configures the node to not panic if a soft error is encountered.
		IgnoreSoftErrors bool `default:"false" usage:"whether to ignore soft errors and not panic if one is encountered"`

		API struct {
			// CfgReceiptsValidatorAPIAddress configures the address of the legacy node API to query for white-flag confirmation data.
			Address string `default:"http://localhost:14266" usage:"address of the legacy node API"`
			// CfgReceiptsValidatorAPITimeout configures the timeout of API calls.
			Timeout time.Duration `default:"5s" usage:"timeout of API calls"`
		} `name:"api"`

		Coordinator struct {
			// Address configures the address of the legacy coordinator.
			Address string `` /* 133-byte string literal not displayed */
			// MerkleTreeDepth configures the depth of the Merkle tree of the legacy coordinator.
			MerkleTreeDepth int `default:"24" usage:"depth of the Merkle tree of the coordinator"`
		}
	}
}

ParametersReceipts contains the definition of the parameters used by receipts.

Jump to

Keyboard shortcuts

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