config

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2PConfig

type P2PConfig struct {
	AddrBookFilePath string      // address book file path
	ListenAddress    string      // server listen address
	MaxConnOutBound  int         // max connection out bound
	MaxConnInBound   int         // max connection in bound
	PersistentPeers  string      // persistent peers
	DebugServer      string      // p2p test debug server address
	DebugP2P         bool        // p2p debug flag
	DebugAddr        string      //debug address
	NAT              string      //NAT port mapping mechanism(none|upnp)
	SeedMode         bool        // whether run as dns seed(default false)
	DisableDNSSeed   bool        //Disable DNS seeding for peers
	DNSSeeds         string      //list of DNS seeds for the network that are used as one method to discover peers
	Service          ServiceFlag // service supported by this peer.
}

P2PConfig configuration of the p2p network.

type ServiceFlag added in v1.0.0

type ServiceFlag uint64

ServiceFlag identifies services supported by a bitcoin peer.

const (
	// SFNodeTX is a flag used to indicate a peer is a supports broadcasting tx.
	SFNodeTX ServiceFlag = iota

	// SFNodeBlockBroadCast is a flag used to indicate a peer supports broadcasting block.
	SFNodeBlockBroadCast

	// SFNodeBlockBraodSyncer is a flag used to indicate a peer supports synchronizing block
	SFNodeBlockSyncer

	// SFNodeBlockBraodSyncer is a test flag used to test p2p network
	SFNodeBroadCastTest
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL