chuckd

package module
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

chuckd

The coordinator for a Thruput validator, written in Go.

A Thruput validator runs as several cooperating processes. chuckd is the one that ties them together: it disseminates transactions and blocks between validators, drives consensus through scpd (the Stellar Consensus Protocol daemon, run as a child process), and hands agreed blocks to the execution pipeline over ONC-RPC. The wire format is the Thruput protocol's XDR, through thruput-protocol-go.

Directory Contents
chuckd/ The chuckd command: sys (run a system), bench, config, deploy and hosted-bootstrap subcommands
system/ Assemblies of subsystems into runnable systems: the coordinator, the standalone disseminator, and benchmarks
sub/ Subsystems: baton (consensus driver), scp (the scpd bridge), storage, sched, catchup, repair, cvpool, wallet, loadgen
net/ Networking: dogwood (erasure-coded broadcast), magnolia (Reed-Solomon coding), discovery, router, multiplex
runtime/ Process-level concerns: telemetry, pprof, metrics
util/, test/ Shared helpers and test fixtures
scripts/ Build, packaging and benchmark job scripts
deploy/ Generators for multi-node benchmark deployments
doc/ Design notes and operator documentation

Building

Requirements: Go (the version in go.mod) and, for scpd, a Rust toolchain.

make config      # go mod download
make build       # ./chuckd.dev and ./scpd.dev
make coordinator # just chuckd
make install     # copy both binaries to $PREFIX/bin as chuckd and scpd

make help lists every target. chuckd sys coordinator finds scpd on PATH at startup and runs it as a child process, so install both or neither.

Testing

make check   # what CI enforces: go test ./...
make lint    # go vet ./...
make fmt     # go fmt ./...

Some integration tests are opt-in through environment variables: RUN_CHUCKD_VIRTUAL_TEST=1 runs the multi-node virtual coordinator tests and RUN_CHUCKD_RUST_INTEROP_TEST=1 checks signing against the Rust implementation.

Running

chuckd --help documents the global flags (logging, profiling, metrics address, seed). Each system reads a JSON configuration file whose schema is the protocol's Config XDR type; chuckd config init writes a starting point and chuckd config group generates a set of mutually-known validators.

Operator configuration uses unprefixed base58 public keys. Regenerate old hex validator and quorum configuration with matching ops templates. Secret keys retain their existing hex format. Hosted bootstrap requires metadata schema 3 and emits hosted runtime-manifest schema 4; regenerate older development bootstrap state.

Documentation

Contributing and security

See CONTRIBUTING.md. To report a vulnerability, follow SECURITY.md rather than opening a public issue.

License

Apache-2.0. See LICENSE.

Documentation

Overview

Package ghc provides version routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Short

func Short() string

Short provides a short string summarizing available version information.

Types

type VersionInfo

type VersionInfo struct {
	Version    string    `json:"version"`  // Version is the Go version of the protocol module.
	Revision   string    `json:"revision"` // Revision is the git commit hash of the protocol source.
	LastCommit time.Time `json:"last_commit"`
	DirtyBuild bool      `json:"dirty_build"`
}

func GetVersionInfo

func GetVersionInfo() VersionInfo

Directories

Path Synopsis
cmd
deploy
net
sub
kit
system
test
configtext
Package configtext adapts operator configuration identifiers to base58.
Package configtext adapts operator configuration identifiers to base58.
encoding
Package encoding converts public identifier bytes without changing their value.
Package encoding converts public identifier bytes without changing their value.

Jump to

Keyboard shortcuts

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