Remove no longer necessary async from monero SignatableTransaction::sign

This commit is contained in:
Luke Parker
2023-08-29 16:20:21 -04:00
parent 285422f71a
commit 83c25eff03
5 changed files with 2 additions and 6 deletions

View File

@@ -805,8 +805,7 @@ impl SignableTransaction {
} }
/// Sign this transaction. /// Sign this transaction.
// TODO: Remove async pub fn sign<R: RngCore + CryptoRng>(
pub async fn sign<R: RngCore + CryptoRng>(
mut self, mut self,
rng: &mut R, rng: &mut R,
spend: &Zeroizing<Scalar>, spend: &Zeroizing<Scalar>,

View File

@@ -228,7 +228,7 @@ macro_rules! test {
let keys = keys.clone(); let keys = keys.clone();
async move { async move {
if !multisig { if !multisig {
tx.sign(&mut OsRng, &spend).await.unwrap() tx.sign(&mut OsRng, &spend).unwrap()
} else { } else {
#[cfg(not(feature = "multisig"))] #[cfg(not(feature = "multisig"))]
panic!("Multisig branch called without the multisig feature"); panic!("Multisig branch called without the multisig feature");

View File

@@ -630,7 +630,6 @@ impl Network for Monero {
) )
.unwrap() .unwrap()
.sign(&mut OsRng, &Zeroizing::new(Scalar::ONE.0)) .sign(&mut OsRng, &Zeroizing::new(Scalar::ONE.0))
.await
.unwrap(); .unwrap();
let block = self.get_latest_block_number().await.unwrap() + 1; let block = self.get_latest_block_number().await.unwrap() + 1;

View File

@@ -387,7 +387,6 @@ async fn mint_and_burn_test() {
) )
.unwrap() .unwrap()
.sign(&mut OsRng, &Zeroizing::new(Scalar::ONE)) .sign(&mut OsRng, &Zeroizing::new(Scalar::ONE))
.await
.unwrap(); .unwrap();
rpc.publish_transaction(&tx).await.unwrap() rpc.publish_transaction(&tx).await.unwrap()

View File

@@ -367,7 +367,6 @@ impl Wallet {
) )
.unwrap() .unwrap()
.sign(&mut OsRng, spend_key) .sign(&mut OsRng, spend_key)
.await
.unwrap(); .unwrap();
// Push the change output // Push the change output