Documentation ¶
Index ¶
Constants ¶
View Source
const ( PriorityDatabase = iota PriorityChains PriorityPeering PriorityNodeConnection PriorityWebAPI PriorityDBGarbageCollection PriorityMetrics )
View Source
const MaxPayloadSize = iotago.BlockBinSerializedMaxSize - serializer.OneByte - serializer.OneByte - (iotago.BlockMaxParents * iotago.BlockIDLength) - serializer.UInt32ByteSize - serializer.UInt64ByteSize // Nonce
Variables ¶
View Source
var ( L1ForTesting = &L1Params{ MaxPayloadSize: MaxPayloadSize, Protocol: &iotago.ProtocolParameters{ Version: tpkg.TestProtoParas.Version, NetworkName: tpkg.TestProtoParas.NetworkName, Bech32HRP: tpkg.TestProtoParas.Bech32HRP, MinPoWScore: tpkg.TestProtoParas.MinPoWScore, RentStructure: iotago.RentStructure{ VByteCost: 10, VBFactorData: 1, VBFactorKey: 1, }, TokenSupply: tpkg.TestProtoParas.TokenSupply, }, BaseToken: &BaseToken{ Name: "Iota", TickerSymbol: "MIOTA", Unit: "MIOTA", Subunit: "IOTA", Decimals: 6, UseMetricPrefix: false, }, } )
Functions ¶
func InitL1Lazy ¶ added in v0.3.0
func InitL1Lazy(f func())
InitL1Lazy sets a function to be called the first time L1() is called. The function must call InitL1().
Types ¶
Click to show internal directories.
Click to hide internal directories.