Skip to content

Commit

Permalink
test: update mempool_db_load_store_replace_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai authored and wileyj committed Sep 18, 2024
1 parent 1bcf1d4 commit a180384
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stackslib/src/core/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1408,15 +1408,16 @@ fn mempool_db_load_store_replace_tx(#[case] behavior: MempoolCollectionBehavior)
let mut mempool_tx = mempool.tx_begin().unwrap();

eprintln!("add all txs");
for (i, mut tx) in txs.drain(..).enumerate() {
let txs_len = txs.len();
for (ix, mut tx) in txs.drain(..).enumerate() {
// make sure each address is unique per tx (not the case in codec_all_transactions)
let origin_address = StacksAddress {
version: 22,
bytes: Hash160::from_data(&i.to_be_bytes()),
bytes: Hash160::from_data(&ix.to_be_bytes()),
};
let sponsor_address = StacksAddress {
version: 22,
bytes: Hash160::from_data(&(i + 1).to_be_bytes()),
bytes: Hash160::from_data(&(ix + txs_len).to_be_bytes()),
};

tx.set_tx_fee(123);
Expand Down

0 comments on commit a180384

Please sign in to comment.