@@ -443,6 +443,10 @@ class Meta:
443
443
heartbeat_interval = GOSSIPSUB_PARAMS .heartbeat_interval
444
444
direct_connect_initial_delay = GOSSIPSUB_PARAMS .direct_connect_initial_delay
445
445
direct_connect_interval = GOSSIPSUB_PARAMS .direct_connect_interval
446
+ do_px = GOSSIPSUB_PARAMS .do_px
447
+ px_peers_count = GOSSIPSUB_PARAMS .px_peers_count
448
+ prune_back_off = GOSSIPSUB_PARAMS .prune_back_off
449
+ unsubscribe_back_off = GOSSIPSUB_PARAMS .unsubscribe_back_off
446
450
447
451
448
452
class PubsubFactory (factory .Factory ):
@@ -568,6 +572,10 @@ async def create_batch_with_gossipsub(
568
572
heartbeat_initial_delay : float = GOSSIPSUB_PARAMS .heartbeat_initial_delay ,
569
573
direct_connect_initial_delay : float = GOSSIPSUB_PARAMS .direct_connect_initial_delay , # noqa: E501
570
574
direct_connect_interval : int = GOSSIPSUB_PARAMS .direct_connect_interval ,
575
+ do_px : bool = GOSSIPSUB_PARAMS .do_px ,
576
+ px_peers_count : int = GOSSIPSUB_PARAMS .px_peers_count ,
577
+ prune_back_off : int = GOSSIPSUB_PARAMS .prune_back_off ,
578
+ unsubscribe_back_off : int = GOSSIPSUB_PARAMS .unsubscribe_back_off ,
571
579
security_protocol : TProtocol | None = None ,
572
580
muxer_opt : TMuxerOptions | None = None ,
573
581
msg_id_constructor : None
@@ -588,6 +596,10 @@ async def create_batch_with_gossipsub(
588
596
heartbeat_interval = heartbeat_interval ,
589
597
direct_connect_initial_delay = direct_connect_initial_delay ,
590
598
direct_connect_interval = direct_connect_interval ,
599
+ do_px = do_px ,
600
+ px_peers_count = px_peers_count ,
601
+ prune_back_off = prune_back_off ,
602
+ unsubscribe_back_off = unsubscribe_back_off ,
591
603
)
592
604
else :
593
605
gossipsubs = GossipsubFactory .create_batch (
@@ -602,6 +614,10 @@ async def create_batch_with_gossipsub(
602
614
heartbeat_initial_delay = heartbeat_initial_delay ,
603
615
direct_connect_initial_delay = direct_connect_initial_delay ,
604
616
direct_connect_interval = direct_connect_interval ,
617
+ do_px = do_px ,
618
+ px_peers_count = px_peers_count ,
619
+ prune_back_off = prune_back_off ,
620
+ unsubscribe_back_off = unsubscribe_back_off ,
605
621
)
606
622
607
623
async with cls ._create_batch_with_router (
0 commit comments