Block

package
v0.0.0-...-cd70045 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockChain []Block

Functions

func IsValidBlock

func IsValidBlock(newBlock, oldBlock Block) bool

func ReplaceChain

func ReplaceChain(newBlocks []Block)

Types

type Block

type Block struct {
	Index     int
	Timestamp string
	BPM       int
	Hash      string
	PrevHash  string
}

func GenerateBlock

func GenerateBlock(oldBlock Block, BPM int) (Block, error)

Jump to

Keyboard shortcuts

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