sync

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegrationTest

func IntegrationTest(t *testing.T, coin string, chain bchain.BlockChain, testConfig json.RawMessage)

Types

type BlockInfo

type BlockInfo struct {
	Height    uint32       `json:"height"`
	Hash      string       `json:"hash"`
	NoTxs     uint32       `json:"noTxs"`
	TxDetails []*bchain.Tx `json:"txDetails"`
}

type TestData

type TestData struct {
	ConnectBlocksParallel struct {
		SyncWorkers int `json:"syncWorkers"`
		SyncChunk   int `json:"syncChunk"`
	} `json:"connectBlocksParallel"`
	Blocks []BlockInfo `json:"blocks"`
}

type TestHandler

type TestHandler struct {
	Coin     string
	Chain    bchain.BlockChain
	TestData *TestData
}

Jump to

Keyboard shortcuts

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