Mirror of Quilibrium git repo: ceremonyclient
Go to file
Cassandra Heart 53f7c2b5c9
v2.1.0.2 (#442)
* v2.1.0.2

* restore tweaks to simlibp2p

* fix: nil ref on size calc

* fix: panic should induce shutdown from event_distributor

* fix: friendlier initialization that requires less manual kickstarting for test/devnets

* fix: fewer available shards than provers should choose shard length

* fix: update stored worker registry, improve logging for debug mode

* fix: shut the fuck up, peer log

* qol: log value should be snake cased

* fix:non-archive snap sync issues

* fix: separate X448/Decaf448 signed keys, add onion key to registry

* fix: overflow arithmetic on frame number comparison

* fix: worker registration should be idempotent if inputs are same, otherwise permit updated records

* fix: remove global prover state from size calculation

* fix: divide by zero case

* fix: eager prover

* fix: broadcast listener default

* qol: diagnostic data for peer authenticator

* fix: master/worker connectivity issue in sparse networks

tight coupling of peer and workers can sometimes interfere if mesh is sparse, so give workers a pseudoidentity but publish messages with the proper peer key

* fix: reorder steps of join creation

* fix: join verify frame source + ensure domain is properly padded (unnecessary but good for consistency)

* fix: add delegate to protobuf <-> reified join conversion

* fix: preempt prover from planning with no workers

* fix: use the unallocated workers to generate a proof

* qol: underflow causes join fail in first ten frames on test/devnets

* qol: small logging tweaks for easier log correlation in debug mode

* qol: use fisher-yates shuffle to ensure prover allocations are evenly distributed when scores are equal

* qol: separate decisional logic on post-enrollment confirmation into consensus engine, proposer, and worker manager where relevant, refactor out scoring

* reuse shard descriptors for both join planning and confirm/reject decisions

* fix: add missing interface method and amend test blossomsub to use new peer id basis

* fix: only check allocations if they exist

* fix: pomw mint proof data needs to be hierarchically under global intrinsic domain

* staging temporary state under diagnostics

* fix: first phase of distributed lock refactoring

* fix: compute intrinsic locking

* fix: hypergraph intrinsic locking

* fix: token intrinsic locking

* fix: update execution engines to support new locking model

* fix: adjust tests with new execution shape

* fix: weave in lock/unlock semantics to liveness provider

* fix lock fallthrough, add missing allocation update

* qol: additional logging for diagnostics, also testnet/devnet handling for confirmations

* fix: establish grace period on halt scenario to permit recovery

* fix: support test/devnet defaults for coverage scenarios

* fix: nil ref on consensus halts for non-archive nodes

* fix: remove unnecessary prefix from prover ref

* add test coverage for fork choice behaviors and replay – once passing, blocker (2) is resolved

* fix: no fork replay on repeat for non-archive nodes, snap now behaves correctly

* rollup of pre-liveness check lock interactions

* ahead of tests, get the protobuf/metrics-related changes out so teams can prepare

* add test coverage for distributed lock behaviors – once passing, blocker (3) is resolved

* fix: blocker (3)

* Dev docs improvements (#445)

* Make install deps script more robust

* Improve testing instructions

* Worker node should stop upon OS SIGINT/SIGTERM signal (#447)

* move pebble close to Stop()

* move deferred Stop() to Start()

* add core id to worker stop log message

* create done os signal channel and stop worker upon message to it

---------

Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com>

---------

Co-authored-by: Daz <daz_the_corgi@proton.me>
Co-authored-by: Black Swan <3999712+blacks1ne@users.noreply.github.com>
2025-10-23 01:03:06 -05:00
alias v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
bedlam v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
bls48581 v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
bulletproofs v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
channel v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
client v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
config v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
conntest v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
consensus v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
crates v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
dashboards/grafana Support frame fragmentation and dissemination (#396) 2024-12-02 16:25:10 -06:00
docker v1.4.19 2024-06-08 11:32:45 +00:00
emp-ot v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
emp-tool v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
ferret v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
go-libp2p v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
go-libp2p-blossomsub v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
go-libp2p-kad-dht Memory management adjustments (#397) 2024-12-01 15:04:01 -06:00
go-multiaddr v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
go-multiaddr-dns v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
hypergraph v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
nekryptology v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
node v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
pebble v1.2.0 (#31) 2024-01-03 01:31:42 -06:00
protobufs v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
rpm v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
scripts v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
signers v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
types v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
utils v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
vdf v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
verenc v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
.dockerignore v2.0.4-p1 2024-11-23 22:20:29 -06:00
.env.example v1.4.18-patch-1 (#216) 2024-05-27 00:10:15 -05:00
.gitattributes v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
.gitignore v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
ARCHITECTURE.md ARCHITECTURE.md enhancements (#443) 2025-10-06 21:17:17 -05:00
Cargo.lock v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
Cargo.toml v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
CONTRIBUTING.md v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
DOCKER-README.md v1.4.19 2024-06-08 11:32:45 +00:00
Dockerfile.conntest.source v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
Dockerfile.release v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Dockerfile.source v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
Dockerfile.source.dockerignore v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Dockerfile.sourceavx512 v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
Dockerfile.vdf.source v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Dockerfile.vdf.sourceavx512 v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Dockerfile.vdf.sourcezen3 v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Dockerfile.vdf.sourcezen4 v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
emp-install.py v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
go.mod v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
go.sum v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
install-qclient.sh v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
LICENSE move readme, add license 2023-09-30 02:04:57 -05:00
README.md v2.1.0 (#439) 2025-09-30 02:48:15 -05:00
Taskfile.yaml v2.1.0.2 (#442) 2025-10-23 01:03:06 -05:00
TESTING.md v2.1.0 (#439) 2025-09-30 02:48:15 -05:00

Quilibrium - 2.1 - Bloom

Quick Start

Running production nodes from source is no longer recommended given build complexity. Please refer to our release information to obtain the latest version.

Running From Source

Ensure you have all required dependencies.

Ubuntu Linux

For Ubuntu Linux, you can install these by running the following from the project root:

./scripts/install-deps-ubuntu.sh

macOS

Because Mac varies in terms of dependency management, we recommend installing Xcode for build toolchain, then use homebrew to install openssl. Other dependencies via homebrew are the dynamically linked version of the libraries, so we recommend manually fetching the required packages:

curl https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz > /tmp/gmp.tar.xz
pushd /tmp/
tar xvf gmp.tar.xz
pushd gmp-6.3.0
./configure
make
make check
sudo make install
popd
git clone https://github.com/flintlib/flint.git
pushd flint
git checkout flint-3.0
./bootstrap.sh
./configure \
    --prefix=/usr/local \
    --with-gmp=/usr/local \
    --with-mpfr=/usr/local \
    --enable-static \
    --disable-shared \
    CFLAGS="-O3"
make
sudo make install
popd
popd

From there, you can trigger generation of all dependencies to build the node with:

task build_node_arm64_macos

gRPC/REST Support

If you want to enable gRPC/REST, add the following entries to your config.yml:

listenGrpcMultiaddr: <multiaddr> 
listenRESTMultiaddr: <multiaddr>

Please note: this interface, while read-only, is unauthenticated and not rate- limited. It is recommended that you only enable if you are properly controlling access via firewall or only query via localhost.

Prometheus Metrics

Quilibrium nodes expose comprehensive Prometheus metrics for monitoring and observability. The metrics are organized across several subsystems:

Disk Monitoring (disk_monitor namespace)

Tracks disk usage and space metrics for the node's data directory.

  • disk_monitor_usage_percentage - Current disk usage percentage
  • disk_monitor_total_bytes - Total disk space in bytes
  • disk_monitor_used_bytes - Used disk space in bytes
  • disk_monitor_free_bytes - Free disk space in bytes

P2P Networking (blossomsub namespace)

Monitors the BlossomSub peer-to-peer protocol performance.

  • blossomsub_*_total - Various operation counters (add_peer, remove_peer, join, leave, graft, prune, etc.)
  • blossomsub_*_messages - Message count histograms for IHave, IWant, IDontWant messages

Consensus Time Reel (quilibrium.time_reel subsystem)

Tracks consensus timing, fork choice, and blockchain tree operations.

  • frames_processed_total - Total frames processed (by type and status)
  • equivocations_detected_total - Equivocation detection counter
  • head_changes_total - Blockchain head changes (advances vs reorganizations)
  • reorganization_depth - Depth histogram of blockchain reorganizations
  • tree_depth / tree_node_count - Current tree structure metrics
  • fork_choice_evaluations_total - Fork choice algorithm executions

Dynamic Fees (quilibrium.dynamic_fees subsystem)

Monitors fee voting and calculation based on sliding window averages.

  • fee_votes_added_total / fee_votes_dropped_total - Fee vote tracking
  • current_fee_multiplier - Current calculated fee multiplier
  • sliding_window_size - Current number of votes in window
  • fee_vote_distribution - Distribution histogram of fee votes

Event Distribution (quilibrium.event_distributor subsystem)

Tracks internal event processing and distribution.

  • events_processed_total - Events processed by type
  • subscribers_count - Current active subscribers
  • broadcasts_total - Event broadcast counter
  • uptime_seconds - Distributor uptime

Hypergraph State (quilibrium.hypergraph subsystem)

The most comprehensive metrics tracking the CRDT hypergraph operations.

Core Operations

  • add_vertex_total / remove_vertex_total - Vertex operations
  • add_hyperedge_total / remove_hyperedge_total - Hyperedge operations
  • *_duration_seconds - Operation timing histograms

Lookups and Queries

  • lookup_vertex_total / lookup_hyperedge_total - Lookup counters
  • get_vertex_total / get_hyperedge_total - Get operation counters

Transactions

  • transaction_total - Transaction counters by status
  • commit_total / commit_duration_seconds - Commit metrics

Proofs

  • traversal_proof_create_total / traversal_proof_verify_total - Proof operations
  • traversal_proof_duration_seconds - Proof timing

Execution Intrinsics (quilibrium.intrinsics subsystem)

Monitors the execution engine's intrinsic operations.

  • materialize_total / materialize_duration_seconds - State materialization
  • invoke_step_total / invoke_step_errors_total - Step execution
  • commit_total / commit_errors_total - State commits
  • state_size_bytes - Current state size by intrinsic type

gRPC Metrics

Standard gRPC server and client metrics are automatically registered, including request duration, message sizes, and in-flight requests.

App Consensus Engine (quilibrium.app_consensus subsystem)

Monitors shard-specific consensus operations for application shards.

  • frames_processed_total - Total frames processed (by app_address and status)
  • frame_processing_duration_seconds - Frame processing time
  • frame_validation_total - Frame validation results
  • frame_proving_total / frame_proving_duration_seconds - Frame proving metrics
  • frame_publishing_total / frame_publishing_duration_seconds - Frame publishing metrics
  • transactions_collected_total - Transactions collected for frames
  • pending_messages_count - Current pending message count
  • executors_registered - Current number of registered executors
  • engine_state - Current engine state (0=stopped through 7=stopping)
  • current_difficulty - Current mining difficulty
  • current_frame_number - Current frame number being processed
  • time_since_last_proven_frame_seconds - Time elapsed since last proven frame

Global Consensus Engine (quilibrium.global_consensus subsystem)

Monitors global consensus operations across all shards.

  • frames_processed_total - Total global frames processed (by status)
  • frame_processing_duration_seconds - Global frame processing time
  • frame_validation_total - Global frame validation results
  • frame_proving_total / frame_proving_duration_seconds - Global frame proving metrics
  • frame_publishing_total / frame_publishing_duration_seconds - Global frame publishing metrics
  • shard_commitments_collected - Number of shard commitments collected
  • shard_commitment_collection_duration_seconds - Time to collect shard commitments
  • executors_registered - Current number of registered shard executors
  • engine_state - Current engine state (0=stopped through 7=stopping)
  • current_difficulty - Current global consensus difficulty
  • current_frame_number - Current global frame number
  • time_since_last_proven_frame_seconds - Time elapsed since last proven global frame
  • global_coordination_total / global_coordination_duration_seconds - Global coordination metrics
  • state_summaries_aggregated - Number of shard state summaries aggregated

Development

Please see the CONTRIBUTING.md file for more information on how to contribute to this repository.

License + Interpretation

Significant portions of Quilibrium's codebase depends on GPL-licensed code, mandating a minimum license of GPL, however Quilibrium is licensed as AGPL to accomodate the scenario in which a cloud provider may wish to coopt the network software. The AGPL allows such providers to do so, provided they are willing to contribute back the management code that interacts with the protocol and node software. To provide clarity, our interpretation is with respect to node provisioning and management tooling for deploying alternative networks, and not applications which are deployed to the network, mainnet status monitors, or container deployments of mainnet nodes from the public codebase.