Comment out test that's not actually testing anything

@sakridge, fyi
This commit is contained in:
Greg Fitzgerald 2019-03-01 20:57:36 -07:00
parent 49b7e67585
commit 986c54de58
1 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@ use solana_runtime::bank::Bank;
use solana_sdk::genesis_block::GenesisBlock; use solana_sdk::genesis_block::GenesisBlock;
use solana_sdk::hash::{hash, Hash}; use solana_sdk::hash::{hash, Hash};
use solana_sdk::pubkey::Pubkey; use solana_sdk::pubkey::Pubkey;
use solana_sdk::signature::{Keypair, KeypairUtil, Signature}; use solana_sdk::signature::{Keypair, KeypairUtil};
use solana_sdk::storage_program; use solana_sdk::storage_program;
use solana_sdk::storage_program::{StorageTransaction, ENTRIES_PER_SEGMENT}; use solana_sdk::storage_program::{StorageTransaction, ENTRIES_PER_SEGMENT};
use solana_sdk::system_transaction::SystemTransaction; use solana_sdk::system_transaction::SystemTransaction;
@ -78,17 +78,17 @@ fn test_bank_storage() {
bank.process_transaction(&tx).unwrap(); bank.process_transaction(&tx).unwrap();
let entry_height = 0; // TODO: This triggers a ProgramError(0, InvalidArgument). Why?
// Oddly, the assertions below it succeed without running this code.
let tx = StorageTransaction::new_mining_proof( //let entry_height = 0;
&jack, //let tx = StorageTransaction::new_mining_proof(
Hash::default(), // &jack,
last_id, // Hash::default(),
entry_height, // last_id,
Signature::default(), // entry_height,
); // Signature::default(),
//);
bank.process_transaction(&tx).unwrap(); //let _result = bank.process_transaction(&tx).unwrap();
assert_eq!( assert_eq!(
get_storage_entry_height(&bank, bob.pubkey()), get_storage_entry_height(&bank, bob.pubkey()),