From 976b6d9ada6a1de159fe651f6bfbd99bac2f0909 Mon Sep 17 00:00:00 2001 From: Simon Wicky Date: Wed, 8 Nov 2023 10:18:24 +0100 Subject: [PATCH] bump up the bandwidth a bit --- common/nym_offline_compact_ecash/src/proofs/proof_withdrawal.rs | 1 + common/nym_offline_compact_ecash/src/scheme/mod.rs | 2 ++ common/nym_offline_compact_ecash/src/scheme/setup.rs | 1 + .../websocket/connection_handler/authenticated.rs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/nym_offline_compact_ecash/src/proofs/proof_withdrawal.rs b/common/nym_offline_compact_ecash/src/proofs/proof_withdrawal.rs index 2388204c67..fec9d27359 100644 --- a/common/nym_offline_compact_ecash/src/proofs/proof_withdrawal.rs +++ b/common/nym_offline_compact_ecash/src/proofs/proof_withdrawal.rs @@ -103,6 +103,7 @@ impl WithdrawalReqInstance { bytes } + #[allow(dead_code)] pub fn from_bytes(bytes: &[u8]) -> Result { WithdrawalReqInstance::try_from(bytes) } diff --git a/common/nym_offline_compact_ecash/src/scheme/mod.rs b/common/nym_offline_compact_ecash/src/scheme/mod.rs index 9792a29dce..c89f3f5a1d 100644 --- a/common/nym_offline_compact_ecash/src/scheme/mod.rs +++ b/common/nym_offline_compact_ecash/src/scheme/mod.rs @@ -106,6 +106,8 @@ impl Wallet { bytes[128..136].copy_from_slice(&self.l.get().to_le_bytes()); bytes } + + #[allow(dead_code)] fn up(&self) { self.l.set(self.l.get() + 1); } diff --git a/common/nym_offline_compact_ecash/src/scheme/setup.rs b/common/nym_offline_compact_ecash/src/scheme/setup.rs index fb29dfd4d6..a2a8f2e572 100644 --- a/common/nym_offline_compact_ecash/src/scheme/setup.rs +++ b/common/nym_offline_compact_ecash/src/scheme/setup.rs @@ -59,6 +59,7 @@ impl GroupParameters { &self.gammas[0] } + #[allow(dead_code)] pub(crate) fn gamma2(&self) -> Option<&G1Projective> { self.gammas.get(2) } diff --git a/gateway/src/node/client_handling/websocket/connection_handler/authenticated.rs b/gateway/src/node/client_handling/websocket/connection_handler/authenticated.rs index 2a784be773..1341e3acca 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/authenticated.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/authenticated.rs @@ -259,7 +259,7 @@ where self.inner.storage.insert_credential(credential).await?; - let bandwidth_value = 500000; //SW MAKE A GLOBAL PARAMETER + let bandwidth_value = 100000000; //SW MAKE A GLOBAL PARAMETER self.increase_bandwidth(bandwidth_value).await?; let available_total = self.get_available_bandwidth().await?;