This reverts commit 814b36e4
The needed chantes to get rid of Instant.now (which is also needed to get rid
of the wall clock dependency) are too deep and intrusive into IBFT to try and
speed patch them in that some APIs require re-work, so in the interst of test
stability this gets sheleved until it is all ready.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
* PAN-2723: Created Miner API transactions and conditions
* PAN-2723: Added static nodes options to permissioned node builder
* PAN-2723: Implemented permissioned node with static-nodes AT
* PAN-2723: Renaming test
* Refactoring test to use the waitForBlockHeight method
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
-- Verify that while a new node is being added and is out of sync, it doesn't accept connections, it accepts connection once it is synced
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
* Renames various eea methods to priv methods, with associated docs
* Restructures packages
* Adds priv commandline switch
* Refactors eea_getTransactionCount and eea_getPrivateTransaction to priv
* Changes package structure and fixes TODO
* Remove whitespace
* Update docs with new method names
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
To allow us to reset the timestamp in the blockchain for Retesteth support
we need to pass a Clock to affected APIs and use that instead of the static method
System.currentTimeMillis(). The most consistent way to do this that will ensure
that the API does not sneak back in is to ban the method via ErrorProne.
TestClock.fixed() was altered to return the "now" time of the first time the fixed clock was requested, needed for many header validation tasks validating headers are not from the future.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Note that EIP-1706 was already implemented elsewhere and this is
just the gas calculation updates.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Reduce the non-zero byte of intrinsic gas cost from 68 to 16.
Keep all other values the same.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Retesteh has some genesis file that specify a nonce in the relevant accounts.
Add support to the GenesisState class to pre-set nonces.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Added scenarios for nodes whitelisted on local config only, On-Chain only and whitelisted on both
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Retesteth waits a second for a 100 Continue when setting chain params. This
significantly slows down the test run. Vertx can do it for us automatically.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
Added acceptance to cover following scenarios
- Account on OnChain but not on local whitelist should not be able to send transaction
- Account on local but not on OnChain whitelist should not be able to send transaction
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>