The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/p2p/stream/protocols/sync/const.go

17 lines
473 B

package sync
import "time"
const (
// GetBlockHashesAmountCap is the cap of GetBlockHashes reqeust
GetBlockHashesAmountCap = 50
// GetBlocksByNumAmountCap is the cap of request of a single GetBlocksByNum request
GetBlocksByNumAmountCap = 10
// GetBlocksByHashesAmountCap is the cap of request of single GetBlocksByHashes request
GetBlocksByHashesAmountCap = 10
// minAdvertiseInterval is the minimum advertise interval
minAdvertiseInterval = 1 * time.Minute
)