blockchain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLockedBlock

func AppendLockedBlock()

AppendLockedBlock - Appends the lockedBlock to the blockchain

func GenesisBlockchain

func GenesisBlockchain(blockDataString string)

GenesisBlockchain - Creates the blockchain

func GetAddressBalance

func GetAddressBalance(jeffCoinAddress string) string

GetAddressBalance - Gets the jeffCoin Address balance

func GetBlock

func GetBlock(id string) blockStruct

GetBlock - Gets a block (via Index number) from the blockchain

func GetBlockchain

func GetBlockchain() blockchainSlice

GetBlockchain - Gets the blockchain

func GetLockedBlock

func GetLockedBlock() blockStruct

GetLockedBlock - Gets the lockedBlock

func GetPendingBlock

func GetPendingBlock() blockStruct

GetPendingBlock - Gets the pendingBlock

func LockPendingBlock

func LockPendingBlock(difficulty int)

LockPendingBlock - Moves the pendingBlock to the lockedBlock

func ProcessTxRequestMessage

func ProcessTxRequestMessage(txRequestMessageSigned string) string

ProcessTxRequestMessage - Request to transfer jeffCoins to a jeffCoin Address

func RequestBlockchain

func RequestBlockchain(networkIP string, networkTCPPort string) error

RequestBlockchain - Requests the blockchain and the pendingBlock from a Network Node

func ResetPendingBlock

func ResetPendingBlock()

ResetPendingBlock - Resets the pendingBlock

Types

This section is empty.

Jump to

Keyboard shortcuts

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