@@ -25,11 +25,9 @@ import (
25
25
"path/filepath"
26
26
27
27
"github.com/ethereum/go-ethereum/common"
28
- "github.com/ethereum/go-ethereum/core/state"
29
28
"github.com/ethereum/go-ethereum/eth"
30
29
"github.com/ethereum/go-ethereum/ethclient"
31
30
"github.com/ethereum/go-ethereum/les"
32
- "github.com/ethereum/go-ethereum/light"
33
31
"github.com/ethereum/go-ethereum/node"
34
32
"github.com/ethereum/go-ethereum/p2p/nat"
35
33
"github.com/ethereum/go-ethereum/params"
@@ -63,10 +61,6 @@ type NodeConfig struct {
63
61
// empty genesis state is equivalent to using the mainnet's state.
64
62
EthereumGenesis string
65
63
66
- // EthereumTestnetNonces specifies whether to use account nonces from the testnet
67
- // range (2^20) or from the mainnet one (0).
68
- EthereumTestnetNonces bool
69
-
70
64
// EthereumDatabaseCache is the system memory in MB to allocate for database caching.
71
65
// A minimum of 16MB is always reserved.
72
66
EthereumDatabaseCache int
@@ -151,10 +145,6 @@ func NewNode(datadir string, config *NodeConfig) (*Node, error) {
151
145
GpobaseStepUp : 100 ,
152
146
GpobaseCorrectionFactor : 110 ,
153
147
}
154
- if config .EthereumTestnetNonces {
155
- state .StartingNonce = 1048576 // (2**20)
156
- light .StartingNonce = 1048576 // (2**20)
157
- }
158
148
if err := stack .Register (func (ctx * node.ServiceContext ) (node.Service , error ) {
159
149
return les .New (ctx , ethConf )
160
150
}); err != nil {
0 commit comments