ethash

package
v0.0.0-...-7b0d77e Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CalifornicumBlockReward = big.NewInt(2e+18) // Block reward in wei for successfully mining a block upward from CalifornicumBlockReward
)

Functions

func AccumulateRewards

func AccumulateRewards(

	header BlockNumAndCoinbase,
	uncles []BlockNumAndCoinbase,
	state vm.State)

AccumulateRewards credits the coinbase of the given block with the mining reward. The total reward consists of the static block reward and rewards for included uncles. The coinbase of each uncle block is also rewarded.

Types

type BlockNumAndCoinbase

type BlockNumAndCoinbase = struct {
	Number types.BlockNum
	Author common.Address
}

Jump to

Keyboard shortcuts

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