Giter Club home page Giter Club logo

parity-poa-tutorial's Introduction

parity-poa-tutorial

A complete set of files produced in the Parity PoA chain tutorial.

parity-poa-tutorial's People

Contributors

sot528 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

parity-poa-tutorial's Issues

Missing user account password in password file

In the tutorial https://wiki.parity.io/Demo-PoA-tutorial.html#method-1-using-rpc, it shows that we need to create a user account address by running curl --data '{"jsonrpc":"2.0","method":"parity_newAccountFromPhrase","params":["user", "user"],"id":0}' -H "Content-Type: application/json" -X POST localhost:8540 (where user is your password), and that it'll return address 0x004ec07d2329997267ec62b4166639513386f32e.
So when you run your first node0 with ./target/release/parity --config node0.toml, it knows where to find the password in your password file named node.pwds, since you've added that to node0.html

...
[account]
password = ["node.pwds"]
unlock = ["0x004ec07d2329997267ec62b4166639513386f32e"]
[mining]
engine_signer = "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e"
...

Getting an IPC error: Access is denied

Thanks for providing the config files for the PoA tutorial.

However, compared to the tutorial, the following two lines are missing in your node1.toml:
[ipc]
disable = true

So after starting node0, attempting to start node1 fails with the following error:
IPC error: Access is denied. (os error 5)

Adding the above two lines fixes the error. Are these lines missing on purpose, or is it simply by accident?

Thanks!

The PoA tutorial guide

Hi i try to create the POA by follow the tutorial but its not clear for me
can someone just explain for me the steps plz
i'm using Ubuntu server

Can't add node running on separate machine to my private PoA network.

Hello,

I followed this tutorial and set up a private POA network on the remote machine, but I can't add a peer node from my local machine.

What's the problem? Thanks!!!

Node0 and Node1 are on the same machine.
node0

$ curl --data '{"jsonrpc":"2.0","method":"parity_enode","params":[],"id":0}' -H "Content-Type: application/json" -X POST localhost:8540    #enode info

Output:
{"jsonrpc":"2.0","result":"enode://305796984ed85d98a42fb7bdbf2865b374bf8fe99b3f311ab37789885007bb5f48b3eef0b72d631b17eb7e94773d7e8478c21f1c0bdc771ee73cf9afbd7cf7bb@128.230.208.73:30388","id":0}


$ curl --data '{"method":"parity_netPeers","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8540    #peer info

Output:
{"jsonrpc":"2.0","result":{"active":0,"connected":1,"max":25,"peers":[{"caps":["par/1","par/2","pip/1","eth/62","eth/63"],"id":"2fb12ec3cc4df1f031d04f76cee04bb64b06bcfb16305dfa40261778388c41c6a65dba5967e5fb402d268f83125408a6cf14d97991603817e7cefc84040b6e04","name":"Parity/v1.8.9-stable-98cccd5-20180201/x86_64-linux-gnu/rustc1.23.0","network":{"localAddress":"128.230.208.73:50840","remoteAddress":"128.230.208.73:30389"},"protocols":{"eth":{"difficulty":null,"head":"51ee76ecbf71b56a3764fa9c9c1b565bf7dac44c968e5a126424d39f69e57da8","version":2},"pip":{"difficulty":"0x43ffffffffffffffffffffffffede7eb9d","head":"51ee76ecbf71b56a3764fa9c9c1b565bf7dac44c968e5a126424d39f69e57da8","version":1}}}]},"id":1}

node1

$ curl --data '{"jsonrpc":"2.0","method":"parity_enode","params":[],"id":0}' -H "Content-Type: application/json" -X POST localhost:8541   # enode info

Output: 
{"jsonrpc":"2.0","result":"enode://2fb12ec3cc4df1f031d04f76cee04bb64b06bcfb16305dfa40261778388c41c6a65dba5967e5fb402d268f83125408a6cf14d97991603817e7cefc84040b6e04@128.230.208.73:30389","id":0}

$ curl --data '{"method":"parity_netPeers","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8541  #peer info

Output:
{"jsonrpc":"2.0","result":{"active":0,"connected":1,"max":25,"peers":[{"caps":["par/1","par/2","pip/1","eth/62","eth/63"],"id":"305796984ed85d98a42fb7bdbf2865b374bf8fe99b3f311ab37789885007bb5f48b3eef0b72d631b17eb7e94773d7e8478c21f1c0bdc771ee73cf9afbd7cf7bb","name":"Parity/v1.8.9-stable-98cccd5-20180201/x86_64-linux-gnu/rustc1.23.0","network":{"localAddress":"128.230.208.73:30389","remoteAddress":"128.230.208.73:50840"},"protocols":{"eth":{"difficulty":null,"head":"12026b33e567baafd14f6c6c8f779c238e52354fc4f874446eb418502e353889","version":2},"pip":{"difficulty":"0x42ffffffffffffffffffffffffede7eba9","head":"12026b33e567baafd14f6c6c8f779c238e52354fc4f874446eb418502e353889","version":1}}}]},"id":1}

On a separate machine

$ curl --data '{"jsonrpc":"2.0","method":"parity_addReservedPeer","params":["enode://2fb12ec3cc4df1f031d04f76cee04bb64b06bcfb16305dfa40261778388c41c6a65dba5967e5fb402d268f83125408a6cf14d97991603817e7cefc84040b6e04@128.230.208.73:30389"],"id":0}' -H "Content-Type: application/json" -X POST localhost:8545   # add peer

Output:
{"jsonrpc":"2.0","result":true,"id":0}

$ curl --data '{"method":"parity_netPeers","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545  # check peer

Output:
{"jsonrpc":"2.0","result":{"active":0,"connected":0,"max":25,"peers":[{"caps":[],"id":"2fb12ec3cc4df1f031d04f76cee04bb64b06bcfb16305dfa40261778388c41c6a65dba5967e5fb402d268f83125408a6cf14d97991603817e7cefc84040b6e04","name":"","network":{"localAddress":"128.230.153.84:58387","remoteAddress":"Handshake"},"protocols":{"eth":null,"pip":null}}]},"id":1}

Obviously, this is not the result I expect.

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.