Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same onion address appearing as multiple peers #1703

Closed
arunasurya opened this issue Sep 20, 2018 · 9 comments
Closed

Same onion address appearing as multiple peers #1703

arunasurya opened this issue Sep 20, 2018 · 9 comments
Assignees

Comments

@arunasurya
Copy link
Contributor

When setting up a trade a few days ago, I got the same .onion address that appeared as multiple peers.

If it is only one peer, it should appear as one item on the list. If there are multiple peers, they should have separate .onion addresses.

bisq_bug_same_onion_peer

@ghost
Copy link

ghost commented Sep 20, 2018

ah ah ... I suspected it. Thanks for the return.
Did you use wifi for your internet at the concerned moments ?
I use wifi, and I have frequently duplicates in my BTC nodes. (Never for the onions peers).

@arunasurya
Copy link
Contributor Author

Yes, I was using wifi.

@ManfredKarrer
Copy link
Member

@arunasurya Oh, there seems to be a rare bug. We got that reported in the past form another user as well. I never could reproduce it and did not found any suspicious in the code, but will put it on my todo list to re-check it.

@ghost
Copy link

ghost commented Sep 20, 2018

It's a rarely reported thing, but I'm not sure this means the thing itself is rare.
How many users have a regular look a the Settings/network Info ? I bet only few.
My Bisq appli has this duplicate BTC nodes most of the time, and it doesn't impeach it to seem to work properly.
Right now my 9 BTC connected nodes are in fact 1+1+2x1+5x1.

@arunasurya
Copy link
Contributor Author

Thank you for your responses. I will close the issue now since it has been noted.

@ManfredKarrer
Copy link
Member

We can leave that open until it is fixed.

@ManfredKarrer ManfredKarrer reopened this Sep 21, 2018
@ManfredKarrer
Copy link
Member

@HarryMacfinned Ah good to know. I will take it with higher prio. Maybe its one reason for failed tx broadcasts. If the app is connected to the same btc node multiple times it has a low redundancy.

@ghost
Copy link

ghost commented Sep 21, 2018

anyway, I have never seen duplicates in the P2P onion list. So I guess the checks are not the same for BTC peers or for P2P peers.
I'll bet there is simply a check if not already connected missing when connecting to BTC nodes.
(I'm also suprised that the BTC nodes agrees for multiples connections ? But it's probably a feature ?)

@ManfredKarrer
Copy link
Member

Found the issue in BitcoinJ and fixed it.

oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Dec 20, 2018
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 2, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 3, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 4, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 4, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 4, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 21, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 21, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Jan 22, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Feb 5, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Feb 12, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to oscarguindzberg/bitcoinj that referenced this issue Feb 12, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@05e675e
oscarguindzberg pushed a commit to bisq-network/bitcoinj that referenced this issue Apr 10, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick 34461fe
oscarguindzberg pushed a commit to bisq-network/bitcoinj that referenced this issue Apr 10, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick 34461fe

PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 3185434

PeerGroup.addInactive(): Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 7dfab73
oscarguindzberg pushed a commit to bisq-network/bitcoinj that referenced this issue Apr 10, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick 34461fe

PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 3185434

PeerGroup.addInactive(): Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 7dfab73

PeerGroup.handlePeerDeath(): check isAlreadyAdded() before calling inactives.offer(address).

Cherry pick de6ca8b

PeerGroup.isAlreadyAdded(): refactor to ignore metadata and inline method because it is only used once.

Cherry pick f790821
bodymindarts pushed a commit to bodymindarts/bitcoinj that referenced this issue Sep 4, 2019
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick bisq-network@34461fe

PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check because it is not necessary.

Cherry pick bisq-network@3185434

PeerGroup.addInactive(): Remove isAlreadyAdded() check because it is not necessary.

Cherry pick bisq-network@7dfab73

PeerGroup.handlePeerDeath(): check isAlreadyAdded() before calling inactives.offer(address).

Cherry pick bisq-network@de6ca8b

PeerGroup.isAlreadyAdded(): refactor to ignore metadata and inline method because it is only used once.

Cherry pick bisq-network@f790821
oscarguindzberg pushed a commit to bisq-network/bitcoinj that referenced this issue May 16, 2020
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick 34461fe

PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 3185434

PeerGroup.addInactive(): Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 7dfab73

PeerGroup.handlePeerDeath(): check isAlreadyAdded() before calling inactives.offer(address).

Cherry pick de6ca8b

PeerGroup.isAlreadyAdded(): refactor to ignore metadata and inline method because it is only used once.

Cherry pick f790821
oscarguindzberg pushed a commit to bisq-network/bitcoinj that referenced this issue May 16, 2020
The inactives collection contained duplicated peerAddresses after
connection loss and reconnect.
We add a check to see if the to-get-added peerAddress is not already
in the collection and only add it if it is absent.
This problem was not discovered when using the public network as the
chance that same peerAddress get reported is pretty low. But with our
provided nodes we got frequently duplicates.

Fixes bisq-network/bisq#1703

Cherry-pick 34461fe

PeerGroup.triggerConnectionsJob: Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 3185434

PeerGroup.addInactive(): Remove isAlreadyAdded() check because it is not necessary.

Cherry pick 7dfab73

PeerGroup.handlePeerDeath(): check isAlreadyAdded() before calling inactives.offer(address).

Cherry pick de6ca8b

PeerGroup.isAlreadyAdded(): refactor to ignore metadata and inline method because it is only used once.

Cherry pick f790821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants