paritytech/parity-bitcoin là dự án Backend trên GitHub, viết chủ yếu bằng Rust, với 722 sao. The Parity Bitcoin client
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
pbtc is now available at either ./target/debug/pbtc or ./target/release/pbtc.
Installing the snap
In any of the supported Linux distros:
sudo snap install parity-bitcoin --edge
Running tests
pbtc has internal unit tests and it conforms to external integration tests.
Running unit tests
Assuming that repository is already cloned, we can run unit tests with this command:
cargo test --all
Running external integration tests
Running integration tests is automated, as the regtests repository is one of the submodules. Let's download it first:
git submodule update --init
Now we can run them using the command:
./tools/regtests.sh
It is also possible to run regtests manually:
# let's start pbtc in regtest compatible mode
./target/release/pbtc --btc --regtest
# now in second shell window
cd $HOME
git clone https://github.com/TheBlueMatt/test-scripts
cd test-scripts
java -jar pull-tests-f56eec3.jar
Going online
By default parity connects to bitcoind-seednodes. Full list is available here.
Before starting synchronization, you must decide - which fork to follow - Bitcoin Core (--btc flag) or Bitcoin Cash (--bch flag). On next start, passing the same flag is optional, as the database is already bound to selected fork and won't be synchronized using other verification rules.
To start syncing the main network, just start the client, passing selected fork flag. For example:
./target/release/pbtc --btc
To start syncing the testnet:
./target/release/pbtc --btc --testnet
To not print any syncing progress add --quiet flag:
./target/release/pbtc --btc --quiet
Importing bitcoind database
It is possible to import existing bitcoind database:
# where $BITCOIND_DB is path to your bitcoind database, e.g., "/Users/user/Library/Application Support"
./target/release/pbtc import "$BITCOIND_DB/Bitcoin/blocks"
By default import verifies imported the blocks. You can disable this, by adding --verification-level=none flag.
Full list of CLI options, which is available under pbtc --help:
pbtc 0.1.0
Parity Technologies <[email protected]>
Parity Bitcoin client
USAGE:
pbtc [FLAGS] [OPTIONS] [SUBCOMMAND]
FLAGS:
--bch Use Bitcoin Cash verification rules (BCH).
--btc Use Bitcoin Core verification rules (BTC).
-h, --help Prints help information
--no-jsonrpc Disable the JSON-RPC API server.
-q, --quiet Do not show any synchronization information in the console.
--regtest Use a private network for regression tests.
--testnet Use the test network (Testnet3).
-V, --version Prints version information
OPTIONS:
--blocknotify <COMMAND> Execute COMMAND when the best block changes (%s in COMMAND is replaced by the block hash).
-c, --connect <IP> Connect only to the specified node.
-d, --data-dir <PATH> Specify the database and configuration directory PATH.
--db-cache <SIZE> Sets the database cache size.
--jsonrpc-apis <APIS> Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API names.
--jsonrpc-cors <URL> Specify CORS header for JSON-RPC API responses.
--jsonrpc-hosts <HOSTS> List of allowed Host header values.
--jsonrpc-interface <INTERFACE> The hostname portion of the JSONRPC API server.
--jsonrpc-port <PORT> Specify the PORT for the JSONRPC API server.
--only-net <NET> Only connect to nodes in network version <NET> (ipv4 or ipv6).
--port <PORT> Listen for connections on PORT.
-s, --seednode <IP> Connect to a seed-node to retrieve peer addresses, and disconnect.
--verification-edge <BLOCK> Non-default verification-level is applied until a block with given hash is met.
--verification-level <LEVEL> Sets the Blocks verification level to full (default), header (scripts are not verified), or none (no verification at all).
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
import Import blocks from a Bitcoin Core database.
rollback Rollback the database to given canonical-chain block.
JSON-RPC
The JSON-RPC interface is served on port :8332 for mainnet and :18332 for testnet unless you specified otherwise. So if you are using testnet, you will need to change the port in the sample curl requests shown below.
pbtc started with this environment variable will print all logs coming from verification module with verbosity info or higher. Available log levels are:
error
warn
info
debug
trace
It's also possible to start logging from multiple modules in the same time:
paritytech/parity-bitcoin thuộc nhóm Backend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về paritytech/parity-bitcoin ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/paritytech/parity-bitcoin là nguồn chính thức.
paritytech/parity-bitcoin có phải mã nguồn mở không?
Có — paritytech/parity-bitcoin phát hành theo license GPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/paritytech/parity-bitcoin.
paritytech/parity-bitcoin là gì?
paritytech/parity-bitcoin (paritytech/parity-bitcoin) là dự án Rust trên GitHub. Theo mô tả gốc: The Parity Bitcoin client
paritytech/parity-bitcoin so với các dự án Backend khác thế nào?
paritytech/parity-bitcoin được TopGit xếp vào nhóm Backend, với 722 sao GitHub và viết bằng Rust. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao paritytech/parity-bitcoin được xếp vào nhóm Backend?
TopGit xếp paritytech/parity-bitcoin vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "bitcoin", "blockchain", "client"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về parity-bitcoin?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về parity-bitcoin.