@@ -613,68 +613,3 @@ fn create_child_spending_parent(node: &Node, parent_txid: bitcoin::Txid) -> bitc
613613
614614 child_txid
615615}
616-
617- #[ test]
618- fn blockchain__sync_with_validation_interface_queue__modelled ( ) {
619- let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
620- node. fund_wallet ( ) ;
621-
622- // Create activity that causes validation callbacks.
623- let ( _address, _txid) = node. create_mempool_transaction ( ) ;
624-
625- let _: ( ) = node
626- . client
627- . sync_with_validation_interface_queue ( )
628- . expect ( "syncwithvalidationinterfacequeue" ) ;
629- }
630-
631- #[ test]
632- fn blockchain__reconsider_block__modelled ( ) {
633- let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
634- node. fund_wallet ( ) ;
635-
636- node. mine_a_block ( ) ;
637- node. mine_a_block ( ) ;
638-
639- let tip_before = node. client . best_block_hash ( ) . expect ( "bestblockhash" ) ;
640- let height_before = node. client . get_block_count ( ) . expect ( "getblockcount" ) . 0 ;
641-
642- node. client . invalidate_block ( tip_before) . expect ( "invalidateblock" ) ;
643-
644- let tip_after_invalidate =
645- node. client . best_block_hash ( ) . expect ( "bestblockhash after invalidate" ) ;
646- let height_after_invalidate = node. client . get_block_count ( ) . expect ( "getblockcount" ) . 0 ;
647-
648- assert_ne ! (
649- tip_after_invalidate, tip_before,
650- "tip should change after invalidating the tip block"
651- ) ;
652- assert_eq ! (
653- height_after_invalidate,
654- height_before - 1 ,
655- "height should decrease by 1 after invalidating the tip block"
656- ) ;
657-
658- node. client . reconsider_block ( tip_before) . expect ( "reconsiderblock" ) ;
659-
660- let tip_after_reconsider =
661- node. client . best_block_hash ( ) . expect ( "bestblockhash after reconsider" ) ;
662- let height_after_reconsider = node. client . get_block_count ( ) . expect ( "getblockcount" ) . 0 ;
663-
664- assert_eq ! (
665- tip_after_reconsider, tip_before,
666- "tip should return to the previously invalidated block after reconsiderblock"
667- ) ;
668- assert_eq ! (
669- height_after_reconsider, height_before,
670- "height should return to the original height after reconsiderblock"
671- ) ;
672- }
673-
674- #[ test]
675- #[ cfg( not( feature = "v19_and_below" ) ) ]
676- fn blockchain__mock_scheduler__modelled ( ) {
677- let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
678-
679- let _: ( ) = node. client . mock_scheduler ( 1 ) . expect ( "mockscheduler" ) ;
680- }
0 commit comments