mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Update Pubsub fixture and test
This commit is contained in:
@ -532,7 +532,7 @@ class Pubsub:
|
||||
|
||||
# Check if signing is required and if so signature should be attached.
|
||||
if self.strict_signing:
|
||||
if msg.signature == b'':
|
||||
if msg.signature == b"":
|
||||
logger.debug("Reject because no signature attached for msg: %s", msg)
|
||||
return
|
||||
# Validate the signature of the message
|
||||
|
||||
@ -153,6 +153,7 @@ class PubsubFactory(factory.Factory):
|
||||
router = None
|
||||
my_id = factory.LazyAttribute(lambda obj: obj.host.get_id())
|
||||
cache_size = None
|
||||
strict_signing = False
|
||||
|
||||
|
||||
async def swarm_pair_factory(
|
||||
|
||||
Reference in New Issue
Block a user