Skip to content
المشاريع

حول

سريعة. قابلة للتوسع. قوية. سلسلة الكتل لـ Web3.

الأعمال والمالية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Hive - Decentralizing the exchange of ideas and information

GitLab GitHub

Hive is developed on the community-hosted GitLab: issues, merge requests and CI are there. The same code is on GitHub at openhive-network/hive, the Hive community's GitHub organization, kept up to date as a push mirror of GitLab.

Hive

Hive is a Graphene-based social blockchain that was created as a fork of Steem and born on the core idea of decentralization. Originally, Hive was announced on the Steem blockchain prior to the initial token airdrop. Hive did not have any ICO or mining period.

The Hive blockchain eliminates the elements of centralization and imbalanced control that plagued the Steem blockchain. Since its launch on March 20, 2020, Hive has been continuously growing and evolving. Hive's prime selling points are its decentralization, 3-second transaction speed, and ability to handle large volumes. It is an ideal platform for a variety of innovative projects focused on a broad range of fields, from open source development to games.

Hive serves as the operational home for all kinds of projects, companies, and applications. With a highly active and passionate community, Hive has become a thriving environment for both new and experienced developers to quickly bootstrap their applications. On top of this, Hive is extremely rewarding to content creators and curators alike.

The technical development of the Hive blockchain is carried out by a founding decentralized group of over 30 open source developers, many of whom were instrumental in creating Steem back in 2016. This core team is supported by a growing community of additional open source developers and witnesses.

Documents

Advantages

  • Hive Fund
  • Truly Decentralized Community
  • Free Transactions (Resource Credits = Freemium Model)
  • Fast Block Confirmations (3 seconds)
  • One Block Irreversibility
  • Time Delay Security (Vested Hive & Savings)
  • Hierarchical Role Based Permissions (Keys)
  • Integrated Token Allocation
  • Lowest Entry-Barrier for User Adoption in the market
  • Dozens of dApps already built on Hive and many more to come

Technical Details

  • Currency symbol HIVE
  • HBD - Hive's very own stable coin with a two-way peg
  • Delegated Proof-of-Stake Consensus (DPoS)
  • 10% APR inflation narrowing to 1% APR over 20 years
    • 65% of inflation to authors/curators.
    • 15% of inflation to stakeholders.
    • 10% of inflation to block producers.
    • 10% of inflation to Hive Fund.

Installation

Getting started with Hive is fairly simple. You can either choose to use pre-built Docker images, build with Docker manually, or build from source directly. All steps have been documented; Linux is the supported platform, and the easiest one is Ubuntu 24.04 LTS.

Quickstart

Want to get up and running quickly? We offer pre-built Docker images for your convenience. More details can be found in our Quickstart Guide.

Building

We strongly recommend using one of the pre-built Docker images or building Hive using Docker. Using the images is described in the Quickstart Guide.

However, if you prefer to build from source, we also provide build instructions for Linux (Ubuntu LTS).

Dockerized deployment

Building a hived docker image is described in detail here: Building hived as a docker image.

If you'd like to use our pre-built official binary images, download them from the Docker Hub registry with the specific version tag. For example, to use version 1.28.10, run:

docker pull hiveio/hive:1.28.10

Please note that the latest tag is not supported; you must explicitly specify the version tag to avoid issues with new versions that require replay.

The recommended way to run the image is the Docker Compose deployment in docker/exchange: a hived service with account history, an optional cli_wallet daemon, a health check, and a data volume that bootstraps itself on the first start from a published state snapshot or a block log. It is configured entirely through compose.yml, .env and config.ini; see docker/exchange/README.md.

The image can also be started by hand. run_hived_img.sh wraps docker run while emulating direct hived usage: run_hived_img.sh <docker_img> [OPTION[=VALUE]]... [<hived_option>]...; read more about using run_hived_img.sh to explore its usage in various scenarios.

