Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
KafkaProducers []*KafkaProducer
OpenBlackBlock bool
LedgerGcRetain uint64
GenesisFile string
}
type Config ¶
type KafkaProducer ¶
type P2P ¶
type P2P struct {
Name string `json:"Names""`
// use for sign data
PrivateKey string `json:"PrivateKey"`
// `MaxPeers` is the maximum number of peers that can be connected.
MaxPeers uint `json:"MaxPeers"`
// `MaxPassivePeersRatio` is the ratio of MaxPeers that initiate an active connection to this node.
// the actual value is `MaxPeers / MaxPassivePeersRatio`
MaxPassivePeersRatio uint `json:"MaxPassivePeersRatio"`
// `MaxPendingPeers` is the maximum number of peers that wait to connect.
MaxPendingPeers uint `json:"MaxPendingPeers"`
BootNodes []string `json:"BootNodes"`
Port uint `json:"Port"`
Datadir string `json:"Datadir"`
NetID uint `json:"NetID"`
}
Click to show internal directories.
Click to hide internal directories.