Giter VIP home page Giter VIP logo

Comments (12)

imaginaryusername avatar imaginaryusername commented on July 21, 2024

Interestingly I can see myself connected to you as I type from bch.imaginary.cash. Could you possibly catch when this is happening and see what they are duplicates of?

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

I think it eventually "recovers" and the peers come back (which would explain why you two guys are connected now) -- but it does "explode" the log with "dupe peer" messages and leaves you nearly peerless for a little while when it happens

I know because I also got this error too once 2 days ago.

This is definitely some sort of bug. I will investigate it.

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

@theblains -- did this happen frequently to you (I ask because I want to know how to reproduce it reliably).

I am going to make this a high priority today as it's a pretty confidence-reducing bug, even if it recovers (not sure if it does but I think the 1 time it happened to me it came back) ...

from electrumx.

theblains avatar theblains commented on July 21, 2024

@imaginaryusername Ill try keep an eye on it unfortunately its hard to try catch it.

@cculianu It does happen quite frequently more so on the testnet i guess maybe due to less servers? Unfortunately i have looked through the logs but nothing jumps out at what may be causing it. If you have anything you would like me to try let me know.
I found a way to make it recover which is to send an add_peer command in RPC to a known good peer which will then pull all the servers from and re-peer you.

Thinking about the testnet wondering if its more common as once it blows up the peer list there is less servers that may have a peer list intact so it never recovers when on mainnet there is a higher chance of at least 1 server having an intact peer list which will then respread.

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

@theblains ah ok, thanks for the follow-up. Can't think of anything obvious for you to try. I will audit the code -- hopefully the bug will jump out at me with any luck.

Just curious -- is my theory that it auto-recovers true? Did you restart each time or did it sometimes just recover on its own?

The thing is .. it doesn't ban these servers.. so it should auto-recover after a few minutes. I've left my server unattended for weeks without even checking it recently and I would imagine it happened and I never noticed because it recovers.

I want to know so I know how bad to feel about this bug.. :)

from electrumx.

theblains avatar theblains commented on July 21, 2024

@cculianu Hi, I have been keeping a closer eye on whats going on. It does seem it recovers itself after a while on Main Net. The same cannot be said for testnet. I wonder if this is due to the less amount of peers who may have a correct peer list to re-seed everyone.

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

:(

Yeah that's probably what's going on.. you're right.

I will fix this soon - a lot of other stuff is going on but it's on my list of important things to do.

from electrumx.

theblains avatar theblains commented on July 21, 2024

@cculianu Greetings, Any update on this? Mainnet seems to be fine I guess the number of servers means it keeps re-seeding however testnet does not i generally have no peers on testnet.

Thanks

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

Hi— @theblains I haven’t had time to work on this.

I’ll try and set up some time this week. It should hopefully be a quick bug fix.

from electrumx.

jkister avatar jkister commented on July 21, 2024

for now we should whitelist peers in coins.py-- override blacklist.json and peer manager

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

Sorry I haven't had time to give electronX love. It's humming along though.

I've been involved with designing/implementing its replacement... and there's a very smart volunteer programmer working on that now. Something that scales better. We'll see if that ends up being reliable enough to entirely replace ElectronX. It won't be written in python but rather run as native code (currently being written in Rust).

I'll see if I can add a fix for this to whitelist coins.py.. .esp. on testnet. And to turn off the other sybil defenses. Testnet is very unlikely to get abused anyway...

from electrumx.

cculianu avatar cculianu commented on July 21, 2024

This fork has been discontinued. See issue #20. I am recommending users either install Fulcrum or the latest ElectrumX. Closing thread...

from electrumx.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.