Skip to content

Commit 72d6174

Browse files
authored
Merge pull request #108 from alexanderwiederin/tx_test
Feat(core): Use non-coinbase Transactions in Transaction tests
2 parents d134c5d + 2c3f96a commit 72d6174

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/core/transaction.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,14 @@ mod tests {
822822

823823
fn get_test_transactions() -> (Transaction, Transaction) {
824824
let block_data = read_block_data();
825-
let tx1 = Block::new(&block_data[1])
825+
let tx1 = Block::new(&block_data[204])
826826
.unwrap()
827-
.transaction(0)
827+
.transaction(1)
828828
.unwrap()
829829
.to_owned();
830-
let tx2 = Block::new(&block_data[2])
830+
let tx2 = Block::new(&block_data[205])
831831
.unwrap()
832-
.transaction(0)
832+
.transaction(1)
833833
.unwrap()
834834
.to_owned();
835835
(tx1, tx2)
@@ -1184,7 +1184,7 @@ mod tests {
11841184
let outpoint = txin.outpoint();
11851185

11861186
let index = outpoint.index();
1187-
assert_eq!(index, u32::MAX);
1187+
assert_eq!(index, 0);
11881188
}
11891189

11901190
#[test]
@@ -1366,7 +1366,7 @@ mod tests {
13661366

13671367
assert_eq!(
13681368
display,
1369-
"f3ac0618ad042336fbec1f88a4e965481b46cd3381a807591c78c75fdbae7d67"
1369+
"9beec3326c1efee76b743e667f9043941552c0803d12b94406e0e037c899e294"
13701370
);
13711371
}
13721372

@@ -1379,7 +1379,7 @@ mod tests {
13791379

13801380
assert_eq!(
13811381
display,
1382-
"f3ac0618ad042336fbec1f88a4e965481b46cd3381a807591c78c75fdbae7d67"
1382+
"9beec3326c1efee76b743e667f9043941552c0803d12b94406e0e037c899e294"
13831383
);
13841384
}
13851385
}

0 commit comments

Comments
 (0)