multictladdr

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressSelector

func AddressSelector(addrConf []config.CurioAddresses) func() (*MultiAddressSelector, error)

Types

type MultiAddressSelector

type MultiAddressSelector struct {
	MinerMap map[address.Address]api.AddressConfig
}

func (*MultiAddressSelector) AddressFor

func (as *MultiAddressSelector) AddressFor(ctx context.Context, a ctladdr.NodeApi, minerID address.Address, mi api.MinerInfo, use api.AddrUse, goodFunds, minFunds abi.TokenAmount) (address.Address, abi.TokenAmount, error)

Jump to

Keyboard shortcuts

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