Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MinDealDuration is the minium deal duration accepted in the Filecoin network. // Original calculation: 180 * EpochsInADay MinDealDuration = 180 * (24 * 60 * 60 / 25) // CidUndef is a magic value to represent an undefined cid as a string. CidUndef = "CID_UNDEF" // DefaultCidUndef is the string generated by the cid module's String() func for an undefined cid. DefaultCidUndef = "b" )
Variables ¶
View Source
var ( // AvgBlockTime is the expected duration between block in two consecutive epochs. // Defined at the Filecoin spec level. AvgBlockTime = time.Second * 30 )
Functions ¶
func CidFromString ¶ added in v0.2.0
CidFromString converts a string to a cid assuming that an empty string is cid.Undef.
func CidToString ¶ added in v0.2.0
CidToString converts a cid to string, representing cid.Undef as an empty string.
func MustParseAddr ¶
MustParseAddr returns a parsed Multiaddr, or panics if invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.