blockchain

package
v0.0.0-...-2334cb8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2016 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlock

func AddBlock(block *types.Block, db *types.DB)

Attempts adding a new block to the blockchain.

func AddTx

func AddTx(tx *types.Tx, db *types.DB)

Attempt to add a new transaction into the pool.

func Count

func Count(addr string, db *types.DB) int

Returns the number of transactions that pubkey has broadcast.

func DeleteBlock

func DeleteBlock(db *types.DB)

DeleteBlock removes the most recent block from the blockchain.

func HexInv

func HexInv(right string) string

func HexMul

func HexMul(left, right string) string

func HexSum

func HexSum(left, right string) string

func RecentBlockTargets

func RecentBlockTargets(db *types.DB, size, length int) []string

RecentBlockTargets grabs info from old blocks. recent_blockthings(key, DB, size, length=0)

func RecentBlockTimes

func RecentBlockTimes(db *types.DB, size, length int) []float64

func Target

func Target(db *types.DB, length int) string

Returns the target difficulty at a paticular blocklength. target(DB, length=0)

Types

This section is empty.

Jump to

Keyboard shortcuts

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