bump up the bandwidth a bit

This commit is contained in:
Simon Wicky
2023-11-08 10:18:24 +01:00
committed by durch
parent 9d030bef94
commit 976b6d9ada
4 changed files with 5 additions and 1 deletions
@@ -103,6 +103,7 @@ impl WithdrawalReqInstance {
bytes
}
#[allow(dead_code)]
pub fn from_bytes(bytes: &[u8]) -> Result<WithdrawalReqInstance> {
WithdrawalReqInstance::try_from(bytes)
}
@@ -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);
}
@@ -59,6 +59,7 @@ impl GroupParameters {
&self.gammas[0]
}
#[allow(dead_code)]
pub(crate) fn gamma2(&self) -> Option<&G1Projective> {
self.gammas.get(2)
}
@@ -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?;