GithubHelp home page GithubHelp logo

Comments (9)

dhyansraj avatar dhyansraj commented on August 11, 2024

Right now this is not implemented in Quorum Maker. But you can do this manually by two steps. run raft.removePeer(peerid) from each of the geth consoles (you need to geth attach to each peer). Also you need to remove the peer from NetworkManagerContract.sol so that /getNodeList wont return this node. But currently there are no functions in the contract to do that. You can add a deleteNode function in the contract and build the a new docker image, and then execute the function on the contract address. Happy to accept your pull request if you can volunteer. Else we will add this feature in a future release.

from quorum-maker.

Eithcowich avatar Eithcowich commented on August 11, 2024

How do I geth attach? Where is geth in your directory structure?

from quorum-maker.

dhyansraj avatar dhyansraj commented on August 11, 2024

you will have to run 'docker exec -it bash' to get into the respective node. From there you can run 'geth attach <path to .ipc file>'

from quorum-maker.

Eithcowich avatar Eithcowich commented on August 11, 2024

docker exec -it back is a usage error. I get docker requires at least two arguments. What's the exact command, assuming I'm on the node's ssh shell?

from quorum-maker.

dhyansraj avatar dhyansraj commented on August 11, 2024

its bash, not back.

from quorum-maker.

Eithcowich avatar Eithcowich commented on August 11, 2024

Yeah, it was a typo in my comment. I run sudo docker exec -it bash which results in

"docker exec" requires at least 2 arguments. 
See 'docker exec --help'.
Usage:  docker exec [OPTIONS] CONTAINER COMMAND [ARG...] [flags]
Run a command in a running container

from quorum-maker.

dhyansraj avatar dhyansraj commented on August 11, 2024

docker exec -it bash

from quorum-maker.

Eithcowich avatar Eithcowich commented on August 11, 2024

The actual command is sudo docker exec -it <container name> bash. In my case the container name was simply the node name.

How do I now call raft.removePeer()? Which is the node id? Is it listed in /getNodeList?

For example where is it here:

[{"nodeName":"node6","role":"Unassigned","publicKey":"o84AQZmRX3ezMBN3RFkFpxNJyh3Q5gMxXsrHL8KTShk=","enode":"b20cd16833396c7767dd4ac7c3510185218f57026f485fbb6c316efc834d0bffb6825e0325124274356a50a0af144adfc1b614a65cd9bddfddb8dfb0c4d39ba2","ip":"23.101.115.159","id":"6","self":"false","active":"false"}]

Is it the enode? Or the id?

Again, a full command would be appreciated.

from quorum-maker.

Eithcowich avatar Eithcowich commented on August 11, 2024

To finish this issue, it works with the node id. Like this

> raft.removePeer(6)
> null
>

To my understanding once it's done on one node, raft syncs it with all the others.

@dhyansraj thank you very much for you help. I looked at the NetworkManagerContract and it looks like removing a peer is one simple method. Not sure if the company I'm doing this for would authorize adding it but if it works out I'll gladly do it.

from quorum-maker.

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.