Commit Graph

10702 Commits

Author SHA1 Message Date
Yurii Rashkovskii
d5b81ead71 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).
2017-12-21 14:59:09 +01:00
Yurii Rashkovskii
ab2caee0a3 Problem: Cargo.toml file contains [project] key (#7346)
This key is not recognized by some software
(like carnix).

It is also not documented in http://doc.crates.io/manifest.html

Solution: rename this key to [package]
2017-12-20 16:41:52 +01:00
GitLab Build Bot
2f9532fe4b [ci skip] js-precompiled 20171220-114610 2017-12-20 11:47:16 +00:00
Jaco Greeff
2856305977
Fix broken flex modal layouts (#7343) 2017-12-20 12:36:04 +01:00
GitLab Build Bot
25a3c001ad [ci skip] js-precompiled 20171219-170319 2017-12-19 17:04:25 +00:00
Amaury Martiny
3fa7d09b5e Fix dappIcon & Fix Signer Pending (#7338)
* Move signerPending inside this repo

* Use latest version of dappIcon

* Tell babel to ignore node_modules in tests
2017-12-19 17:54:09 +01:00
GitLab Build Bot
6bc88664ce [ci skip] js-precompiled 20171219-140820 2017-12-19 14:09:23 +00:00
Jaco Greeff
bdd4f62023
Fix wallet token/badge icons not showing up (#7333)
* Fix wallet icons not showing up

* Fix tests

* Remove debug log (oops)
2017-12-19 14:58:30 +01:00
Marek Kotewicz
53dce9ff98
Merge pull request #7222 from ellaismer/ellaism
Add Ellaism coin in chain config
2017-12-19 09:34:21 -04:00
Marek Kotewicz
ee030cdcac
Merge pull request #7296 from paritytech/a5-kovan-bootnodes
Update bootnodes
2017-12-19 09:32:36 -04:00
GitLab Build Bot
4b016672f3 [ci skip] js-precompiled 20171219-102906 2017-12-19 10:30:17 +00:00
Dmitry Kashitsyn
5f82f0008f Adds personal_signTransaction RPC method (#6991)
* Adds personal_signTransaction RPC method

* Fixes sign_transaction() to return RichRawTransaction

* Adds test for invalid password

* Fix after rebase
2017-12-19 10:49:49 +01:00
Tomasz Drwięga
5713bb2099 Fix embeded transport. (#7326) 2017-12-19 10:34:34 +01:00
Tomasz Drwięga
9e7f5671a5
Merge branch 'master' into a5-kovan-bootnodes 2017-12-19 10:33:35 +01:00
Tomasz Drwięga
1d9206735b
Transaction Pool re-implementation (#6994)
* Initial design and some tests.

* Insertion & limits.

* Constructing pending block.

* Change to PendingIterator.

* Removing/cancelling transactions.

* Full status.

* Culling transactions.

* Use bigint.

* Add listener tests.

* Clean up listener types.

* Split into multiple files.

* Add copyright notice.

* Documentation.

* Don't require ownership.

* Fix cull to remove from by_hash.

* Make the queue generic over transactions.

* Address code review.

* Update wasm submodules.

* Fix review grumbles.

* Add some docs.
2017-12-19 10:20:49 +01:00
GitLab Build Bot
4971171e8a [ci skip] js-precompiled 20171218-132345 2017-12-18 13:24:58 +00:00
Jaco Greeff
5cb53ddd8d
UI package bump (#7318)
* Bump js-ui

* Fix css for status plugins
2017-12-18 12:53:40 +01:00
Robert Habermeier
f99b977399
Merge pull request #7011 from paritytech/whisper-testing
test framework and basic test for whisper
2017-12-18 11:48:20 +01:00
GitLab Build Bot
0637de7303 [ci skip] js-precompiled 20171218-102310 2017-12-18 10:24:14 +00:00
Jaco Greeff
3fd94dc40d
CI js-precompiled trigger (#7316) 2017-12-18 11:12:36 +01:00
GitLab Build Bot
a638019c17 [ci skip] js-precompiled 20171218-094355 2017-12-18 09:44:58 +00:00
Jaco Greeff
509038c987
Fix inject.js & Signer store duplication (#7299)
* Remove extension mappings

* Remove duplicated pending stores
2017-12-15 17:52:45 +01:00
Robert Habermeier
8f6f6a068e detect different node, same-key signing in aura (#7245)
* detect different node, same-key signing in aura

* reduce scope of warning
2017-12-15 16:29:23 +01:00
5chdn
4a9a0f6f55
Update kovan boot nodes 2017-12-15 15:29:48 +01:00
5chdn
0a808a1ac2
Improve chainspec formatting 2017-12-15 15:29:09 +01:00
Konstantin
bb1e03e9cb new warp enodes (#7287)
* new warp enodes

* added one more warp enode; replaced spaces with tabs
2017-12-15 15:19:06 +01:00
Jaco Greeff
c9865e00a5
CSS fixes for v1 (#7285)
* CSS fixes for v1 (Thanks @ngotchac)

* Remove hack line completely

* Comment around Chrome upgrade
2017-12-15 14:48:10 +01:00
Jaco Greeff
6587dfecc0
Wallet subscriptions & refresh (#7283)
* Update to @parity/api 2.1.7

* Update packages

* Update after signer API alias
2017-12-15 12:48:51 +01:00
GitLab Build Bot
9821fd92e4 [ci skip] js-precompiled 20171214-193220 2017-12-14 19:33:27 +00:00
Jaco Greeff
a4959c8509
Update inject web3 dependencies (#7286)
* Remove wallet web3 dependency

* Update shell web3 dependency
2017-12-14 17:32:59 +01:00
Jaco Greeff
4d28facf5e
Some padding around dapp image (#7276) 2017-12-13 14:49:40 +01:00
Jaco Greeff
053c009cdb
Expand available middleware methods (#7275)
* Expand available methods

* Updated with expanded groupings
2017-12-13 12:02:31 +01:00
Nicolas Gotchac
82d7fc54b3 Inject parity script to all dapps // Expand dapps to any ZIP file (#7260)
* Inject Parity script to all HTML dapps pages

* Small glitch

* Add injection test

* Add Special GHH commit value for serving ZIP files as DAPPS

* Refactor GithubDapp fetcher

* PR Grumbles
2017-12-13 09:56:35 +03:00
GitLab Build Bot
f3297dd44a [ci skip] js-precompiled 20171212-180737 2017-12-12 18:08:59 +00:00
Amaury Martiny
1851453f00 New Homepage (#7266)
* Purify dappCard style

* Add support for pinning apps

* Add a section to show pinned apps

* Cleaner code

* Bump dependency versions

* Small tweaks

* Avoid double scrollbars

* Small style updates

* Bump parity/shared version
2017-12-12 17:35:21 +01:00
Tomasz Drwięga
c731b5ef62 Update kovan HF block number. (#7259) 2017-12-12 16:03:28 +01:00
Afri Schoedon
0a7f27cb11
CHANGELOG for 1.7.10 and 1.8.4 (#7265)
* Add Changelog for 1.7.10

* Add Changelog for 1.8.4

* Add missing links

* Fix broken link
2017-12-12 15:37:10 +01:00
GitLab Build Bot
140a78fe0b [ci skip] js-precompiled 20171212-132048 2017-12-12 13:21:48 +00:00
Jaco Greeff
777bce8a13
Remove extraneous id hashing (#7269)
* Remove extraenous id hashing

* Update with latest js-shared
2017-12-12 12:09:24 +01:00
Jaco Greeff
11b0cb8da8
Simplify status + content display (#7264) 2017-12-12 11:25:57 +01:00
GitLab Build Bot
50ed1f9d1e [ci skip] js-precompiled 20171211-175904 2017-12-11 18:00:10 +00:00
Jaco Greeff
9202ccccf7
UI redirect to 127.0.0.1 when localhost requested (#7236)
* JS redirect from localhost -> 127.0.0.1

* ui-no-validation for 127.0.0.1

* Update with tests
2017-12-11 16:50:20 +01:00
GitLab Build Bot
0fe018ff68 [ci skip] js-precompiled 20171211-130343 2017-12-11 13:04:38 +00:00
Brennan Novak
b25f93dda5 usability improvements to security token Dialog #7112 (#7134) 2017-12-11 12:59:24 +01:00
Jaco Greeff
16d6f98d7c
Don't display unneeded notifications (#7237)
* Cleanup overlay transparency

* Don't display "waiting in signer" messages
2017-12-11 11:05:24 +01:00
André Silva
fcddc7751a Reduce max block timestamp drift to 15 seconds (#7240)
* reduce max block timestamp drift to 15 seconds

* add test for block timestamp validation within allowed drift
2017-12-08 11:43:31 +01:00
Tomasz Drwięga
77ee23bdd0
Increase allowed time drift to 10s. (#7238) 2017-12-08 11:16:20 +01:00
Afri Schoedon
a05c90abb5
Update README.md 2017-12-08 10:32:41 +01:00
Jerome de Tychey
ce390fcd75 improve building from source (#7239)
Lots of people are having trouble building from source and keep up to date. The main reason seems to be that cargo/rustup is hard to work with. The 'abort' panic strategy error is very frustrating and seems to be solved 100% of time with a clean.
 Adding those lines:
 When compiling a crate if you receive this error:
```
error: the crate is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
```
Cleaning the repository will most likely solve the issue, try:
```
cargo clean
```
2017-12-08 10:31:21 +01:00
GitLab Build Bot
92f0db7cd7 [ci skip] js-precompiled 20171207-145246 2017-12-07 14:53:50 +00:00