we are clear that in geth console we can add another peer with addpeer command such as


so, my question is that how to add another peer in solidity contract?

  • You can't do it, the smart contract has no such ability.
    – Badr Bellaj
    May 8 '17 at 10:30

A peer is a property of an Ethereum node which is local to a computer, whereas a contract code can run on any node. There are no "peers" from the POV of a contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.