forked from 0xPolygonHermez/cdk-erigon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmining.go
24 lines (21 loc) · 1005 Bytes
/
mining.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package params
import (
"crypto/ecdsa"
"math/big"
"time"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/hexutility"
)
// MiningConfig is the configuration parameters of mining.
type MiningConfig struct {
Enabled bool
EnabledPOS bool
Noverify bool // Disable remote mining solution verification(only useful in ethash).
Etherbase libcommon.Address `toml:",omitempty"` // Public address for block mining rewards
SigKey *ecdsa.PrivateKey // ECDSA private key for signing blocks
Notify []string `toml:",omitempty"` // HTTP URL list to be notified of new work packages(only useful in ethash).
ExtraData hexutility.Bytes `toml:",omitempty"` // Block extra data set by the miner
GasLimit uint64 // Target gas limit for mined blocks.
GasPrice *big.Int // Minimum gas price for mining a transaction
Recommit time.Duration // The time interval for miner to re-create mining work.
}