beacon

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.

Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(params *chaincfg.Params) *beaconChain

Types

type BlockGenerator

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

func NewChainBlockGenerator

func NewChainBlockGenerator(stateInfo StateProvider) *BlockGenerator

func (*BlockGenerator) AcceptBlock

func (c *BlockGenerator) AcceptBlock(wire.BlockHeader) error

func (*BlockGenerator) NewBlockHeader

func (c *BlockGenerator) NewBlockHeader(version wire.BVersion, prevHash, merkleRootHash chainhash.Hash,
	timestamp time.Time, bits uint32, nonce uint32) (wire.BlockHeader, error)

func (*BlockGenerator) ValidateBlock

func (c *BlockGenerator) ValidateBlock(wire.BlockHeader) error

type StateProvider

type StateProvider struct {
	ShardCount func() (uint32, error)
}

Jump to

Keyboard shortcuts

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