Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CfgMigratorBootstrap configures whether the migration process is bootstrapped. CfgMigratorBootstrap = "migratorBootstrap" // CfgMigratorStartIndex configures the index of the first milestone to migrate. CfgMigratorStartIndex = "migratorStartIndex" )
Variables ¶
View Source
var (
Component *app.Component
)
View Source
var ParamsMigrator = &ParametersMigrator{ ReceiptMaxEntries: migrator.SensibleMaxEntriesCount, }
View Source
var ParamsReceipts = &ParametersReceipts{}
Functions ¶
This section is empty.
Types ¶
type ParametersMigrator ¶
type ParametersMigrator struct { // Enabled defines whether the migrator plugin is enabled. Enabled bool `default:"false" usage:"whether the migrator plugin is enabled"` // StateFilePath defines the path to the state file of the migrator. StateFilePath string `default:"migrator.state" usage:"path to the state file of the migrator"` // ReceiptMaxEntries defines the max amount of entries to embed within a receipt. ReceiptMaxEntries int `usage:"the max amount of entries to embed within a receipt"` // QueryCooldownPeriod defines the cooldown period for the service to ask for new data from the legacy node in case the migrator encounters an error. QueryCooldownPeriod time.Duration `` /* 138-byte string literal not displayed */ }
ParametersMigrator contains the definition of the parameters used by Migrator.
type ParametersReceipts ¶
type ParametersReceipts struct { Validator struct { API struct { // Address defines the address of the legacy node API to query for white-flag confirmation data. Address string `default:"http://localhost:14266" usage:"address of the legacy node API to query for white-flag confirmation data"` // Address defines the timeout of API calls. Timeout time.Duration `default:"5s" usage:"timeout of API calls"` } `name:"api"` Coordinator struct { // Address defines the address of the legacy coordinator. Address string `` /* 133-byte string literal not displayed */ // MerkleTreeDepth defines the depth of the Merkle tree of the coordinator. MerkleTreeDepth int `default:"24" usage:"depth of the Merkle tree of the coordinator"` } } }
ParametersReceipts contains the definition of the parameters used by Receipts.
Click to show internal directories.
Click to hide internal directories.