6014 Commits

Author SHA1 Message Date
Danno Ferrin
02eb60fa47 NC-1645 JMH benchmarks broken (#13)
Remove the errorprone configuration.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 22:16:18 -06:00
tmohay
4934bd512d Clique Miner Executor added (#15)
This commit adds the clique specific implementation of the Miner
executor.

It is responsible for starting a clique mining operation when
requested. It also supplies the functionality to blend vanity data
with validator data etc. in the extra data field.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 14:54:18 +11:00
tmohay
969e84ea39 Extract common functionality from EthHashMinerExecutor (#12)
The EthHashMinerExecutor is comprised of both EthHash specific
functions as well as common functions which will be useful to other
consensus mechanisms.

As such the common functionality has been extracted to a parent class,
leaving ethhash specific functionality in the child.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 14:40:45 +11:00
Chris Mckay
75ce3a4f02 [MINOR] removing executable from files (#14)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 14:22:54 +11:00
tmohay
a754f57c01 Clique Block Miner added (#11)
Responsible for mining a block if the local  node address
is a validator, and has not recently mined a block.

This has necessitated a slight rework of helper functions,
and shuffling of tests.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 13:14:31 +11:00
Adrian Sutton
217750b5f0 [NC-1579] EIP-1283: Net gas metering for SSTORE (#10)
As per EIP-1283:  https://eips.ethereum.org/EIPS/eip-1283
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 11:30:33 +10:00
tmohay
0cd445f736 Extract common functions from EthHasBlockMiner (#8)
The EthHashBlockMiner contains both the generic mining capabilities
and the EthHash JSON specific API.

The generic capabilities have been extracted into a base class which
can be reused for Clique (or other) consensus mechanisms.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 11:36:21 +11:00
tmohay
a35613f6ae Rework Clique Block Scheduler (#6)
Clique Block Scheduler has been reworked to prevent high rate blocks
being created when the parent block's timestamp is behind the system
clock.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 11:13:09 +11:00
Adrian Sutton
0d6abaf3c2 Verify that the recovered signature isn't infinity which actually indicates that the signature was not valid. (#9)
Incorrect behaviour led to a receipts root mismatch on Ropsten in trasaction https://ropsten.etherscan.io/tx/0x04b8a54c30c2c8f64db0a77be9feed6311a63cbb4d9e39575224ed144664b09f
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 09:33:08 +10:00
Lucas Saldanha
b6d150e60e Changing WebSocketService test to use random port (#5)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 11:39:20 +13:00
mbaxter
1e7345ef56 Remove old circle CI badge (#4)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 18:16:49 -04:00
mbaxter
ab1de21bcd Update readme link (#2)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 17:56:23 -04:00
mbaxter
26b5a1d466 Add reference test submodule (#1)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 16:48:15 -04:00
PegaSys Admin
7dfc2e4085 Initial commit
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 15:17:20 +00:00