Environment variables understood by the image's entrypoint:

  • BLOCK_LOG_URL: URL of a monolithic block_log to download on the first start when the data directory holds no block log yet (its .artifacts sidecar is fetched from BLOCK_LOG_ARTIFACTS_URL, default BLOCK_LOG_URL.artifacts).
  • SNAPSHOT_URL: URL of a .tgz state snapshot (as produced by --dump-snapshot) to download and load on the first start instead of replaying from genesis. Without a block log it implies block-log-split=0 (no block log is kept); with BLOCK_LOG_URL the block log is kept and replayed forward from the snapshot. hived writes its RocksDB files (snapshots, comment archive, account history) with RocksDB table format_version 7, which a hived built with RocksDB older than 10.11 (hive's RocksDB 9.10 builds) cannot read, so a snapshot dumped by a current build does not load in such an older build; older snapshots and databases (format_version 6) still load in a current one.
  • HIVED_AUTO_REPLAY: set to 1 to have the entrypoint add --replay-blockchain whenever a block log is present and no replay mode was requested, so a downloaded or copied-in block log is replayed without further action. Off by default, so a mismatch between the state and the block log stops hived with an error instead of starting a replay. The exchange compose deployment turns it on.
  • HIVED_UID: run hived as this UID (non-zero, numeric), for bind-mounted directories owned by a user other than 1000, typically -e HIVED_UID=$(id -u); see run_hived_img.md for details.
  • HIVED_BOOTSTRAP_ONLY, HIVED_SKIP_BOOTSTRAP: set one of them to 1 to run the bootstrap (downloads, snapshot load, replay) and the node in separate containers, as the exchange compose deployment does with its hived-bootstrap and hived services.
  • P2P_ENDPOINT, WS_ENDPOINT, HTTP_ENDPOINT: listening endpoints inside the container.

/home/hived/scripts/hived_healthcheck.sh is a health check for the container: it exits 0 once hived answers JSON-RPC and its head block is at most HIVED_HEALTHCHECK_MAX_BLOCK_AGE seconds old (default 120).

CLI Wallet

We provide a basic cli wallet for interfacing with hived. The wallet is self-documented via command line help. The node you connect to via the cli wallet needs to be running the account_by_key_api, condenser_api, database_api, account_history_api, wallet_bridge_api plugins and needs to be configured to accept WebSocket connections via webserver-ws-endpoint.

The cli_wallet offers two operating modes:

  • interactive mode: commands are entered on an interactive command line
  • daemon mode: wallet commands are sent via RPC calls. In daemon mode it is important to specify which IP addresses are allowed to establish connections to the wallet's HTTP server. See --rpc-http-endpoint, --daemon, --rpc-http-allowip options for details.

To prepare transactions, you need to execute a few setup steps in the cli_wallet:

  • use set_password call to establish a password protecting your wallet from unauthorized access
  • use unlock to turn on full-operation mode in the wallet
  • import private key(s) using import_key "WIF-key" command

Keys and password are stored in the wallet.json file.

Testing

See doc/devs/testing.md for testing build targets and info on how to use lcov to check code coverage of tests.

Contributing

See CONTRIBUTING.md, including the order of merge requests for changes that span hive, wax and hive-local-tools.

Configuration

Config File

Run hived --dump-config to create a data directory (~/.hived unless --data-dir says otherwise) with a default config.ini that lists every option. For an exchange node, start from contrib/example-exchange-config.ini: it has the plugins and the tracked accounts of the published exchange snapshot, and the docker image ships it as /home/hived/datadir/example-exchange-config.ini.

Seed Nodes

A list of some seed nodes to get you started can be found in doc/seednodes.txt.

The same list is built into the binary and can be overridden by --p2p-seed-node command option set to a whitespace-delimited list of seed nodes (with port).

System Requirements

Running a Hive consensus node requires the following hardware resources:

  • data directory to hold a blockchain file(s) (~600GB of disk storage is required for a node that keeps all blocks)
  • storage to hold a shared memory file (~8GB of memory is required at the moment to store state data, together with the comments database kept next to it)

No Support & No Warranty

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…