Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["crates/*"]
default-members = ["crates/storb_cli"]

[workspace.package]
version = "0.2.0"
version = "0.2.1"
description = "An object storage subnet on the Bittensor network"
edition = "2021"
authors = ["Storb Technologies Ltd"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ VOLUME ["/app", "/root/.bittensor/wallets"]

WORKDIR /app

CMD ["sh", "-c", "/usr/local/bin/storb ${NODE_TYPE}", "--crsqlite_file", "/app/crsqlite/crsqlite.so"]
CMD ["sh", "-c", "/usr/local/bin/storb ${NODE_TYPE}", "--validator.crsqlite_file", "/app/crsqlite/crsqlite.so"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For an overview of how the subnet works, [see here](docs/overview.md).

Install the Rust nightly toolchain.

If you're using Ubuntu, you should be using Ubuntu 24.04 LTS. Ensure that the following dependencies are installed:
Ensure that the following dependencies are installed:

```bash
sudo apt update
Expand Down
2 changes: 1 addition & 1 deletion crates/storb_miner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "storb_miner"
version = "0.2.0"
version = "0.2.1"
edition.workspace = true

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/storb_miner/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use axum::response::IntoResponse;
use base::piece_hash::{piecehash_str_to_bytes, PieceHashStr};
use base::verification::HandshakePayload;
use crabtensor::sign::verify_signature;
use tracing::{debug, error, info};
use tracing::{debug, error, info, trace};

use crate::MinerState;

Expand All @@ -24,7 +24,7 @@ use crate::MinerState;
pub async fn node_info(
state: axum::extract::State<MinerState>,
) -> Result<impl IntoResponse, (StatusCode, Vec<u8>)> {
info!("Got node info req");
trace!("Got node info req");
let local_node_info = state.local_node_info.clone();
let serialized_local_node_info = bincode::serialize(&local_node_info).map_err(|e| {
error!("Error while deserialising local node info: {e}");
Expand Down
2 changes: 1 addition & 1 deletion crates/storb_validator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "storb_validator"
version = "0.2.0"
version = "0.2.1"
edition.workspace = true

[dependencies]
Expand Down
6 changes: 6 additions & 0 deletions crates/storb_validator/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pub const MIN_SYNTH_CHUNK_SIZE: usize = 1024 * 10 * 10; // minimum size of synth
pub const MAX_SYNTH_CHUNK_SIZE: usize = 1024 * 10 * 10 * 10 * 10; // maximum size of synthetic data in bytes
pub const MAX_SYNTH_CHALLENGE_MINER_NUM: usize = 10; // maximum number of miners to challenge

// constants for MetadataDB
pub const DB_MAX_LIFETIME: u64 = 3600; // Close connections after 1 hour
pub const IDLE_TIMEOUT: u64 = 600; // Close connections after 10 minutes of inactivity
pub const CONNECTION_TIMEOUT: u64 = 30; // Timeout for establishing a connection
pub const TAO_IN_RAO: f64 = 1_000_000_000.0; // 1 TAO = 1,000,000,000 RAO

pub const INFO_API_RATE_LIMIT_DURATION: Duration = Duration::from_secs(60);
pub const INFO_API_RATE_LIMIT_MAX_REQUESTS: usize = 10;

Expand Down
Loading
Loading