Delete stub src/transaction.rs

This commit is contained in:
Michael Vines
2018-11-29 16:18:47 -08:00
parent de910e1169
commit 0878bd53d9
37 changed files with 48 additions and 56 deletions

View File

@ -9,8 +9,8 @@ use solana::bank::*;
use solana::mint::Mint;
use solana::signature::{Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
use solana::transaction::Transaction;
use solana_sdk::hash::hash;
use solana_sdk::transaction::Transaction;
use test::Bencher;
#[bench]

View File

@ -15,9 +15,9 @@ use solana::mint::Mint;
use solana::packet::to_packets_chunked;
use solana::signature::{KeypairUtil, Signature};
use solana::system_transaction::SystemTransaction;
use solana::transaction::Transaction;
use solana_sdk::hash::hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::iter;
use std::sync::mpsc::{channel, Receiver};
use std::sync::Arc;

View File

@ -7,8 +7,8 @@ use solana::entry::reconstruct_entries_from_blobs;
use solana::ledger::{next_entries, Block};
use solana::signature::{Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
use solana::transaction::Transaction;
use solana_sdk::hash::{hash, Hash};
use solana_sdk::transaction::Transaction;
use test::Bencher;
#[bench]

View File

@ -30,6 +30,7 @@ use solana_sdk::hash::{hash, Hash};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::timing::{duration_as_us, timestamp};
use solana_sdk::transaction::Transaction;
use std;
use std::collections::{BTreeMap, HashMap, HashSet, VecDeque};
use std::result;
@ -40,7 +41,6 @@ use system_program;
use system_transaction::SystemTransaction;
use token_program;
use tokio::prelude::Future;
use transaction::Transaction;
/// The number of most recent `last_id` values that the bank will track the signatures
/// of. Once the bank discards a `last_id`, it will reject any transactions that use
@ -1372,11 +1372,11 @@ mod tests {
use signature::Keypair;
use signature::{GenKeys, KeypairUtil};
use solana_sdk::hash::hash;
use solana_sdk::transaction::Instruction;
use std;
use storage_program;
use system_transaction::SystemTransaction;
use tokio::prelude::{Async, Stream};
use transaction::Instruction;
use vote_program;
#[test]

View File

@ -16,6 +16,7 @@ use service::Service;
use sigverify_stage::VerifiedPackets;
use solana_sdk::hash::Hash;
use solana_sdk::timing;
use solana_sdk::transaction::Transaction;
use std::net::SocketAddr;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::mpsc::{channel, Receiver, RecvTimeoutError};
@ -23,7 +24,6 @@ use std::sync::{Arc, Mutex};
use std::thread::{self, Builder, JoinHandle};
use std::time::Duration;
use std::time::Instant;
use transaction::Transaction;
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum BankingStageReturnType {
@ -256,9 +256,9 @@ mod tests {
use mint::Mint;
use packet::to_packets;
use signature::{Keypair, KeypairUtil};
use solana_sdk::transaction::Transaction;
use std::thread::sleep;
use system_transaction::SystemTransaction;
use transaction::Transaction;
#[test]
fn test_banking_stage_shutdown1() {

View File

@ -18,13 +18,13 @@ use solana::service::Service;
use solana::signature::{read_keypair, GenKeys, Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
use solana::thin_client::{poll_gossip_for_leader, ThinClient};
use solana::transaction::Transaction;
use solana::window::default_window;
use solana_drone::drone::{request_airdrop_transaction, DRONE_PORT};
use solana_metrics::influxdb;
use solana_sdk::hash::Hash;
use solana_sdk::timing::timestamp;
use solana_sdk::timing::{duration_as_ms, duration_as_s};
use solana_sdk::transaction::Transaction;
use std::cmp;
use std::collections::VecDeque;
use std::net::SocketAddr;

View File

@ -5,6 +5,7 @@ extern crate serde_json;
#[macro_use]
extern crate solana;
extern crate solana_drone;
extern crate solana_sdk;
use clap::{App, Arg};
use solana::chacha::{chacha_cbc_encrypt_file, CHACHA_BLOCK_SIZE};
@ -16,8 +17,8 @@ use solana::logger;
use solana::replicator::{sample_file, Replicator};
use solana::signature::{Keypair, KeypairUtil};
use solana::storage_transaction::StorageTransaction;
use solana::transaction::Transaction;
use solana_drone::drone::{request_airdrop_transaction, DRONE_PORT};
use solana_sdk::transaction::Transaction;
use std::fs::File;
use std::net::{Ipv4Addr, SocketAddr};
use std::path::Path;

View File

@ -7,8 +7,8 @@ use payment_plan::Witness;
use program::ProgramError;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::io;
use transaction::Transaction;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub enum BudgetError {
@ -269,7 +269,7 @@ mod test {
use solana_sdk::account::Account;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use transaction::Transaction;
use solana_sdk::transaction::Transaction;
fn process_transaction(tx: &Transaction, accounts: &mut [Account]) -> Result<(), BudgetError> {
let mut refs: Vec<&mut Account> = accounts.iter_mut().collect();

View File

@ -10,7 +10,7 @@ use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::{SystemInstruction, SYSTEM_PROGRAM_ID};
use transaction::{self, Transaction};
use solana_sdk::transaction::{self, Transaction};
pub trait BudgetTransaction {
fn budget_new_taxed(
@ -228,7 +228,6 @@ mod tests {
use super::*;
use bincode::{deserialize, serialize};
use signature::KeypairUtil;
use transaction;
#[test]
fn test_claim() {

View File

@ -140,10 +140,10 @@ pub mod tests {
use mint::Mint;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::hash;
use solana_sdk::transaction::Transaction;
use std::sync::Arc;
use std::thread::sleep;
use std::time::Duration;
use transaction::Transaction;
use vote_program::Vote;
use vote_transaction::{create_vote_account, VoteTransaction};

View File

@ -1,7 +1,7 @@
use contact_info::ContactInfo;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::fmt;
use transaction::Transaction;
/// CrdsValue that is replicated across the cluster
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]

View File

@ -8,11 +8,11 @@ use poh::Poh;
use result::Result;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::io::Cursor;
use std::mem::size_of;
use std::net::SocketAddr;
use std::sync::mpsc::{Receiver, Sender};
use transaction::Transaction;
pub type EntrySender = Sender<Vec<Entry>>;
pub type EntryReceiver = Receiver<Vec<Entry>>;
@ -277,8 +277,8 @@ mod tests {
use entry::Entry;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::hash;
use solana_sdk::transaction::Transaction;
use system_transaction::SystemTransaction;
use transaction::Transaction;
#[test]
fn test_entry_verify() {

View File

@ -10,10 +10,10 @@ use ledger::create_ticks;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::{hash, Hash};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::collections::HashSet;
use std::io::Cursor;
use system_transaction::SystemTransaction;
use transaction::Transaction;
use vote_program::{self, Vote, VoteProgram};
use vote_transaction::VoteTransaction;
@ -503,10 +503,10 @@ mod tests {
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::collections::HashSet;
use std::hash::Hash as StdHash;
use std::iter::FromIterator;
use transaction::Transaction;
use vote_program::Vote;
use vote_transaction::{create_vote_account, VoteTransaction};

View File

@ -13,13 +13,13 @@ use rayon::prelude::*;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::{hash, Hash};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::fs::{copy, create_dir_all, remove_dir_all, File, OpenOptions};
use std::io::prelude::*;
use std::io::{self, BufReader, BufWriter, Seek, SeekFrom};
use std::mem::size_of;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::path::Path;
use transaction::Transaction;
use vote_program::Vote;
use vote_transaction::VoteTransaction;
@ -706,9 +706,9 @@ mod tests {
use packet::{to_blobs, BLOB_DATA_SIZE, PACKET_DATA_SIZE};
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::hash;
use solana_sdk::transaction::Transaction;
use std;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use transaction::Transaction;
use vote_program::Vote;
#[test]

View File

@ -81,7 +81,6 @@ pub mod thin_client;
pub mod token_program;
pub mod tpu;
pub mod tpu_forwarder;
pub mod transaction;
pub mod tvu;
pub mod vote_program;
pub mod vote_stage;

View File

@ -4,7 +4,7 @@ use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::loader_instruction::LoaderInstruction;
use solana_sdk::pubkey::Pubkey;
use transaction::Transaction;
use solana_sdk::transaction::Transaction;
pub trait LoaderTransaction {
fn loader_write(

View File

@ -5,8 +5,8 @@ use ring::rand::SystemRandom;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::{hash, Hash};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use system_transaction::SystemTransaction;
use transaction::Transaction;
use untrusted::Input;
#[derive(Serialize, Deserialize, Debug)]

View File

@ -469,11 +469,11 @@ mod tests {
};
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use std::io;
use std::io::Write;
use std::net::UdpSocket;
use system_transaction::SystemTransaction;
use transaction::Transaction;
#[test]
pub fn packet_send_recv() {

View File

@ -6,9 +6,9 @@ use entry::Entry;
use poh::Poh;
use result::{Error, Result};
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex};
use transaction::Transaction;
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum PohRecorderError {

View File

@ -12,6 +12,7 @@ use signature::Signature;
use solana_drone::drone::{request_airdrop_transaction, DRONE_PORT};
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::mem;
use std::net::{SocketAddr, UdpSocket};
use std::result;
@ -21,7 +22,6 @@ use std::sync::{Arc, RwLock};
use std::thread::{self, sleep, Builder, JoinHandle};
use std::time::Duration;
use std::time::Instant;
use transaction::Transaction;
pub const RPC_PORT: u16 = 8899;
@ -374,10 +374,10 @@ mod tests {
use reqwest::header::CONTENT_TYPE;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::{hash, Hash};
use solana_sdk::transaction::Transaction;
use std::fs::remove_dir_all;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use system_transaction::SystemTransaction;
use transaction::Transaction;
fn start_rpc_handler_with_tx(pubkey: Pubkey) -> (MetaIoHandler<Meta>, Meta, Hash, Keypair) {
let alice = Mint::new(10_000);

View File

@ -251,10 +251,10 @@ mod tests {
use jsonrpc_core::futures::sync::mpsc;
use mint::Mint;
use signature::{Keypair, KeypairUtil};
use solana_sdk::transaction::Transaction;
use std::net::{IpAddr, Ipv4Addr};
use system_transaction::SystemTransaction;
use tokio::prelude::{Async, Stream};
use transaction::Transaction;
#[test]
fn test_pubsub_new() {

View File

@ -3,9 +3,9 @@ use native_loader;
use program::ProgramError;
use solana_sdk::account::{create_keyed_accounts, Account, KeyedAccount};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use storage_program;
use system_program;
use transaction::Transaction;
use vote_program;
/// Reasons the runtime might have rejected a transaction.

View File

@ -11,11 +11,11 @@ use packet::{Packet, SharedPackets};
use result::Result;
use signature::Signature;
use solana_sdk::pubkey::Pubkey;
#[cfg(test)]
use solana_sdk::transaction::Transaction;
use std::io;
use std::mem::size_of;
use std::sync::atomic::AtomicUsize;
#[cfg(test)]
use transaction::Transaction;
pub const TX_OFFSET: usize = 0;
@ -329,10 +329,9 @@ mod tests {
use sigverify;
use solana_sdk::hash::Hash;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::transaction::{Instruction, Transaction};
use system_program;
use system_transaction::{memfind, test_tx};
use transaction;
use transaction::Transaction;
#[test]
fn test_layout() {
@ -431,11 +430,7 @@ mod tests {
let program_ids = vec![system_program::id(), budget_program::id()];
let instructions = vec![transaction::Instruction::new(
0,
&system_instruction,
vec![0, 1],
)];
let instructions = vec![Instruction::new(0, &system_instruction, vec![0, 1])];
let tx = Transaction::new_with_instructions(
&keypairs,

View File

@ -7,7 +7,7 @@ use program::ProgramError;
use solana_sdk::account::Account;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use transaction::Transaction;
use solana_sdk::transaction::Transaction;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub enum StorageProgram {

View File

@ -267,6 +267,7 @@ mod tests {
use service::Service;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use std::cmp::{max, min};
use std::fs::remove_dir_all;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
@ -277,7 +278,6 @@ mod tests {
use storage_stage::StorageState;
use storage_stage::NUM_IDENTITIES;
use storage_stage::{get_identity_index_from_pubkey, StorageStage};
use transaction::Transaction;
use vote_program::Vote;
use vote_transaction::VoteTransaction;

View File

@ -1,7 +1,7 @@
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use storage_program::{self, StorageProgram};
use transaction::Transaction;
pub trait StorageTransaction {
fn storage_new_mining_proof(from_keypair: &Keypair, sha_state: Hash, last_id: Hash) -> Self;

View File

@ -5,8 +5,8 @@ use program::ProgramError;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::transaction::Transaction;
use std;
use transaction::Transaction;
#[derive(Debug)]
pub enum Error {
@ -137,8 +137,8 @@ mod test {
use solana_sdk::account::Account;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Instruction;
use system_transaction::SystemTransaction;
use transaction::{Instruction, Transaction};
/// Execute a function with a subset of accounts as writable references.
/// Since the subset can point to the same references, in any order there is no way

View File

@ -4,10 +4,9 @@ use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::transaction::{Instruction, Transaction};
use system_program;
use transaction::{Instruction, Transaction};
pub trait SystemTransaction {
fn system_create(
from_keypair: &Keypair,
@ -159,7 +158,7 @@ mod tests {
use bincode::{deserialize, serialize};
use packet::PACKET_DATA_SIZE;
use sigverify;
use transaction::SIG_OFFSET;
use solana_sdk::transaction::SIG_OFFSET;
#[test]
fn test_layout() {

View File

@ -21,6 +21,7 @@ use solana_sdk::account::Account;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::timing;
use solana_sdk::transaction::Transaction;
use std;
use std::collections::HashMap;
use std::io;
@ -31,7 +32,6 @@ use std::thread::sleep;
use std::time::Duration;
use std::time::Instant;
use system_transaction::SystemTransaction;
use transaction::Transaction;
/// An object for querying and sending transactions to the network.
pub struct ThinClient {

View File

@ -1 +0,0 @@
pub use solana_sdk::transaction::*;

View File

@ -179,6 +179,7 @@ pub mod tests {
use service::Service;
use signature::{Keypair, KeypairUtil};
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use std::fs::remove_dir_all;
use std::net::UdpSocket;
use std::sync::atomic::{AtomicBool, Ordering};
@ -187,7 +188,6 @@ pub mod tests {
use std::time::Duration;
use streamer;
use system_transaction::SystemTransaction;
use transaction::Transaction;
use tvu::Tvu;
use window::{self, SharedWindow};

View File

@ -6,10 +6,10 @@ use byteorder::{ByteOrder, LittleEndian};
use program::ProgramError;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std;
use std::collections::VecDeque;
use std::mem;
use transaction::Transaction;
// Maximum number of votes to keep around
const MAX_VOTE_HISTORY: usize = 32;

View File

@ -9,11 +9,11 @@ use packet::SharedBlob;
use result::{Error, Result};
use signature::Keypair;
use solana_sdk::hash::Hash;
use solana_sdk::transaction::Transaction;
use std::net::SocketAddr;
use std::sync::atomic::AtomicUsize;
use std::sync::{Arc, RwLock};
use streamer::BlobSender;
use transaction::Transaction;
use vote_program::Vote;
use vote_transaction::VoteTransaction;

View File

@ -11,8 +11,8 @@ use signature::KeypairUtil;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::system_instruction::SystemInstruction;
use solana_sdk::transaction::{Instruction, Transaction};
use system_program;
use transaction::{Instruction, Transaction};
use vote_program::{self, Vote, VoteInstruction};
pub trait VoteTransaction {

View File

@ -17,6 +17,7 @@ use signature::{Keypair, KeypairUtil, Signature};
use solana_drone::drone::{request_airdrop_transaction, DRONE_PORT};
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
use std::fs::{self, File};
use std::io::Write;
use std::net::{Ipv4Addr, SocketAddr};
@ -27,7 +28,6 @@ use std::time::Duration;
use std::{error, fmt, mem};
use system_transaction::SystemTransaction;
use thin_client::poll_gossip_for_leader;
use transaction::Transaction;
const PLATFORM_SECTION_C: &str = ".text.entrypoint";
const USERDATA_CHUNK_SIZE: usize = 256;

View File

@ -27,11 +27,11 @@ use solana::service::Service;
use solana::signature::{Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
use solana::thin_client::{retry_get_balance, ThinClient};
use solana::transaction::Transaction;
use solana::window::default_window;
use solana_sdk::hash::Hash;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::timing::{duration_as_ms, duration_as_s};
use solana_sdk::transaction::Transaction;
use std::collections::{HashSet, VecDeque};
use std::env;
use std::fs::remove_dir_all;

View File

@ -13,8 +13,8 @@ use solana::mint::Mint;
use solana::native_loader;
use solana::signature::{Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
use solana::transaction::Transaction;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::transaction::Transaction;
#[cfg(feature = "bpf_c")]
use std::env;
#[cfg(feature = "bpf_c")]