minor changes

This commit is contained in:
godmodegalactus 2024-05-20 13:14:56 +02:00
parent 7bccd66814
commit 0d3968d7e4
No known key found for this signature in database
GPG Key ID: 22DA4A30887FDA3C
1 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,9 @@ pub fn main() -> anyhow::Result<()> {
let mut slot = 1;
let mut write_version = 1;
let mut rand = thread_rng();
let data = (0..args.account_data_size as usize)
.map(|_| rand.gen::<u8>())
.collect_vec();
loop {
std::thread::sleep(Duration::from_secs(1) - Instant::now().duration_since(instant));
instant = Instant::now();
@ -57,9 +60,7 @@ pub fn main() -> anyhow::Result<()> {
pubkey: Pubkey::new_unique(),
account: Account {
lamports: rand.gen(),
data: (0..args.account_data_size as usize)
.map(|_| rand.gen::<u8>())
.collect_vec(),
data: data.clone(),
owner: Pubkey::new_unique(),
executable: false,
rent_epoch: u64::MAX,