node

module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT

README

Livepeer Node

Livepeer Node contains services and command-line tools for the Livepeer network. It includes an orchestrator for Livepeer runners, standalone discovery, a remote signer for network payments and discovery filtering, and a protocol CLI for managing wallets, staking, earnings, funding, governance, and local signing.

Executable Role
livepeer Runs the bundled component commands.
livepeer-orchestrator Registers runners, reserves sessions, proxies traffic, and redeems payment tickets.
livepeer-discovery Collects and caches orchestrator runner inventories without running an orchestrator.
livepeer-signer Signs identities and payments, discovers orchestrators, and optionally publishes accounting events.
livepeer-chain Inspects accounts and contracts, manages wallets, staking, earnings, funds, and governance, and signs files locally.

The orchestrator supports persistent and single-shot sessions, HTTP streaming, server-sent events (SSE), WebSockets, and Trickle channels. It can run locally without payments or use Ethereum payment tickets. The signer requires chain configuration.

Build

Install Go 1.27.3 or newer, then run from the repository root:

make build
bin/livepeer version
bin/livepeer orchestrator --help

Run a local example

This example forwards a request to a small HTTP service. It runs off-chain.

In one terminal, start the example runner:

while true; do
  printf 'HTTP/1.1 200 OK\r\nContent-Length: 24\r\nConnection: close\r\n\r\nhello from local runner\n' | \
  nc -l 127.0.0.1 9000 >/dev/null || break
done

In a second terminal, from the repository root, start the orchestrator:

bin/livepeer orchestrator --config configs/orchestrator/local.example.toml

In a third terminal, check readiness, discovery, and forwarding. Allow up to five seconds for the first runner health check before checking discovery:

curl -fsS http://127.0.0.1:8936/readyz
curl -fsS http://127.0.0.1:8935/discovery
curl -fsS http://127.0.0.1:8935/apps/local-runner/app/hello

Expect ready, a discovery entry for local-runner, and hello from local runner. Readiness uses the separate metrics port. Stop the runner and orchestrator with Ctrl-C in their terminals.

Configure a deployment

Use configuration and secrets for credentials, encrypted Ethereum keystores and password files, and probe addresses. Then follow the component guides:

  • Orchestrator: dynamic/static runners, networking, TLS, proxy URLs, limits, and payments.
  • Discovery: standalone inventory collection, caching, and peer advertising.
  • Signer: chain access, price limits, authorization, and Kafka accounting.
  • Chain commands: inspecting accounts, previewing and submitting transactions, and signing files locally.
  • Payment recovery: backups, restart, and uncertain transaction recovery.

Chain state changes perform a dry run by default. Add --submit to broadcast and wait for successful inclusion. Use --no-wait for a single transaction without replacements. Trickle retains five segments per channel, with a 10 MB limit per segment and no global byte cap.

For tests, SDK fixtures, and packaging, see development. The documentation index links the operating guides and protocol references.

Imported or adapted code retains its original MIT notice in MIT notice.

Directories

Path Synopsis
cmd
livepeer command
livepeer-chain command
livepeer-signer command
version
Package version holds metadata shared by command binaries.
Package version holds metadata shared by command binaries.
Package destination enforces outbound destination grants at dial time.
Package destination enforces outbound destination grants at dial time.
Package discovery runs standalone orchestrator discovery.
Package discovery runs standalone orchestrator discovery.
eth
Voting APIs follow livepeer/go-livepeer/eth/client.go: poll voting by Nico Vergauwen (994f4c0e5a755717f47feab1a397c74307cef8ef) and proposal voting by Rick Staa (89d9ebc7fff0004aab11bbb733035327da7b2e1b).
Voting APIs follow livepeer/go-livepeer/eth/client.go: poll voting by Nico Vergauwen (994f4c0e5a755717f47feab1a397c74307cef8ef) and proposal voting by Rick Staa (89d9ebc7fff0004aab11bbb733035327da7b2e1b).
types
Selected protocol types from go-livepeer bd645a09266833fb859053445d9ac85846330756.
Selected protocol types from go-livepeer bd645a09266833fb859053445d9ac85846330756.
internal
test
Package test provides shared test helpers.
Package test provides shared test helpers.
Package nodeconfig supplies shared CLI policy, data-directory defaults, and storage paths.
Package nodeconfig supplies shared CLI policy, data-directory defaults, and storage paths.
migrations
Package migrations applies embedded SQL migrations and builds their shared CLI command.
Package migrations applies embedded SQL migrations and builds their shared CLI command.
Winning-ticket store operations follow livepeer/go-livepeer/common/db.go, by Elad Mallel and Nico Vergauwen (404d24a9455cd0997af1be6d18faa998702cce69).
Winning-ticket store operations follow livepeer/go-livepeer/common/db.go, by Elad Mallel and Nico Vergauwen (404d24a9455cd0997af1be6d18faa998702cce69).
pm
Adapted from livepeer/go-livepeer/pm/sigverifier.go and crypto/verify.go, originally by Yondon Fu and Elad Mallel; Michael Ira Krufky moved VerifySig to crypto.
Adapted from livepeer/go-livepeer/pm/sigverifier.go and crypto/verify.go, originally by Yondon Fu and Elad Mallel; Michael Ira Krufky moved VerifySig to crypto.
wire
Package wire preserves the retained fields and field numbers of the legacy unversioned remote-signer Protobuf envelopes.
Package wire preserves the retained fields and field numbers of the legacy unversioned remote-signer Protobuf envelopes.

Jump to

Keyboard shortcuts

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