Skip to content

Commit

Permalink
chore: up version, new protocol version (#244)
Browse files Browse the repository at this point in the history
Description
---
new version
  • Loading branch information
SWvheerden authored Jan 28, 2025
1 parent a258be8 commit 01ed96d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 51 deletions.
84 changes: 42 additions & 42 deletions Cargo.lock

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

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "sha_p2pool"
version = "0.20.6"
version = "0.21.0"

[dependencies]
anyhow = "1.0"
Expand Down Expand Up @@ -43,19 +43,19 @@ libp2p = { version = "0.54.1", features = [
] }
log = { version = "0.4.21", features = ["kv"] }
log4rs = "1.3.0"
minotari_app_grpc = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
minotari_node_grpc_client = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
minotari_app_grpc = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
minotari_node_grpc_client = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
num = { version = "0.4.3", features = ["default", "num-bigint", "serde"] }
rand = "0.8.0"
serde = "1.0.203"
serde_cbor = "0.11.2"
serde_json = "1.0.122"
tari_common = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
tari_common_types = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
tari_core = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
tari_common = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
tari_common_types = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
tari_core = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
tari_crypto = "0.21.0"
tari_script = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
tari_shutdown = { git = "https://github.com/tari-project/tari.git", rev = "98a76e5e36ab056b36d342e2408306ec67c406dc" }
tari_script = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
tari_shutdown = { git = "https://github.com/tari-project/tari.git", rev = "36ff43680ac9eacada86621aee873149d86175ad" }
tari_utilities = { version = "0.8", features = ["borsh"] }
thiserror = "1.0"
tokio = { version = "1.41.0", features = ["full"] }
Expand Down
9 changes: 9 additions & 0 deletions src/server/grpc/base_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use minotari_app_grpc::{
GetBlocksRequest,
GetHeaderByHashRequest,
GetMempoolTransactionsRequest,
GetNetworkStateRequest,
GetNetworkStateResponse,
GetNewBlockBlobResult,
GetNewBlockResult,
GetNewBlockTemplateWithCoinbasesRequest,
Expand Down Expand Up @@ -218,6 +220,13 @@ impl tari_rpc::base_node_server::BaseNode for TariBaseNodeGrpc {
proxy_stream_result!(self, get_blocks, request, GET_BLOCKS_PAGE_SIZE)
}

async fn get_network_state(
&self,
request: Request<GetNetworkStateRequest>,
) -> Result<Response<GetNetworkStateResponse>, Status> {
proxy_simple_result!(self, get_network_state, request)
}

async fn get_block_timing(&self, request: Request<HeightRequest>) -> Result<Response<BlockTimingResponse>, Status> {
proxy_simple_result!(self, get_block_timing, request)
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ pub mod grpc;
pub mod http;
pub mod p2p;

pub const PROTOCOL_VERSION: u64 = 30;
pub const PROTOCOL_VERSION: u64 = 31;

0 comments on commit 01ed96d

Please sign in to comment.