node

module
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT

README

Livepeer Node

Livepeer Node provides runner orchestration, discovery, payment signing, and protocol commands for the Livepeer network.

Executable Role
livepeer Runs the bundled component commands.
livepeer-orchestrator Registers runners, reserves sessions, proxies traffic, and redeems payment tickets.
livepeer-redeemer Accepts winning tickets from orchestrators and redeems them using a dedicated wallet.
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.

Install

Linux releases include all executables and need no Go installation. This example uses the GitHub CLI, tar, and sha256sum; choose a release and architecture:

set -eu
version=v1.0.5
arch=amd64 # or arm64
release_dir="$HOME/.local/share/livepeer/$version"
(
  mkdir -p "$release_dir"
  cd "$release_dir"
  gh release download "$version" --repo livepeer/node \
    --pattern "livepeer-$version-linux-$arch.tar.gz" --pattern SHA256SUMS
  sha256sum --check --ignore-missing SHA256SUMS
  tar -xzf "livepeer-$version-linux-$arch.tar.gz" --strip-components=1
  sha256sum --check SHA256SUMS
)
export PATH="$release_dir/bin:$PATH"
livepeer version

Keep the executables together: livepeer dispatches to its sibling components. Persist the PATH setting in your shell or use absolute executable paths in your service configuration. For other platforms or source builds, see development.

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 with livepeer on PATH, run:

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

Start with configuration and secrets, then choose a component guide from the documentation index. Use payment recovery for backups, upgrades, rollback, and transaction reconciliation; development covers tests, SDK fixtures, and release packaging.

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
Ported from livepeer/go-livepeer at 0ff08af1bb4cb268f428d619cc968b5eaee0d093.
Ported from livepeer/go-livepeer at 0ff08af1bb4cb268f428d619cc968b5eaee0d093.
types
Selected protocol types from go-livepeer bd645a09266833fb859053445d9ac85846330756.
Selected protocol types from go-livepeer bd645a09266833fb859053445d9ac85846330756.
internal
observability
Package observability supplies process-local Prometheus registries and safe transport observations.
Package observability supplies process-local Prometheus registries and safe transport observations.
test
Package test provides shared test helpers.
Package test provides shared test helpers.
Package nodeconfig supplies shared configuration types, CLI policy, data-directory defaults, and storage paths.
Package nodeconfig supplies shared configuration types, 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.
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.
Package redeemer runs the standalone winning-ticket redemption service.
Package redeemer runs the standalone winning-ticket redemption service.
QueueTicket admission and ticket conversion adapt Nico Vergauwen's and Yondon Fu's go-livepeer/server/redeemer.go at afaaa36e743d39e6f460e7993d516d52b3a81341.
QueueTicket admission and ticket conversion adapt Nico Vergauwen's and Yondon Fu's go-livepeer/server/redeemer.go at afaaa36e743d39e6f460e7993d516d52b3a81341.

Jump to

Keyboard shortcuts

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