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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.