mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
cargo fmt 1.31.1
This commit is contained in:
@@ -109,11 +109,12 @@ fn single_output_hash(tx_out: &TxOut) -> Vec<u8> {
|
||||
|
||||
fn joinsplits_hash(tx: &TransactionData) -> Vec<u8> {
|
||||
let mut data = Vec::with_capacity(
|
||||
tx.joinsplits.len() * if tx.version < SAPLING_TX_VERSION {
|
||||
1802 // JSDescription with PHGR13 proof
|
||||
} else {
|
||||
1698 // JSDescription with Groth16 proof
|
||||
},
|
||||
tx.joinsplits.len()
|
||||
* if tx.version < SAPLING_TX_VERSION {
|
||||
1802 // JSDescription with PHGR13 proof
|
||||
} else {
|
||||
1698 // JSDescription with Groth16 proof
|
||||
},
|
||||
);
|
||||
for js in &tx.joinsplits {
|
||||
js.write(&mut data).unwrap();
|
||||
|
Reference in New Issue
Block a user