consensus

package
v0.2300.8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package consensus contains common consensus-related flags.

Index

Constants

View Source
const (
	// CfgTxNonce configures the nonce.
	CfgTxNonce = "transaction.nonce"

	// CfgTxFeeAmount configures the fee amount in base units.
	CfgTxFeeAmount = "transaction.fee.amount"

	// CfgTxFeeGas configures the maximum gas limit.
	CfgTxFeeGas = "transaction.fee.gas"

	// CfgTxFile configures the filename for the transaction.
	CfgTxFile = "transaction.file"

	// CfgTxUnsigned makes SaveTx save an unsigned transaction.
	CfgTxUnsigned = "transaction.unsigned"
)

Variables

View Source
var (
	TxFlags     = flag.NewFlagSet("", flag.ContinueOnError)
	TxFileFlags = flag.NewFlagSet("", flag.ContinueOnError)
)

Functions

func AssertTxFileOK

func AssertTxFileOK()

func GetTxNonceAndFee

func GetTxNonceAndFee() (uint64, *transaction.Fee)

func InitGenesis

func InitGenesis() *genesisAPI.Document

func SignAndSaveTx

func SignAndSaveTx(ctx context.Context, tx *transaction.Transaction, signer signature.Signer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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