Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Fix HTTP version Handshake #216

Merged
merged 3 commits into from
Oct 26, 2023
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Change `REQUIRED_RUSK_VERSION` to `0.7.0-rc`
- Change the Staking Address generation. [#214]
- Change `dusk-wallet-core` to `0.22.0-plonk.0.16` [#214]

Expand Down
10 changes: 7 additions & 3 deletions src/bin/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,13 @@ impl Command {
) -> anyhow::Result<RunResult> {
match self {
Command::Balance { addr, spendable } => {
// don't check result of wallet sync, since we support offline
// balance
let _ = wallet.sync().await;
let sync_result = wallet.sync().await;
if let Err(e) = sync_result {
// Sync error should be reported only if wallet is online
if wallet.is_online().await {
tracing::error!("Unable to update the balance {e:?}")
}
}

let addr = match addr {
Some(addr) => wallet.claim_as_address(addr)?,
Expand Down
4 changes: 2 additions & 2 deletions src/rusk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rkyv::Archive;
use crate::Error;

/// Supported Rusk version
const REQUIRED_RUSK_VERSION: &str = "0.6.0";
const REQUIRED_RUSK_VERSION: &str = "0.7.0-rc";

#[derive(Debug)]
/// RuskRequesst according to the rusk event system
Expand Down Expand Up @@ -103,7 +103,7 @@ impl RuskHttpClient {
.post(format!("{uri}/{target_type}/{target}"))
.body(Body::from(request.to_bytes()?))
.header("Content-Type", "application/octet-stream")
.header("x-rusk-version", REQUIRED_RUSK_VERSION);
.header("rusk-version", REQUIRED_RUSK_VERSION);

if feed {
request = request.header("Rusk-Feeder", "1");
Expand Down
Loading