@@ -471,7 +471,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
471
471
if let Poll :: Ready ( Some ( seen_block) ) = seen_blocks_sub. poll_next_unpin ( cx) {
472
472
match seen_block {
473
473
FollowEvent :: NewBlock ( ev) => {
474
- println ! ( "New block seen: {:?}" , ev. block_hash. hash( ) ) ;
475
474
// Optimization: once we have a `finalized_hash`, we only care about finalized
476
475
// block refs now and can avoid bothering to save new blocks.
477
476
if finalized_hash. is_none ( ) {
@@ -481,7 +480,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
481
480
}
482
481
FollowEvent :: Finalized ( ev) => {
483
482
for block_ref in ev. finalized_block_hashes {
484
- println ! ( "Finalized block seen: {:?}" , block_ref. hash( ) ) ;
485
483
seen_blocks. insert (
486
484
block_ref. hash ( ) ,
487
485
( SeenBlockMarker :: Finalized , block_ref) ,
@@ -496,10 +494,8 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
496
494
// If we have a finalized hash, we are done looking for tx events and we are just waiting
497
495
// for a pinned block with a matching hash (which must appear eventually given it's finalized).
498
496
if let Some ( hash) = & finalized_hash {
499
- println ! ( "Looking for finalized hash {hash:?}" ) ;
500
497
if let Some ( ( SeenBlockMarker :: Finalized , block_ref) ) = seen_blocks. remove ( hash)
501
498
{
502
- println ! ( "Found finalized hash!" ) ;
503
499
// Found it! Hand back the event with a pinned block. We're done.
504
500
done = true ;
505
501
let ev = TransactionStatus :: InFinalizedBlock {
@@ -524,7 +520,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
524
520
Poll :: Ready ( Some ( Err ( e) ) ) => return Poll :: Ready ( Some ( Err ( e) ) ) ,
525
521
Poll :: Ready ( Some ( Ok ( ev) ) ) => ev,
526
522
} ;
527
- println ! ( "TX Event seen: {ev:?}" ) ;
528
523
// When we get one, map it to the correct format (or for finalized ev, wait for the pinned block):
529
524
let ev = match ev {
530
525
rpc_methods:: TransactionStatus :: Finalized { block } => {
0 commit comments