migrate

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// migration state for channel
	MigrationStateInitialized int = 0
	MigrationStateSubmitted   int = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrateChannelProcessor

type MigrateChannelProcessor struct {
	// contains filtered or unexported fields
}

MigrateChannelProcessor defines the structure of channel's CelerLedger migration processor

func NewMigrateChannelProcessor

func NewMigrateChannelProcessor(
	nodeConfig common.GlobalNodeConfig,
	signer eth.Signer,
	dal *storage.DAL,
	connectionMgr *rpc.ConnectionManager,
	monitorService intfs.MonitorService,
	isOsp bool) *MigrateChannelProcessor

NewMigrateChannelProcessor returns a migrate-ledger processor

func (*MigrateChannelProcessor) CheckPeerChannelMigration

func (p *MigrateChannelProcessor) CheckPeerChannelMigration(peer ctype.Addr)

CheckPeerChannelMigration gets all channels of peer and migrates each channel (TODO): consider that everytime client gets online, need to check migration process(?performance?)

func (*MigrateChannelProcessor) ProcessMigrateChannelRequest

func (p *MigrateChannelProcessor) ProcessMigrateChannelRequest(req *rpc.MigrateChannelRequest) (*rpc.MigrateChannelResponse, error)

ProcessMigrateChannelRequest processes migrate channel request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL