base

package
v0.0.0-...-0f7f059 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArkAPIClient *core.ArkClient

ArkAPIClient - using to talk with other nodes with the ARK-GO Client API

View Source
var ArkNodeDB *storm.DB

ArkNodeDB interface is setup in goark-node.go. interface is visible in the whole package api

View Source
var ChainSyncChannel chan int

ChainSyncChannel - to signalend execution of chain sync make() called somewhere else (buffered)

View Source
var IsBlockSaving bool

IsBlockSaving - Global locker (semaphore) - to ignore writes of secondly received blocks if the same... Important for eventhook api

View Source
var IsBlockchainSynced bool

IsBlockchainSynced - Global locker (semaphore) - to ignore writes and receive blocks if blocks arent at the height

View Source
var SaveBlockMutex = &sync.RWMutex{}

SaveBlockMutex to be wrapped around sync threads

View Source
var SyncMutex = &sync.RWMutex{}

SyncMutex to be wrapped around sync threads

Functions

func CheckCommonBlocks

func CheckCommonBlocks(c *gin.Context)

func CheckIfChainLoading

func CheckIfChainLoading() gin.HandlerFunc

CheckIfChainLoading check on middleware level Function setup in goark-node.go -InitRoutes method

func CheckNetworkHeaders

func CheckNetworkHeaders() gin.HandlerFunc

CheckNetworkHeaders check on middleware level Function setup in goark-node.go -InitRoutes method

func ReceiveBlocks

func ReceiveBlocks(c *gin.Context)

ReceiveBlocks from blockchain

func ReceiveTransactions

func ReceiveTransactions(c *gin.Context)

ReceiveTransactions Returns a list of peers to client call. Response is in JSON

func SendAutoConfigureParams

func SendAutoConfigureParams(c *gin.Context)

SendAutoConfigureParams - send autoconfigure parameters

func SendHeight

func SendHeight(c *gin.Context)

SendHeight returns local blockchain height

func SendPeerList

func SendPeerList(c *gin.Context)

SendPeerList Returns a list of peers to client call. Response is in JSON

func SendPeerStatus

func SendPeerStatus(c *gin.Context)

SendPeerStatus respondes to other peers about node statuts

func SendTransactions

func SendTransactions(c *gin.Context)

SendTransactions Returns a list of peers to client call. Response is in JSON

func SyncBlockChain

func SyncBlockChain(blockChainHeight int)

SyncBlockChain syncs blockchain to the lastest block it is run when starting the node

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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