package
1.2.8
Repository: https://github.com/iotaledger/hornet.git
Documentation: pkg.go.dev

# Functions

MigratedFundsCaller is an event caller which gets migrated funds passed.
NewReceiptService creates a new ReceiptService.
NewService creates a new MigratorService.
NewValidator creates a new Validator.

# Constants

SensibleMaxEntriesCount defines an amount of entries within receipts which allows a milestone with 8 parents and 2 sigs/pub keys to fly under the next pow requirement step.

# Variables

ErrEmptyBundle is returned when a bundle contains no transaction.
ErrInvalidReceiptServiceState is returned when the state of the ReceiptService is invalid.
ErrInvalidState is returned when the content of the state file is invalid.
ErrStateFileAlreadyExists is returned when a new state is tried to be initialized but a state file already exists.

# Structs

MigratorService is a service querying and validating batches of migrated funds.
MigratorServiceEvents are events happening around a MigratorService.
ReceiptService is in charge of persisting and validating a batch of receipts.
State stores the latest state of the MigratorService.
Validator takes care of fetching and validating white-flag confirmation data from legacy nodes and wrapping them into receipts.

# Interfaces

LegacyAPI defines the calls of the legacy API that are used.
Queryer defines the interface used to query the migrated funds.

# Type aliases

OnServiceErrorFunc is a function which is called when the service encounters an error which prevents it from functioning properly.
ReceiptPersistFunc is a function which persists a receipt.
ReceiptValidateFunc is a function which validates a receipt.