Miner

package
v0.0.0-...-556a089 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllocationRoot        uint8 = 0
	AllocationSub         uint8 = 1
	AllocationSelfSub     uint8 = 2
	AllocationCustomedSub uint8 = 3
)
View Source
const (
	Miner     uint8 = 0
	RootOwner uint8 = 1
)

Variables

View Source
var (
	MinerAddr = "0xCAB59645aE535A7b5a4f81d8D17E2fe0d2Cf4687"
)
View Source
var SettingRecords = &Bas_Ethereum.Gallery{}

Functions

func BasMiner

func BasMiner() *Contract.BasMiner

func ReWatch

func ReWatch()

func ResetConnAndService

func ResetConnAndService()

func ShowSysParams

func ShowSysParams()

func Sync

func Sync()

func SyncGapWithNoTrust

func SyncGapWithNoTrust(blockNumber uint64)

Types

type Setting

type Setting struct {
	Allocation [15]big.Int
	Miners     []common.Address
}
---About Allocation---

0 RootSetting.ToAdmin 1 RootSetting.ToBurn 2 RootSetting.ToMiner

3 DefaultSubSetting.ToAdmin 4 DefaultSubSetting.ToBurn 5 DefaultSubSetting.ToMiner 6 DefaultSubSetting.ToRootOwner

7 SelfSubSetting.ToAdmin 8 SelfSubSetting.ToBurn 9 SelfSubSetting.ToMiner 10 SelfSubSetting.ToRootOwner

11 CustomedSubSetting.ToAdmin 12 CustomedSubSetting.ToBurn 13 CustomedSubSetting.ToMiner 14 CustomedSubSetting.ToRootOwner

type SimplifiedReceipt

type SimplifiedReceipt struct {
	BlockNumber   uint64
	TxIndex       uint
	ReceiptNumber Bas_Ethereum.Hash
	Amount        big.Int
	Allocation    uint8
}

type SimplifiedWithdraw

type SimplifiedWithdraw struct {
	BlockNumber uint64
	TxIndex     uint
	Drawer      common.Address
	Amount      big.Int
}

Jump to

Keyboard shortcuts

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