Learn R Programming

gethr (version 0.1.0)

miner_setGasPrice: Minimal gas price for mining.

Description

miner_setGasPrice sets the minimal accepted gas price when mining transactions. Any transactions that are below this limit are excluded from the mining process.

Usage

miner_setGasPrice(price)

Arguments

price

Integer - Value of the gas price.

Value

Boolean - true if changed, otherwise false.

See Also

Other miner functions: gethr, miner_setEtherBase, miner_setExtra, miner_start, miner_stop

Examples

Run this code
# NOT RUN {
miner_setGasPrice(10)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab