We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
populate_test_db
1 parent 4d7be12 commit 872d374Copy full SHA for 872d374
src/database/memory.rs
@@ -490,11 +490,10 @@ macro_rules! populate_test_db {
490
let mut db = $db;
491
let tx_meta = $tx_meta;
492
let current_height: Option<u32> = $current_height;
493
- let input = if $is_coinbase {
494
- vec![$crate::bitcoin::TxIn::default()]
495
- } else {
496
- vec![]
497
- };
+ let mut input = vec![$crate::bitcoin::TxIn::default()];
+ if !$is_coinbase {
+ input[0].previous_output.vout = 0;
+ }
498
let tx = $crate::bitcoin::Transaction {
499
version: 1,
500
lock_time: 0,
0 commit comments