An alternative full node implementation of LBRY's blockchain written in Go (golang)
Find a file
2021-09-10 16:23:04 -04:00
.github/workflows fixing tmp folder cleanup 2021-08-30 09:09:48 -04:00
addrmgr step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
blockchain step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
btcec step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
btcjson step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
chaincfg step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
claimtrie step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
cmd step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
connmgr step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
database step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
docs step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
integration step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
limits Relicense to the btcsuite developers. 2015-05-01 12:00:56 -05:00
mempool step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
mining step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
netsync step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
peer step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcclient step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
txscript step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
wire step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
.gitignore gitignore: ignore IDE stuff 2021-08-19 13:41:04 -04:00
btcd.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
CHANGES step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
config.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -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 step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
go.mod step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
go.sum step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
goclean.sh fixed bug with block rollback; re-orgs should work now 2021-08-27 10:54:26 -04: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 [lbry] print out memory usage periodically 2021-08-19 14:19:21 -04:00
rpcadapters.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcclaimtrie.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcserver.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcserverhelp.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
rpcwebsocket.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -04:00
sample-lbcd.conf [lbry] misc: change RPC port from 8334 to 9245 2021-08-19 14:19:20 -04:00
server.go step 1 of updating module paths to not use replace 2021-09-10 16:23:04 -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 btcd: Simplify shutdown signal handling logic. (#733) 2016-08-11 13:39:23 -05:00
upgrade.go [lbry] misc: rename btcd to lbcd 2021-08-19 14:17:22 -04:00
upnp.go [lbry] brought in upnp fix from dcrd 2021-08-19 14:19:21 -04: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.