yenten

package module
v0.0.0-...-594091b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 6 Imported by: 0

README

docker-blockbook-yenten

Blockbook Dockerfile for Yenten

Usage (directly from Docker Hub)

docker run \
    --hostname blockbook \
    -it \
    -v "$(PWD)/db:/blockbook/db" \
    -p 9163:9163 \
    -e RPC_USER=user \
    -e RPC_PASS=pass \
    -e RPC_HOST=127.0.0.1 \
    -e RPC_PORT= 9982\
    -e MQ_PORT=38363 \
    -e TZ=Asia/Tokyo \
    bellflower2015/blockbook-yenten

Blockbook config directory is /blockbook/config and database directory is /blockbook/db.

You can set environment variables RPC_USER, RPC_PASS, RPC_HOST, RPC_PORT, and MQ_PORT, and also set TZ to change timezone.

If you want to change hostname displayed, you can set it by --hostname.

Build and run instructions

Build image

Get source code and make docker image:

git clone https://github.com/bellflower2015/docker-blockbook-yenten.git
cd docker-blockbook-yenten
docker build -t blockbook-yenten .

Docker images are based on Debian 9 (Stretch).

Run image

Boot from the built image as described below:

docker run [options] blockbook-yenten

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0x9feb5aad
	TestnetMagic wire.BitcoinNet = 0x95e45495
)

magic numbers

Variables

View Source
var (
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

chain parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main Yenten network, and the test Yenten network

func NewYentenRPC

func NewYentenRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)

NewYentenRPC returns new YentenRPC instance.

Types

type YentenParser

type YentenParser struct {
	*btc.BitcoinLikeParser
}

YentenParser handle

func NewYentenParser

func NewYentenParser(params *chaincfg.Params, c *btc.Configuration) *YentenParser

NewYentenParser returns new YentenParser instance

type YentenRPC

type YentenRPC struct {
	*btc.BitcoinRPC
}

YentenRPC is an interface to JSON-RPC bitcoind service.

func (*YentenRPC) Initialize

func (b *YentenRPC) Initialize() error

Initialize initializes YentenRPC instance.

Jump to

Keyboard shortcuts

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