Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Whisper: Posted messages won't filtered on the other nodes #17545
The way I run
I have followed the linked documentations that given on this issue (#17120 (comment)) by @gballet . I have lost on the documentations and could not able to send a single message from one node to another (1-N signalling messages). If there would be an simple example about it would be very helpful.
This is as far as I came, please also see (https://ethereum.stackexchange.com/questions/52218/how-to-send-1-n-signalling-or-broadcast-messages-on-whisper).
On this approach I observe that each node can only sends message to itself and other nodes don't filter/see those messages. For example, when
On node-1's geth-client:
On node-2's geth-client:
Then, node-1 sends message to the network, where only node-1 receives it but node-2 does not.
Following code is run on
[Q] How could I able to make
Also asked at ethereum.stackexchange but I couldn't reach anyone.
changed the title from
Whisper: Posted messages won't show up on other nodes
Whisper: Posted messages won't show up on the other nodes
Aug 29, 2018
Hello @avatar-lavventura, I have followed the instructions that you gave above and I am able to see the messages on both nodes. Could you please check again? Just in case, please check that the nodes are peers using 'net.peerCount' which should give a count of 1 if there are no other nodes in the network.
My geth version is: 1.8.15-stable-89451f7c
Ah, I am not sure the reason. I have a small private network. I have delete the chain-data of both nodes and rsync them from
Sorry for asking already working example.
@danmelton : It worked once 15 days ago but when I tried again it does not work anymore. Honestly I don't now the reason behind it :( Same problem also occurred on another user please see #17043 (comment)
I verify that both nodes are connected to the network.
=> Currently, I am able to send/receive from the same node, but not from two different ones.
On the reciever
For both machines:
referenced this issue
Sep 27, 2018
So moving the discussion back here for future cases, you have three nodes:
The bootnode is started with:
The first node is started with:
And the second node is started with:
And the issue is that, in spite of manually adding peers, you can't get messages from node 1 to node 2.
Do you use web3.js over the RPC api, or the console interface?
Alright, so I tested a similar setup to check if the issue was with the peer management system:
I have 5 machines:
mX$ geth --datadir=/datadrive --bootnodes b_enode --shh console
So messages do get forwarded from one node to the next. I assume the issue is either in your RPC call or in your own setup.
On my case, I have a proof-of-authority private Ethereum Network, which has 3 signer nodes.
I have pretty similar setup. Each machine connects network as follows:
Later, each node adds all three signer nodes's
=> But they cannot send any whisper message to any signer nodes or any other connected machine on the network.
You should start with what I did, then move step by step to your own configuration to find out at which step the problem occurs, then paste the startup command of every machine for the last step it worked and the first step it didn't.
I spend a lot of time - more time than I have to be precise - just trying to guess what it is that you are doing and you have to make a clarity effort if you want this to go anywhere.
I am sorry to take your time and please note that thank you for your help. I really do not know why it was not working before but it works on my end now.
Please see my problem more in detail. I have tried little bit different way than you did.
Case: There is no node in the network started as
There are three main nodes, their
All those three nodes in the network uses following
Please see the image where all nodes are connected to each other.
Later I pick a sender and receiver node, where both
=> Receiver and sender node runs following code on its
I have stored sender and receiver's
=> Than sender node copy paste its
=> Receiver also do the same. Receiver copy paste its
And I can see the sent message on the sender and receiver node's
I observe that:
In order to user Whisper protocol, where are not required to use any