question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pubsub is broadcasting block to the sender itself

See original GitHub issue

The version is the 0.1.1 from pypi. And this behavior is found in Trinity. Alice broadcasted a block and the block was received from gossip again. Logs here:

alice@16Uiu2HAmR	   DEBUG  2019-10-22 11:16:09,106             Validator  broadcasting block [signing_root]=5d1b..9f74, [hash_tree_root]=12fc..3a6a, slot=4, parent_root=d63a..aa52, state_root=42a9..538c, body=(randao_reveal=8a7f..4878, graffiti=0000..0000, proposer_slashings=(), attester_slashings=(), attestations=(<Attestation: ATTT a4f6..c426>,), deposits=(), voluntary_exits=(), transfers=()), signature=b973..a0eb
alice@16Uiu2HAmR	   DEBUG  2019-10-22 11:16:09,127      BCCReceiveServer  Received block over gossip. slot=4 signing_root=5d1b296de52600b50da40e8958022e4c6dce6b54904966395c593b447f059f74
alice@16Uiu2HAmR	   DEBUG  2019-10-22 11:16:09,128           BeaconChain  attempting import of block with slot 4 and signing_root 5d1b..9f74

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mhchiacommented, Oct 25, 2019

Link to the discussion for future reference. Thank @ChihChengLiang for finding this discussion.

1reaction
ChihChengLiangcommented, Oct 25, 2019

Alright, sorry. Confirmed from @mhchia this is the intended behavior. See #65. Will fix that from Trinity side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Pub/Sub? - Google Cloud
Publishers communicate with subscribers asynchronously by broadcasting events, rather than by synchronous remote procedure calls (RPCs).
Read more >
Chapter 5 - Advanced Pub-Sub Patterns - ZeroMQ Guide
Pub-sub is like a radio broadcast; you miss everything before you join, ... This shows neatly how the publisher socket stops sending data...
Read more >
Going Real-Time with Redis Pub/Sub - Toptal
The publish-subscribe pattern is a way of passing messages to an arbitrary number of senders. The senders of these messages (publishers) do not...
Read more >
How to avoid dropping messages zeromq pub sub
I'd stay away from explicitly blocking anything, it's too brittle. A synchronous sender could hang indefinitely if something goes wrong on the ...
Read more >
GitHub - skyformat99/High-performance-pub-sub
Contribute to skyformat99/High-performance-pub-sub development by creating ... should not receive what they sent themselves, so we add a gap to this sender ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found