Go to file
Tomasz Drwięga c8f57315a8 [stable] Missing AuRa backports (#7499)
* Merge pull request #7368 from paritytech/td-future-blocks

Wait for future blocks in AuRa

* Advance AuRa step as far as we can and prevent invalid blocks. (#7451)

* Advance AuRa step as far as we can.

* Wait for future blocks.

* Problem: AuRa's unsafeties around step duration (#7282)

Firstly, `Step.duration_remaining` casts it to u32, unnecesarily
limiting it to 2^32. While theoretically this is "good enough" (at 3
seconds steps it provides room for a little over 400 years), it is
still a lossy way to calculate the remaining time until the next step.

Secondly, step duration might be zero, triggering division by zero
in `Step.calibrate`

Solution: rework the code around the fact that duration is
typically in single digits and never grows, hence, it can be represented
by a much narrower range (u16) and this highlights the fact that
multiplying u64 by u16 will only result in an overflow in even further
future, at which point we should panic informatively (if anybody's
still around)

Similarly, panic when it is detected that incrementing the step
counter wrapped around on the overflow of usize.

As for the division by zero, prevent it by making zero an invalid
value for step duration. This will make AuRa log the constraint
mismatch and panic (after all, what purpose would zero step duration
serve? it makes no sense within the definition of the protocol,
as finality can only be achieved as per the specification
if messages are received within the step duration, which would violate
the speed of light and other physical laws in this case).

* Fix tests.

* detect different node, same-key signing in aura (#7245)

* detect different node, same-key signing in aura

* reduce scope of warning
2018-01-08 23:09:11 +01:00
dapps [stable] Backports + Kovan HF (#7235) 2017-12-08 13:08:01 +01:00
devtools X-Frame-Options removed. 2017-07-10 09:42:35 +02:00
docker fix docker build in beta 2017-07-18 16:13:19 +03:00
ethash Use standard paths for Ethash cache (#5881) 2017-07-10 12:57:40 +02:00
ethcore [stable] Missing AuRa backports (#7499) 2018-01-08 23:09:11 +01:00
ethcrypto constant time HMAC comparison and clarify docs in ethkey 2017-06-29 13:44:24 +02:00
ethkey Merge pull request #5996 from paritytech/serdeup 2017-07-06 18:02:11 +02:00
ethstore Ethstore optimizations (#6827) (#6844) (#7347) 2017-12-27 23:36:01 +01:00
evmbin [beta] Byzantium updates (#6529) 2017-09-16 12:21:35 +02:00
evmjit Update Cid/multihash/ring/tinykeccak (#5785) 2017-06-07 12:31:12 +02:00
hash-fetch updated serde to version 1.0 2017-07-06 11:36:15 +02:00
hw Allow hardware device reads without lock. (#6517) 2017-09-15 14:47:24 +02:00
ipc Fix tests 2017-06-29 13:05:33 +02:00
ipc-common-types use cargo workspace (#5601) 2017-05-23 12:28:22 +02:00
ipfs Upgrade elastic-array to 0.9.0 2017-06-29 13:05:33 +02:00
js Disallow builtin multisig deploy (only watch) 2017-11-10 17:25:57 +01:00
json [stable] Missing AuRa backports (#7499) 2018-01-08 23:09:11 +01:00
local-store updated serde to version 1.0 2017-07-06 11:36:15 +02:00
logger Node Health warnings (#5951) 2017-07-11 12:23:46 +02:00
mac [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
nsis [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
parity [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
rpc [beta] Backporting (#6675) 2017-10-09 13:07:57 +02:00
rpc_cli bigint upgraded to version 3.0 (#5986) 2017-07-06 11:26:14 +02:00
rpc_client updated serde to version 1.0 2017-07-06 11:36:15 +02:00
scripts [stable] Refactor static context check in CREATE (#6889) 2017-10-25 11:52:32 +02:00
secret_store Merge pull request #5996 from paritytech/serdeup 2017-07-06 18:02:11 +02:00
snap fix snap build 2017-07-16 22:50:34 +03:00
stratum Upgrade elastic-array to 0.9.0 2017-06-29 13:05:33 +02:00
sync Tweaked block download timeouts (#6595) 2017-10-03 10:06:42 +02:00
updater updated serde to version 1.0 2017-07-06 11:36:15 +02:00
util [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
windows/ptray Better windows icon (#4804) 2017-03-08 14:42:56 +01:00
.dockerignore improved dockerfile builds (#5659) 2017-05-23 12:25:41 +02:00
.editorconfig Fixing travis.yml 2016-07-11 18:23:24 +02:00
.gitignore npm cleanups (#5512) 2017-04-26 12:38:21 +02:00
.gitlab-ci.yml Update .gitlab-ci.yml 2017-07-19 00:48:46 +03:00
.gitmodules WASM contracts MVP (#5679) 2017-07-10 17:42:10 +02:00
build.rs Detect rust compiler version in Parity build script, closes 4742 (#4907) 2017-03-15 14:03:11 +01:00
Cargo.lock [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
Cargo.toml [stable] backports (#7496) 2018-01-08 16:07:53 +01:00
CHANGELOG.md Update README for [beta] (#6270) 2017-08-10 09:02:11 +02:00
LICENSE Change to library. 2015-11-24 21:05:08 +01:00
license_header Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
README.md Update README for [beta] (#6270) 2017-08-10 09:02:11 +02:00
rustfmt.toml remove the deprecated options in rustfmt.toml (#5616) 2017-05-19 17:12:20 +02:00
SECURITY.md Update README for [beta] (#6270) 2017-08-10 09:02:11 +02:00
test.sh Create an account for chain=dev (#5612) 2017-05-19 17:06:36 +02:00

Parity - fast, light, and robust Ethereum client

build status Snap Status GPLv3

Join the chat!

Get in touch with us on Gitter: Gitter: Parity Gitter: Parity.js Gitter: Parity/Miners Gitter: Parity-PoA

Be sure to check out our wiki and the internal documentation for more information.


About Parity

Parity's goal is to be the fastest, lightest, and most secure Ethereum client. We are developing Parity using the sophisticated and cutting-edge Rust programming language. Parity is licensed under the GPLv3, and can be used for all your Ethereum needs.

Parity comes with a built-in wallet. To access Parity Wallet simply go to http://web3.site/ (if you don't have access to the internet, but still want to use the service, you can also use http://127.0.0.1:8180/). It includes various functionality allowing you to:

  • create and manage your Ethereum accounts;
  • manage your Ether and any Ethereum tokens;
  • create and register your own tokens;
  • and much more.

By default, Parity will also run a JSONRPC server on 127.0.0.1:8545. This is fully configurable and supports a number of RPC APIs.

If you run into an issue while using parity, feel free to file one in this repository or hop on our gitter chat room to ask a question. We are glad to help!

For security-critical issues, please refer to the security policy outlined in SECURITY.MD.

Parity's current beta-release is 1.7. You can download it at https://github.com/paritytech/parity/releases or follow the instructions below to build from source.


Build dependencies

Parity 1.7.x-beta requires Rust version 1.19.0 to build.

We recommend installing Rust through rustup. If you don't already have rustup, you can install it like this:

  • Linux:

    $ curl https://sh.rustup.rs -sSf | sh
    

    Parity also requires gcc, g++, libssl-dev/openssl, libudev-dev and pkg-config packages to be installed.

  • OSX:

    $ curl https://sh.rustup.rs -sSf | sh
    

    clang is required. It comes with Xcode command line tools or can be installed with homebrew.

  • Windows

    Make sure you have Visual Studio 2015 with C++ support installed. Next, download and run the rustup installer from https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe, start "VS2015 x64 Native Tools Command Prompt", and use the following command to install and set up the msvc toolchain:

    $ rustup default stable-x86_64-pc-windows-msvc
    

Once you have rustup, install parity or download and build from source


Install from the snap store

In any of the supported Linux distros:

sudo snap install parity --edge

(Note that this is an experimental and unstable release, at the moment)


Build from source

# download Parity code
$ git clone https://github.com/paritytech/parity
$ cd parity

# build in release mode
$ cargo build --release

This will produce an executable in the ./target/release subdirectory. Note: if cargo fails to parse manifest try:

$ ~/.cargo/bin/cargo build --release

Simple one-line installer for Mac and Ubuntu

bash <(curl https://get.parity.io -Lk)

Start Parity

Manually

To start Parity manually, just run

$ ./target/release/parity

and Parity will begin syncing the Ethereum blockchain.

Using systemd service file

To start Parity as a regular user using systemd init:

  1. Copy parity/scripts/parity.service to your systemd user directory (usually ~/.config/systemd/user).

  2. To pass any argument to Parity, write a ~/.parity/parity.conf file this way: ARGS="ARG1 ARG2 ARG3".

    Example: ARGS="ui --identity MyMachine".