Get chacha off Budget

This commit is contained in:
Greg Fitzgerald
2019-03-07 15:55:57 -07:00
parent 7a4ccc8719
commit c5e9c6fdb6

View File

@ -95,9 +95,9 @@ mod tests {
use crate::chacha::chacha_cbc_encrypt_ledger; use crate::chacha::chacha_cbc_encrypt_ledger;
use crate::entry::Entry; use crate::entry::Entry;
use ring::signature::Ed25519KeyPair; use ring::signature::Ed25519KeyPair;
use solana_budget_api::budget_transaction::BudgetTransaction;
use solana_sdk::hash::{hash, Hash, Hasher}; use solana_sdk::hash::{hash, Hash, Hasher};
use solana_sdk::signature::KeypairUtil; use solana_sdk::signature::KeypairUtil;
use solana_sdk::system_transaction::SystemTransaction;
use std::fs::remove_file; use std::fs::remove_file;
use std::fs::File; use std::fs::File;
use std::io::Read; use std::io::Read;
@ -124,11 +124,12 @@ mod tests {
Entry::new_mut( Entry::new_mut(
&mut id, &mut id,
&mut num_hashes, &mut num_hashes,
vec![BudgetTransaction::new_signature( vec![SystemTransaction::new_account(
&keypair, &keypair,
keypair.pubkey(), keypair.pubkey(),
keypair.pubkey(), 1,
one, one,
0,
)], )],
) )
}) })
@ -161,7 +162,7 @@ mod tests {
use bs58; use bs58;
// golden needs to be updated if blob stuff changes.... // golden needs to be updated if blob stuff changes....
let golden = Hash::new( let golden = Hash::new(
&bs58::decode("BCNVsE19CCpsvGseZTCEEM1qSiX1ridku2w155VveqEu") &bs58::decode("B33zQ8Kc3Wr3vZAbB6GcWaB3sSGeG98nvm4QB9URpJhR")
.into_vec() .into_vec()
.unwrap(), .unwrap(),
); );