Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DialTimeoutDefault is a default dial timeout of morph chain client connection. DialTimeoutDefault = 5 * time.Second // NotaryDepositAmountDefault is a default deposit amount to notary contract. NotaryDepositAmountDefault = 5000_0000 // 0.5 Fixed8 // NotaryDepositDurationDefault is a default deposit duration. NotaryDepositDurationDefault uint32 = 1000 // MaxConnPerHostDefault is a default maximum of connections per host of the morph client. MaxConnPerHostDefault = 10 // PriorityDefault is a default endpoint priority for the morph client. PriorityDefault = 1 // CacheTTLDefault is a default value for cached values TTL. // It is 0, because actual default depends on block time. CacheTTLDefault = time.Duration(0) )
Variables ¶
This section is empty.
Functions ¶
func CacheTTL ¶ added in v0.32.0
CacheTTL returns the value of "cache_ttl" config parameter from "morph" section.
Returns CacheTTLDefault if value is zero or invalid. Supports negative durations.
func DialTimeout ¶
DialTimeout returns the value of "dial_timeout" config parameter from "morph" section.
Returns DialTimeoutDefault if the value is not positive duration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.