Skip to content

Commit

Permalink
Testdata length changed from 16M to 700k
Browse files Browse the repository at this point in the history
  • Loading branch information
joii2020 committed Mar 5, 2024
1 parent 75eab54 commit 072b858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/omni_lock_rust/tests/test_omni_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ fn test_big_output_data() {
.set_chain_config(Box::new(BitcoinConfig { sign_vtype: BITCOIN_V_TYPE_P2PKHUNCOMPRESSED, pubkey_err: false }));

let tx = gen_tx(&mut data_loader, &mut config);
let tx = tx.as_advanced_builder().set_outputs_data(vec![[0u8; 1024 * 1024 * 16].pack()]).build();
let tx = tx.as_advanced_builder().set_outputs_data(vec![[0u8; 1024 * 700].pack()]).build();

let tx = sign_tx(&mut data_loader, tx, &mut config);
let resolved_tx: ResolvedTransaction = build_resolved_tx(&data_loader, &tx);
Expand All @@ -1255,7 +1255,7 @@ fn test_big_witness() {
.set_chain_config(Box::new(BitcoinConfig { sign_vtype: BITCOIN_V_TYPE_P2PKHUNCOMPRESSED, pubkey_err: false }));

let tx = gen_tx(&mut data_loader, &mut config);
let tx = tx.as_advanced_builder().witness([0u8; 1024 * 1024 * 16].pack()).build();
let tx = tx.as_advanced_builder().witness([0u8; 1024 * 700].pack()).build();

let tx = sign_tx(&mut data_loader, tx, &mut config);
let resolved_tx: ResolvedTransaction = build_resolved_tx(&data_loader, &tx);
Expand All @@ -1276,7 +1276,7 @@ fn test_big_script() {

let lock_args = config.gen_args();

let lock_args = Bytes::from(vec![lock_args.to_vec(), vec![0u8; 1024 * 1024 * 16]].concat());
let lock_args = Bytes::from(vec![lock_args.to_vec(), vec![0u8; 1024 * 700]].concat());

let tx = gen_tx_with_grouped_args(&mut data_loader, vec![(lock_args, 1)], &mut config);
let tx = sign_tx(&mut data_loader, tx, &mut config);
Expand Down

0 comments on commit 072b858

Please sign in to comment.