mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Monero prepare_send
This commit is contained in:
@@ -37,11 +37,11 @@ pub struct TransactionMachine {
|
||||
impl SignableTransaction {
|
||||
pub async fn multisig<R: RngCore + CryptoRng>(
|
||||
mut self,
|
||||
mut transcript: Transcript,
|
||||
rng: &mut R,
|
||||
rpc: &Rpc,
|
||||
height: usize,
|
||||
keys: MultisigKeys<Ed25519>,
|
||||
mut transcript: Transcript,
|
||||
height: usize,
|
||||
mut included: Vec<u16>
|
||||
) -> Result<TransactionMachine, TransactionError> {
|
||||
let mut images = vec![];
|
||||
|
||||
@@ -145,11 +145,11 @@ async fn send_core(test: usize, multisig: bool) {
|
||||
machines.insert(
|
||||
i,
|
||||
signable.clone().multisig(
|
||||
Transcript::new(b"Monero Serai Test Transaction"),
|
||||
&mut OsRng,
|
||||
&rpc,
|
||||
rpc.get_height().await.unwrap() - 10,
|
||||
(*keys[&i]).clone(),
|
||||
Transcript::new(b"Monero Serai Test Transaction"),
|
||||
rpc.get_height().await.unwrap() - 10,
|
||||
(1 ..= THRESHOLD).collect::<Vec<_>>()
|
||||
).await.unwrap()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user