An alternative full node implementation of LBRY's blockchain written in Go (golang)
Find a file
2021-10-19 22:08:01 -07:00
.github/workflows ci: Update Go toolchain to 1.16 2021-10-18 16:36:42 -07:00
addrmgr [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
blockchain [lbry] fixups lint warnings 2021-10-19 22:08:01 -07:00
btcec [lbry] fixups lint warnings 2021-10-19 22:08:01 -07:00
btcjson [lbry] rpc: fix getblock reponse 2021-10-19 22:08:01 -07:00
chaincfg [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
claimtrie [lbry] claimtrie: import current snapshot 2021-10-19 01:16:15 -07:00
cmd [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
connmgr [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
database [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
docs [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
integration [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
limits [lbry] increase open file limit to 2048 2021-10-19 22:08:01 -07:00
mempool [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
mining [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
netsync [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
peer [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
rpcclient [lbry] fixups lint warnings 2021-10-19 22:08:01 -07:00
txscript [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
wire [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
.gitignore gitignore: ignore IDE stuff 2021-10-18 16:36:42 -07:00
.golangci.yml ci: Update Go toolchain to 1.16 2021-10-18 16:36:42 -07:00
config.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
config_test.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
doc.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
Dockerfile ci: Update Go toolchain to 1.16 2021-10-18 16:36:42 -07:00
go.mod [lbry] go module: update go modules 2021-10-19 01:16:15 -07:00
go.sum [lbry] go module: update go modules 2021-10-19 01:16:15 -07:00
goclean.sh ci: Update Go toolchain to 1.16 2021-10-18 16:36:42 -07:00
lbcd.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
LICENSE [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
log.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
params.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
README.md [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
resourceLogging.go [lbry] print out memory usage periodically 2021-10-19 21:19:42 -07:00
rpcadapters.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
rpcclaimtrie.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
rpcserver.go [lbry] rpc: fix getblock reponse 2021-10-19 22:08:01 -07:00
rpcserverhelp.go [lbry] rpc: fix getblock reponse 2021-10-19 22:08:01 -07:00
rpcserverhelp_test.go Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
rpcwebsocket.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
sample-lbcd.conf [lbry] docs: update docs for LBRY 2021-10-19 22:08:01 -07:00
server.go [lbry] don't ban peers on tx-not-in-block behavior 2021-10-19 22:08:01 -07:00
service_windows.go config+service_windows: add flag to disable win service 2020-07-22 12:57:09 +02:00
signal.go btcd: Simplify shutdown signal handling logic. (#733) 2016-08-11 13:39:23 -05:00
signalsigterm.go [lbry] fixups lint warnings 2021-10-19 22:08:01 -07:00
upgrade.go [lbry] rename btcd to lbcd 2021-10-19 21:42:12 -07:00
upnp.go [lbry] fixups lint warnings 2021-10-19 22:08:01 -07:00
version.go btcd: bump version to v0.22.0-beta 2021-10-18 16:36:42 -07:00

lbcd

Build Status Coverage Status ISC License

lbcd is a full node implementation of LBRY's blockchain written in Go (golang).

This project is currently under active development and is in a Beta state while we ensure it matches LBRYcrd's functionality. The intention is that it properly downloads, validates, and serves the block chain using the exact rules (including consensus bugs) for block acceptance as LBRYcrd. We have taken great care to avoid lbcd causing a fork to the blockchain.

Note: lbcd does NOT include wallet functionality. That functionality is provided by the lbcwallet and the LBRY SDK.

Security

We take security seriously. Please contact security regarding any security issues. Our PGP key is here if you need it.

We maintain a mailing list for notifications of upgrades, security issues, and soft/hard forks. To join, visit https://lbry.com/forklist

Requirements

All common operating systems are supported. lbcd requires at least 8GB of RAM and at least 100GB of disk storage. Both RAM and disk requirements increase slowly over time. Using a fast NVMe disk is recommended.

lbcd is not immune to data loss. It expects a clean shutdown via SIGINT or SIGTERM. SIGKILL, immediate VM kills, and sudden power loss can cause data corruption, thus requiring chain resynchronization for recovery.

For compilation, Go 1.16 or newer is required.

Installation

Acquire binary files from https://github.com/lbryio/lbcd/releases

To build from Source on Linux/BSD/MacOSX/POSIX:

  • Install Go according to its installation instructions.
  • Use your favorite git tool to acquire the lbcd source.
  • lbcd has no non-Go dependencies; it can be built by simply running go build .
  • lbcctl can be built similarly:

Both GoLand and VS Code IDEs are supported.

Usage

By default, data and logs are stored in ~/.lbcd/

To enable RPC access a username and password is required. Example:

./lbcd --notls --rpcuser=x --rpcpass=y --txindex &
./lbcctl --notls --rpcuser=x --rpcpass=y getblocktemplate

Contributing

Contributions to this project are welcome, encouraged, and compensated. The integrated github issue tracker is used for this project. All pull requests will be considered.

License

lbcd is licensed under the copyfree ISC License.