An alternative full node implementation of LBRY's blockchain written in Go (golang)
Find a file
2021-09-14 11:17:01 -07:00
.github/workflows [lbry] ci: add golangci-lint action 2021-09-14 11:17:01 -07:00
addrmgr step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
blockchain [lbry] ci: fix linting (nakedret) 2021-09-13 16:57:14 -07:00
btcec [lbry] ci: fix linting (gofmt) 2021-09-13 16:57:14 -07:00
btcjson use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
chaincfg use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
claimtrie fix bug with case folding table 2021-09-14 13:46:47 -04:00
cmd fix regtest difficulty 2021-09-11 17:50:32 -04:00
connmgr step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
database use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
docs use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
integration use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
limits [lbry] ci: fix linting (gofmt) 2021-09-13 16:57:14 -07:00
mempool use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
mining use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
netsync use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
peer use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
rpcclient [lbry] rpcclient: fix resource leak 2021-09-13 16:57:14 -07:00
txscript use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
wire use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
.gitignore gitignore: ignore IDE stuff 2021-08-19 13:41:04 -04:00
.golangci.yml [lbry] ci: add golangci.yml 2021-09-13 16:57:14 -07:00
btcd.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
config.go fix some BTC strings 2021-09-11 17:50:41 -04:00
config_test.go [lbry] misc: rename btcd to lbcd 2021-08-19 14:17:22 -04:00
doc.go [lbry] config: support 'clmtimpl' and 'clmtheight' flags 2021-08-19 14:19:21 -04:00
Dockerfile fix some BTC strings 2021-09-11 17:50:41 -04:00
go.mod bump libcutil to v1.0.201 2021-09-11 21:49:21 -07:00
go.sum bump libcutil to v1.0.201 2021-09-11 21:49:21 -07:00
goclean.sh [lbry] ci: use golangci.yml instead individual args 2021-09-13 17:00:55 -07:00
LICENSE updated main README 2021-08-27 15:46:13 -04:00
log.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
params.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
README.md step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
resourceLogging.go use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
rpcadapters.go use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
rpcclaimtrie.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcserver.go use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
rpcserverhelp.go fix some BTC strings 2021-09-11 17:50:41 -04:00
rpcwebsocket.go use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04:00
sample-lbcd.conf [lbry] misc: change RPC port from 8334 to 9245 2021-08-19 14:19:20 -04:00
server.go use newer lbcutil, rename refs for it 2021-09-10 16:51:53 -04: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] ci: fix linting (gofmt) 2021-09-13 16:57:14 -07:00
upgrade.go [lbry] misc: rename btcd to lbcd 2021-08-19 14:17:22 -04:00
upnp.go [lbry] ci: fix linting (nakedret) 2021-09-13 16:57:14 -07:00
version.go set release version 2021-08-27 13:04:46 -04: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.