aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-20 19:18:39 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-23 16:34:01 +0800
commitaad4890082c1624795991d534db9497c8b63630d (patch)
tree88dca9b73bdcdea2cbed32471c37933c308ac54d /mobile
parenta0e42aa4e206247efe6df8706a2fb6bbdf6074b4 (diff)
downloadgo-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.gz
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.zst
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.zip
cmd/geth, core, light, mobile: removed state account StartingNonce
All account's nonce start at 0.
Diffstat (limited to 'mobile')
-rw-r--r--mobile/geth.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/mobile/geth.go b/mobile/geth.go
index e209b667c..738c0c548 100644
--- a/mobile/geth.go
+++ b/mobile/geth.go
@@ -25,11 +25,9 @@ import (
"path/filepath"
"github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/light"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/params"
@@ -63,10 +61,6 @@ type NodeConfig struct {
// empty genesis state is equivalent to using the mainnet's state.
EthereumGenesis string
- // EthereumTestnetNonces specifies whether to use account nonces from the testnet
- // range (2^20) or from the mainnet one (0).
- EthereumTestnetNonces bool
-
// EthereumDatabaseCache is the system memory in MB to allocate for database caching.
// A minimum of 16MB is always reserved.
EthereumDatabaseCache int
@@ -151,10 +145,6 @@ func NewNode(datadir string, config *NodeConfig) (*Node, error) {
GpobaseStepUp: 100,
GpobaseCorrectionFactor: 110,
}
- if config.EthereumTestnetNonces {
- state.StartingNonce = 1048576 // (2**20)
- light.StartingNonce = 1048576 // (2**20)
- }
if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
return les.New(ctx, ethConf)
}); err != nil {