Documentation ¶
Index ¶
Constants ¶
View Source
const ( EPOCH = 200 * time.Microsecond BUF_SIZE = 1424 // Max packet size, 1500 MTU is typical, avoids packet fragmentation. FANOUT = 5 // Number of peers randomly selected when selecting more than one. PROBE = 8 // Inverse of probability that an untrusted peer is randomly selected. NPEER_LIMIT = 2 // Maximum number of peer descriptors in a PEER message. MIN_WORK = 16 // Minimum amount of acceptable work in number of leading zero bits. MAX_TRUST = 25 // Maximum trust score, ensuring fair trust distribution from feedback. PING = 8 * time.Second // Time until peers are pinged with a GETPEER message. DROP = 16 * time.Second // Time until silent peers are dropped from the peer table. SHARE_DELAY = 20 * time.Second // Time until new peers are shared. Must be greater than DROP. PRUNE = 10 * time.Second // Period between pruning dats & peers. RINGSIZE = 1000 // Number of dats to store in ring buffer. LOGLEVEL_ERROR = LogLevel(0) // Base log level, for errors & status. LOGLEVEL_DEBUG = LogLevel(1) // Debugging log level. )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.