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::hash::{hash, Hash};
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::{StorageTransaction, ENTRIES_PER_SEGMENT};
use solana_sdk::system_transaction::SystemTransaction;
@ -78,17 +78,17 @@ fn test_bank_storage() {
bank.process_transaction(&tx).unwrap();
let entry_height = 0;
let tx = StorageTransaction::new_mining_proof(
&jack,
Hash::default(),
last_id,
entry_height,
Signature::default(),
);
bank.process_transaction(&tx).unwrap();
// TODO: This triggers a ProgramError(0, InvalidArgument). Why?
// Oddly, the assertions below it succeed without running this code.
//let entry_height = 0;
//let tx = StorageTransaction::new_mining_proof(
// &jack,
// Hash::default(),
// last_id,
// entry_height,
// Signature::default(),
//);
//let _result = bank.process_transaction(&tx).unwrap();
assert_eq!(
get_storage_entry_height(&bank, bob.pubkey()),