constants

package
v0.0.0-...-1e43bc6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// hard limit for any block on-wire size in bytes
	// the 32 is explicit - many assumptions we won't cross over
	HardMaxBlockSize int32 = 2 * 1024 * 1024

	// SANCHECK - will almost certainly need to be updated for CBOR ( whichever ends up providing less available space )
	// Based on DAG-PB/UnixFs-v1, with max len of "2MiB shave a few bytes" encoded as 3 varint bytes
	// (2b(type2/file)+4b(data-field:3-byte-len-delimited)+4b(size-field:3-byte-varint))+(4b(DAG-type-1:3-byte-len-delimited))
	HardMaxPayloadSize int32 = HardMaxBlockSize - (2 + 4 + 4 + 4)
)
View Source
const PerformSanityChecks = true

Variables

View Source
var LongTests bool
View Source
var VeryLongTests bool

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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