Giter Site home page Giter Site logo

Comments (3)

Kefkius avatar Kefkius commented on June 8, 2024

Yeah, setchain only changes the active chain in the user config. The thing about the daemon is that as it currently stands, the daemon can't switch chains like the rest of the wallet. There isn't a mechanism in place to make the daemon switch to the new set of servers.

That's why none of the commands that require a network connection have the --chain optional argument available. The Network class that controls the core behavior of this has no means of switching chains. It's something we're aware of, we just haven't agreed on the best solution.

Our known options are:

  1. Create functionality for the Network class to switch chains like the rest of Encompass.
  2. Use one Network thread per chain.

The first option is the most intuitive, but the second option paves the way for a server managing multiple currencies at once. However, the second option comes with more complications as well. It would mean a lot more threads running concurrently (each server connected to also has its own thread).

Until we figure out the best solution, this issue will exist. At least this creates a place for discussion on the decision-making.

from encompass.

ELM4Ever avatar ELM4Ever commented on June 8, 2024

My interests would lean towards option 2.

A work around would be to run two instances of option 1 in parallel - but it wouldn't be as elegant as option 2.

from encompass.

Kefkius avatar Kefkius commented on June 8, 2024

@ELM4Ever For expediency I already implemented option 1. However, a way to run the daemon that supports having more than one coin network at a time is something I've been thinking about. It will likely be implemented in the future.

Keep this issue open in the meantime.

from encompass.

Related Issues (20)

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.