Adrian Sutton
8b883a15d3
Make KeyValueStorage extend Closeable ( #207 )
...
Replace explicit usages of RocksDbKeyValueStorage with the more generic but now just as capable KeyValueStorage.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ab77bce927
Add benchmark for BlockHashOperation ( #203 )
...
Includes a reusable OperationBenchmarkHelper to make writing EVM opcode benchmarks easier in future.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jussi Virtanen
cb93cbdfd9
Add --ropsten command line argument ( #197 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jussi Virtanen
ba4b66a055
Create unit tests for EthBlockNumber ( #195 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jussi Virtanen
8f3080267e
Improve variable name in EthGetBlockByHashTest ( #196 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jussi Virtanen
17af66d593
Create unit tests for Web3ClientVersion ( #194 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
0cf8f2e5b8
[NC-1561] Remove RLPUtils from RawBlockIterator ( #179 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
4c57a91801
[NC-1561] Remove RLPUtils from GetBlockHeadersMessage ( #180 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
tmohay
14ead031d5
Add MiningCoordinator interface ( #168 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
699aee4c73
Revert "[NC-1805] net_version should return the network ID not the chain ID ( #162 )" ( #166 )
...
MetaMask depends on net_version returning the chain ID, not the network ID.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
9a3e2dfb30
[NC-1805] net_version should return the network ID not the chain ID ( #162 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
939bcfaba7
Fix JavaDoc errors due to invalid HTML on JDK 11. ( #160 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Roberto Saltini
0c9dee764f
Fixed javadoc warnings ( #159 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Roberto Saltini
0fdd508b29
[NC-1582] Added iBFT 2.0 Hashing functions and header validation rules ( #119 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
2cba87a899
[MINOR] Fix --rpc-api and --ws-api help output ( #147 )
...
* Fix default values for rpc-api and ws-api in --help output. Use ws-api values from the command line instead of always using the rpc apis.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
005bf5037b
[MINOR] delayed submodule check until submodule used
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
924bbefb0d
[NC-1675] Apply more appropriate log levels ( #133 )
...
Reduce log level for a number of common situations to DEBUG and general tidy-up of output.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ebcbf9c04f
[MINOR] Fix bounds check in PacketType. ( #132 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
10b853b136
[NC-1772] Release DisconnectMessage to avoid leaking memory allocation. ( #130 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ce033eee55
[NC-1384] Disable mining while catching up to chain head ( #125 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ebe9f3e36d
[MINOR] Add missing finals. ( #128 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
41fbe72729
[NC-1777] Add milestone configuration to dev.json so that if it happens to be used directly it uses Byzantium instead of defaulting to the MainNet milestone blocks. ( #121 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
35bfbd7563
[NC-1679] Set vertx upload directory to be under the pantheon data dir. ( #115 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
a2e28b1603
[NC-1772] Avoid allocating and returning a ByteBuf from MessageFramer.frame. ( #116 )
...
We can write directly to the target instead and avoid the caller needing to release the buffer.
Fixes memory leak when clients are repeatedly connecting and disconnecting.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
63b2578b2f
Don't clear state modifications on commit ( #112 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
fcd048fc32
NC-1244 Implement JSON-RPC method "eth_getWork" ( #111 )
...
JAX-B is no longer shipped with Java 11. Guava provides similar
hex printing functionality.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
9489899108
NC-1675 Ensure that default logging is appropriate ( #113 )
...
More logging demotions.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ece52dec00
[NC-1748] Treat original storage as empty when a new contract is created ( #95 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
ebd6c0105f
[MINOR] Idiomatic naming ( #100 )
...
* Enable passing tests (#99 )
* claridy docs
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
4954482614
[MINOR] Suicides mixing coinbase ( #110 )
...
* naive solution
* cleaning it up
* restrict to only suicide tests
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
4a9587ac75
Fix EIP150 spec name and enable more reference tests that are now passing ( #109 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
ceec103c29
eliminate createNameRegistratorPerTxsNotEnoughGas from blacklist ( #108 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
dde408c47c
[NC-1711] Ommer blocks should be considered valid even when they are from the future ( #92 )
...
* eliminate black for relevant tests
* partition TimestampValidationRule
* adapt existing tests
* further adaptions of status quo
* create creator
* adding ommer validator
* resolving builder sequence
* remove blank lines, fix comment
* rename classes
* remove unnecessary blank lines
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
0321e517d0
Update general state reference test harness to ensure the coinbase account is deleted if it's empty and the transaction was invalid. ( #106 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Michael Connor
ee78db1a86
NC-1244 Implement JSON-RPC method "eth_getWork" ( #70 )
...
* EthGetWork Added with Unit and acceptance tests
* EthGetWork Added with Unit and acceptance tests
* EthGetWork Added with Unit and acceptance tests
* EthGetWork Added with Unit and acceptance tests
Debugged
* EthGetWork Added with Unit and acceptance tests
Debugged
Change Requests Actioned
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
cb01231ac0
[NC-862] License headers applied to non-java files ( #93 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
8efe6be7c2
Enable passing tests ( #99 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
cd7a4e3730
catch custom exception ( #61 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
02af4517ff
[NC-1748] Clear contract storage on contract creation ( #85 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
6c2fd5d875
[nc-1756] jsonrpc enabling for clique and ibft ( #91 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
bc05f38a03
NC-1675 Ensure that default logging is appropriate ( #88 )
...
* Take peer status messages down from info to debug
* Take P2P messages down from debug to trace
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
89e860f73a
Remove RLPUtils from ProofOfWorkValidationRule ( #83 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
3bd10e8cfd
Enable more Constantinople reference tests that are now passing. ( #82 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
9a464a29b9
[NC-1752] Fix SSTORE original value ( #79 )
...
* [NC-1752] Delegate calls to getOriginalAccount all the way to the actual store. Ensures we get the actual original value even when updaters are nested due to nested calls.
* Upgrade ethereum reference tests to include the new sstore tests.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
310bd4035c
Nc 862 spotless license headers ( #69 )
...
* [NC-862] Added licenseHeader java rule to spotless.
* [NC-862] Spotless java headers applied.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
962ca18056
[MINOR] Remove unused original value lookup. ( #76 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
b4330969c1
NC-1721: Filter timeout if not queried for 10 minutes ( #66 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
3b5fcfb40a
[NC-1747] CREATE2 should use the recipient address when calculating the new contract address ( #72 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
7e30513cce
[NC-1558] Retry tasks a max number of times before failing ( #74 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
ccc932b210
Enable constantinople tests and blacklist the ones that are currently failing ( #65 )
...
* Update to latest ethereum reference tests to pull and enable a bunch of Constantinople tests they fix.
* Blacklist test that consumes a huge amount of memory on Constantinople as well.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago