mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Remove no longer necessary async from monero SignatableTransaction::sign
This commit is contained in:
@@ -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>,
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user