coinbase

package
v0.0.0-...-fc8b1f8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 10 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockCoinBaseReward

func BlockCoinBaseReward(blockHeight uint64) *fields.Amount

func BlockCoinBaseRewardNumber

func BlockCoinBaseRewardNumber(blockHeight uint64) uint8

*

  • 货币发行算法: 前 66 年总量 2200 万枚

func CalculationOfInterestBitcoinMortgageLoanAmount

func CalculationOfInterestBitcoinMortgageLoanAmount(totalLendingPercentage float64) (float64, float64)

Bitcoin mortgage loan: calculate the quantity that can be borrowed Totallendingpercentage total percentage lent Return lendable quantity and prepaid interest

func CreateCoinbaseTx

func CreateCoinbaseTx(blockheight uint64) *transactions.Transaction_0_Coinbase

func MoveBtcCoinRewardNumber

func MoveBtcCoinRewardNumber(btcidx int64) int64

The number of additional HACs issued by the BTC (unit: PCS)

func ParseMinerPoolCoinbaseMessage

func ParseMinerPoolCoinbaseMessage(msgwords string, minernum uint32) [16]byte

func ParseSatoshiGenesisByItemString

func ParseSatoshiGenesisByItemString(logitemstr string, trsno int64) *stores.SatoshiGenesis

Parse log

func PrintMoveBtcCoinRewardNumberTable

func PrintMoveBtcCoinRewardNumberTable()

func UpdateBlockCoinbaseAddress

func UpdateBlockCoinbaseAddress(block interfaces.Block, address fields.Address)

func UpdateBlockCoinbaseMessage

func UpdateBlockCoinbaseMessage(block interfaces.Block, msgstr string)

func UpdateBlockCoinbaseMessageForMiner

func UpdateBlockCoinbaseMessageForMiner(block interfaces.Block, minernum uint32)

func UpdateCoinbaseAddress

func UpdateCoinbaseAddress(tx interfaces.Transaction, address fields.Address)

func UpdateCoinbaseMessage

func UpdateCoinbaseMessage(tx interfaces.Transaction, msgstr string)

func UpdateCoinbaseMessageForMiner

func UpdateCoinbaseMessageForMiner(tx interfaces.Transaction, minernum uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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