Documentation ¶
Index ¶
Constants ¶
View Source
const ( XNS = "XNS" FundsDepositName = "genesis_deposit" MigrationDaemonLockup = 1604188800 MigrationDaemonVesting = 1735689600 MigrationDaemonVestingStep = 2629746 MigrationDaemonMaturePulse = 1735689600 FundsAndEnterpriseLockup = 0 FundsAndEnterpriseVesting = 0 FundsAndEnterpriseVestingStep = 1 FundsAndEnterpriseMaturePulse = 0 NetworkIncentivesLockup = 1672531200 NetworkIncentivesVesting = 1635724800 NetworkIncentivesVestingStep = 1 NetworkIncentivesMaturePulse = 1735689600 ApplicationIncentivesLockup = 1672531200 ApplicationIncentivesVesting = 1735689600 ApplicationIncentivesVestingStep = 2629746 ApplicationIncentivesMaturePulse = 1735689600 FoundationLockup = 1672531200 FoundationVesting = 1735689600 FoundationVestingStep = 2629746 FoundationMaturePulse = 1735689600 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRecord ¶
type BaseRecord struct { DB store.DB DropModifier drop.Modifier PulseAppender insolarPulse.Appender PulseAccessor insolarPulse.Accessor RecordModifier object.RecordModifier IndexModifier object.IndexModifier }
BaseRecord provides methods for genesis base record manipulation.
func (*BaseRecord) Create ¶
func (br *BaseRecord) Create(ctx context.Context) error
Create creates new base genesis record if needed.
func (*BaseRecord) Done ¶
func (br *BaseRecord) Done(ctx context.Context) error
Done saves genesis value. Should be called when all genesis steps finished properly.
func (*BaseRecord) IsGenesisRequired ¶
func (br *BaseRecord) IsGenesisRequired(ctx context.Context) (bool, error)
IsGenesisRequired checks if genesis record already exists.
type DiscoveryNodeManager ¶
type DiscoveryNodeManager struct {
// contains filtered or unexported fields
}
DiscoveryNodeManager should be created by NewDiscoveryNodeManager.
func NewDiscoveryNodeManager ¶
func NewDiscoveryNodeManager( am artifact.Manager, ) *DiscoveryNodeManager
NewDiscoveryNodeManager creates new DiscoveryNodeManager instance.
func (*DiscoveryNodeManager) StoreDiscoveryNodes ¶
func (nm *DiscoveryNodeManager) StoreDiscoveryNodes(ctx context.Context, discoveryNodes []insolar.DiscoveryNodeRegister) error
StoreDiscoveryNodes saves discovery nodes objects and saves discovery nodes index in node domain index. If node domain index not empty this method does nothing.
type Genesis ¶
type Genesis struct { ArtifactManager artifact.Manager BaseRecord *BaseRecord DiscoveryNodes []insolar.DiscoveryNodeRegister PluginsDir string ContractsConfig insolar.GenesisContractsConfig }
Genesis holds data and objects required for genesis on heavy node.
Click to show internal directories.
Click to hide internal directories.