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
No known key found for this signature in database
5 changed files with 2 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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

View file

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