Skip to content

Commit

Permalink
Bump version 0.3.0 -> 0.4.0 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidson-Souza authored Jun 16, 2023
1 parent cf25472 commit 123d733
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "floresta"
version = "0.3.0"
version = "0.4.0"
edition = "2021"

[workspace]
Expand Down
7 changes: 5 additions & 2 deletions src/electrum/electrum_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl<Blockchain: BlockchainInterface> ElectrumServer<Blockchain> {
"protocol_max": "1.4",
"protocol_min": "1.0",
"pruning": null,
"server_version": "Floresta 0.1.2",
"server_version": format!("Floresta {}", env!("CARGO_PKG_VERSION")),
"hash_function": "sha256"
}
);
Expand All @@ -303,7 +303,10 @@ impl<Blockchain: BlockchainInterface> ElectrumServer<Blockchain> {
// TODO: Return peers?
"server.peers.subscribe" => json_rpc_res!(request, []),
"server.ping" => json_rpc_res!(request, null),
"server.version" => json_rpc_res!(request, ["Floresta 0.3.0", "1.4"]),
"server.version" => json_rpc_res!(
request,
[format!("Floresta {}", env!("CARGO_PKG_VERSION")), "1.4"]
),

_ => Err(super::error::Error::InvalidParams),
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pub const RUST_BITCOIN_VERSION: &str = "0.29.3";
/// Version of rustreexo we use
pub const RUSTREEXO_VERSION: &str = "0.1.0";
/// Our own version
pub const FLORESTA_VERSION: &str = "0.3.0";
pub const FLORESTA_VERSION: &str = env!("CARGO_PKG_VERSION");

0 comments on commit 123d733

Please sign in to comment.