Adrian Sutton
338879d9a8
Improve error message when genesis file does not match. ( #225 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
8ca2196930
NC-1815 Rinkeby import can stall with too many fragments ( #224 )
...
Quick fix - up the retry limit to 20, the observed chunking size at the point of failure.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
0f9b44cee6
[MINOR] Shorten reference test filenames ( #221 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
770ce91779
Replace custom Clock with java.time.Clock ( #220 )
...
We create our own instance of Clock. However the java.time.Clock
provides what is needed and already exists on the platform.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
5436710877
Implementing eth_chainId ( fixes #206 ) ( #219 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
782606cab0
Decouple DefaultMutableBlockchain from KeyValueStorage ( #211 )
...
* Introduce createInMemoryBlockchain test utility and use it everywhere appropriate.
* Inject BlockchainStorage into DefaultMutableBlockchain.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
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