pub struct TransactionGenerator {
pub state: GeneratorState,
pub peer_lock: Arc<RwLock<PeerCollection>>,
/* private fields */
}
Fields§
§state: GeneratorState
§peer_lock: Arc<RwLock<PeerCollection>>
Implementations§
Source§impl TransactionGenerator
impl TransactionGenerator
pub async fn create( wallet_lock: Arc<RwLock<Wallet>>, peers_lock: Arc<RwLock<PeerCollection>>, blockchain_lock: Arc<RwLock<Blockchain>>, configuration_lock: Arc<RwLock<SpammerConfigs>>, sender: Sender<VecDeque<Transaction>>, tx_payment: Currency, tx_fee: Currency, ) -> Self
pub fn get_state(&self) -> GeneratorState
pub async fn on_new_block(&mut self)
pub async fn check_blockchain_for_confirmation(&mut self) -> bool
pub async fn create_test_transactions(&mut self)
Auto Trait Implementations§
impl Freeze for TransactionGenerator
impl !RefUnwindSafe for TransactionGenerator
impl Send for TransactionGenerator
impl Sync for TransactionGenerator
impl Unpin for TransactionGenerator
impl !UnwindSafe for TransactionGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more