You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use `request.allow_orphan` when passing the rpc tx to the mempool
* minor
* include the original accepted transaction as well
* for now keep the original timestamp deviation tolerance
"the mempool is expected to have unorphaned the remaining child transaction after the matching parent transaction was inserted into the mempool: expected: {}, got: {}",
481
-
unorphaned_txs.len(),SKIPPED_TXS
481
+
SKIPPED_TXS + 1,unorphaned_txs.len()
482
482
);
483
483
assert_eq!(
484
484
SKIPPED_TXS + SKIPPED_TXS,
@@ -632,13 +632,13 @@ mod tests {
632
632
let unorphaned_txs = result.as_ref().unwrap();
633
633
assert_eq!(
634
634
test.should_unorphan,
635
-
!unorphaned_txs.is_empty(),
635
+
unorphaned_txs.len() > 1,
636
636
"{}: child transaction should have been {} the orphan pool",
637
637
test.name,
638
638
test.parent_insert_result()
639
639
);
640
-
if!unorphaned_txs.is_empty(){
641
-
assert_eq!(unorphaned_txs[0].id(), child_txs[i].id(),"the unorphaned transaction should match the inserted parent");
640
+
if unorphaned_txs.len() > 1{
641
+
assert_eq!(unorphaned_txs[1].id(), child_txs[i].id(),"the unorphaned transaction should match the inserted parent");
0 commit comments