Documentation ¶
Overview ¶
Package node is a full-node Parallelcoin implementation written in Go.
The default options are sane for most users. This means pod will work 'out of the box' for most users. However, there are also a wide variety of flags that can be used to control it.
The following section provides a usage overview which enumerates the flags. An interesting point to note is that the long form of all of these options ( except -C/--configfile and -D --datadir) can be specified in a configuration file that is automatically parsed when pod starts up. By default, the configuration file is located at ~/.pod/pod. conf on POSIX-style operating systems and %LOCALAPPDATA%\pod\pod. conf on Windows. The -D (--datadir) flag, can be used to override this location.
NAME:
pod node - start parallelcoin full node
USAGE:
pod node [global options] command [command options] [arguments...]
VERSION:
v0.0.1
COMMANDS:
dropaddrindex drop the address search index droptxindex drop the address search index dropcfindex drop the address search index
GLOBAL OPTIONS:
--help, -h show help
Index ¶
- Constants
- Variables
- func Main(cx *conte.Xt, shutdownChan chan struct{}, killswitch chan struct{}, ...) (err error)
- func NewCheckpointFromStr(checkpoint string) (chaincfg.Checkpoint, error)
- func ParseCheckpoints(checkpointStrings []string) ([]chaincfg.Checkpoint, error)
- func ValidDbType(dbType string) bool
- func ValidLogLevel(logLevel string) bool
Constants ¶
const ( DefaultConfigFilename = "conf.json" DefaultDataDirname = "node" // DefaultLogLevel = "info" DefaultLogDirname = "node" // DefaultLogFilename = "log" // DefaultAddress = "127.0.0.1" DefaultPort = "11047" // DefaultRPCPort = "11048" // DefalutRPCAddr = "127.0.0.1" // DefaultRPCServer = "127.0.0.1:11048" // DefaultListener = "127.0.0.1:11047" DefaultRPCListener = "127.0.0.1" DefaultMaxPeers = 23 DefaultBanDuration = time.Hour * 24 DefaultBanThreshold = 100 // DefaultConnectTimeout = time.Second * 30 DefaultMaxRPCClients = 10 DefaultMaxRPCWebsockets = 25 DefaultMaxRPCConcurrentReqs = 20 DefaultDbType = "ffldb" DefaultFreeTxRelayLimit = 15.0 DefaultTrickleInterval = peer.DefaultTrickleInterval // DefaultBlockMinSize = 80 DefaultBlockMaxSize = 200000 // DefaultBlockMinWeight = 10 DefaultBlockMaxWeight = 3000000 BlockMaxSizeMin = 1000 BlockMaxSizeMax = blockchain.MaxBlockBaseSize - 1000 BlockMaxWeightMin = 4000 BlockMaxWeightMax = blockchain.MaxBlockWeight - 4000 // DefaultGenerate = false // DefaultGenThreads = 1 // DefaultMinerListener = "127.0.0.1:11011" DefaultMaxOrphanTransactions = 100 // DefaultMaxOrphanTxSize = 100000 DefaultSigCacheMaxSize = 100000 )
A lotta constants that probably aren't being used
Variables ¶
var ( // // DefaultConfigFile is // DefaultConfigFile = filepath.Join(DefaultHomeDir, DefaultConfigFilename) // // DefaultDataDir is // DefaultDataDir = filepath.Join(DefaultHomeDir, DefaultDataDirname) // DefaultHomeDir is DefaultHomeDir = appdata.Dir("pod", false) // // DefaultLogDir is // DefaultLogDir = filepath.Join(DefaultHomeDir, DefaultLogDirname) // DefaultRPCCertFile is // DefaultRPCCertFile = filepath.Join(DefaultHomeDir, "rpc.cert") // // DefaultRPCKeyFile is // DefaultRPCKeyFile = filepath.Join(DefaultHomeDir, "rpc.key") // // KnownDbTypes is KnownDbTypes = database.SupportedDrivers() )
nolint
Functions ¶
func Main ¶
func Main(cx *conte.Xt, shutdownChan chan struct{}, killswitch chan struct{}, nodechan chan *rpc.Server, wg *sync.WaitGroup) (err error)
Main is the real main function for pod. It is necessary to work around the fact that deferred functions do not run when os.Exit() is called. The optional serverChan parameter is mainly used by the service code to be notified with the server once it is setup so it can gracefully stop it when requested from the service control manager.
- shutdownchan can be used to wait for the node to shut down
- killswitch can be closed to shut the node down
func NewCheckpointFromStr ¶
func NewCheckpointFromStr(checkpoint string) (chaincfg.Checkpoint, error)
NewCheckpointFromStr parses checkpoints in the '<height>:<hash>' format.
func ParseCheckpoints ¶
func ParseCheckpoints(checkpointStrings []string) ([]chaincfg.Checkpoint, error)
ParseCheckpoints checks the checkpoint strings for valid syntax ( '<height>:<hash>') and parses them to chaincfg.Checkpoint instances.
func ValidDbType ¶
ValidDbType returns whether or not dbType is a supported database type.
func ValidLogLevel ¶
ValidLogLevel returns whether or not logLevel is a valid debug log level.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
rpctest
Package rpctest provides a pod-specific RPC testing harness crafting and executing integration tests by driving a `pod` instance via the `RPC` interface.
|
Package rpctest provides a pod-specific RPC testing harness crafting and executing integration tests by driving a `pod` instance via the `RPC` interface. |
Package mempool provides a policy-enforced pool of unmined bitcoin transactions.
|
Package mempool provides a policy-enforced pool of unmined bitcoin transactions. |