aboutsummaryrefslogtreecommitdiffstats
path: root/core/helper_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
commitc59c826ab45e2e999dc9a173e5bce9727754f544 (patch)
tree8da12f3abb4d40450dc3b42c7328d43088e5d752 /core/helper_test.go
parentfd5c5b2969c74cbd7a159016f6cbddad58c0f461 (diff)
downloaddexon-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.gz
dexon-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.zst
dexon-c59c826ab45e2e999dc9a173e5bce9727754f544.zip
fixed stack level
Diffstat (limited to 'core/helper_test.go')
0 files changed, 0 insertions, 0 deletions
>46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
// Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// Contains all the wrappers from the node package to support client side node
// management on mobile platforms.

package geth

import (
    "encoding/json"
    "fmt"
    "path/filepath"

    "github.com/tangerine-network/go-tangerine/core"
    "github.com/tangerine-network/go-tangerine/eth"
    "github.com/tangerine-network/go-tangerine/eth/downloader"
    "github.com/tangerine-network/go-tangerine/ethclient"
    "github.com/tangerine-network/go-tangerine/ethstats"
    "github.com/tangerine-network/go-tangerine/internal/debug"
    "github.com/tangerine-network/go-tangerine/les"
    "github.com/tangerine-network/go-tangerine/node"
    "github.com/tangerine-network/go-tangerine/p2p"
    "github.com/tangerine-network/go-tangerine/p2p/nat"
    "github.com/tangerine-network/go-tangerine/params"
    whisper "github.com/tangerine-network/go-tangerine/whisper/whisperv6"
)

// NodeConfig represents the collection of configuration values to fine tune the Geth
// node embedded into a mobile process. The available values are a subset of the
// entire API provided by go-ethereum to reduce the maintenance surface and dev
// complexity.
type NodeConfig struct {
    // Bootstrap nodes used to establish connectivity with the rest of the network.
    BootstrapNodes *Enodes

    // MaxPeers is the maximum number of peers that can be connected. If this is
    // set to zero, then only the configured static and trusted peers can connect.
    MaxPeers int

    // EthereumEnabled specifies whether the node should run the Ethereum protocol.
    EthereumEnabled bool

    // EthereumNetworkID is the network identifier used by the Ethereum protocol to
    // decide if remote peers should be accepted or not.
    EthereumNetworkID int64 // uint64 in truth, but Java can't handle that...

    // EthereumGenesis is the genesis JSON to use to seed the blockchain with. An
    // empty genesis state is equivalent to using the mainnet's state.
    EthereumGenesis string

    // EthereumDatabaseCache is the system memory in MB to allocate for database caching.
    // A minimum of 16MB is always reserved.
    EthereumDatabaseCache int

    // EthereumNetStats is a netstats connection string to use to report various
    // chain, transaction and node stats to a monitoring server.
    //
    // It has the form "nodename:secret@host:port"
    EthereumNetStats string

    // WhisperEnabled specifies whether the node should run the Whisper protocol.
    WhisperEnabled bool