mbaxter
ff56a65af2
Fix p2p PeerInfo handling ( #1428 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
5d04b32530
[PAN-2601] Renamed AccountPermissioningProver to TransactionPermissioningProvider to better reflect the interface. ( #1432 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
3cfa6ce40b
[PAN-2601] Refactorings and additions to add Account based Smart Contract permissioning ( #1430 )
...
* [PAN-2601] Renamed SmartContractPermissioningController -> NodeSmartContractPermissioningController incl. relevant fields etc.
* [PAN-2601] Added account smart contract fields to SmartContractPermissioningConfiguration.
* [PAN-2601] Added AccountPermissioningProvider.
* [PAN-2601] Removed superfluous 'node' from some class and field names.
* [PAN-2601] Spotless.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
87da26b08c
renamed AccountWhitelistController ( #1424 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
9bc721ff2a
Unwrap DelegatingBytes32 and prevent Hash from wrapping other Hash instances ( #1423 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Trent Mohay
e2fe99ddf3
BlockCreator does not delete transactions with invalid nonce
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
4a2417a0c1
[PAN-2590] Improved JSON-RPC responses when EnodeURI parameter has invalid EnodeId ( #1417 )
...
* [PAN-2590] Improved error response for invalid EnodeID in Add/Remove JSON-RPC calls.
* [PAN-2590] Tests.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
f54f2e10f4
[PAN-2624] Start listening for p2p connections after start() is invoked ( #1418 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
c028352642
PAN-2592: Rename methods that create and return streams away from getX() ( #1368 )
...
* Change all Stream<?> getX() and Stream<?> x() methods to Stream<?> streanX methods, such as `Stream<Peer> streamIdlePeers()`
* Update coding conventions to reflect this.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
zyfrank
2026ab9d1a
[Ethereal Hackathon] GraphQL EIP-1767 Implementation for Pantheon ( #1311 )
...
Implements a GraphQL interface to expose data that conforms to EIP-1767. As the EIP specifies, the implementation should allow “a complete replacement to the read-only information exposed via the present JSON-RPC interface”.
Supported CLI options:
* `--graphql-http-enabled` to enable GraphQL
* `--graphql-http-host` and `--graphql-http-port` to configure the host and port.
* `--graphql-http-cors-origins` to set the CORS-origin policies
* The `--host-whitelist` option is respected. This option also applies to JSON-RPC and WS-RPC endpoints.
Default port is 8547. The endpoint is `/graphrpc`, so the default URL is typically `http://127.0.0.1:8547/graphql `
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
710db6d1fa
Use port 0 when starting a websocket server in tests ( #1416 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Rob Dawson
7b20ebe895
Support including the transaction details in the pending transactions query. ( #1410 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
8445135929
PAN-2449: Remove NodePermissioningLocalConfig external references ( #1406 )
...
* Removing local config controller reference
* Removing permissioning whitelist references in p2p
* Removing whitelist updated listener from DiscoveryController
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
27a8faf74f
added error message for RPC method disabled ( #1396 )
...
* added error message for RPC method disabled
* added methods to enum
* added clique and ibft methods
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
267424e0ff
Avoid recomputing the logs bloom filter when reading receipts from RLP ( #1407 )
...
Significantly reduces CPU usage during a fast sync.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
135e869c20
Add flat file based task collection ( #1377 )
...
Replaces the RocksDB based queue for pending world state download tasks with one that uses a simple file. Added tasks are appended to the file while the reader starts from the beginning of the file and reads forwards.
Periodically a new file is started to limit the disk space used. The reader deletes files it has completed reading.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
8937754c14
[Minor] Start BlockPropagationManager immediately - don't wait for full sync ( #1398 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
34c31aebb3
[PAN-2586] Reference tests fail on Windows ( #1401 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Abdelhamid Bakhta
3a4014ddf7
Fix non-deterministic test caused by variable size of generated transactions ( #1399 )
...
Fix non-deterministic test caused by variable size of generated transactions.
Validate transactions against a size range rather than a fixed size
* Use assertj instead of own method.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
af002d4847
Wait for next message to be sent in FullSyncChainDownloaderTest. ( #1394 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
b918897eab
Queue pending requests when all peers are busy ( #1331 )
...
Provides better control over the maximum number of concurrent requests to a peer.
Gives a fairer allocation of peers to requests being made.
Avoids a task failing because all peers are busy which then introduces a delay before the request is retried.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
07136bc1b5
Add explanatory comment about default port ( #1392 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
f861d67115
Handle case where peers advertise a listening port of 0 ( #1391 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
37e1fd0e75
Use streams and avoid iterating child nodes multiple times ( #1380 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
4606ba2661
Remove unnecessary field ( #1384 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
525d976a06
Remove EthTaskChainDownloader and supporting code ( #1373 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
9627d84e79
[PAN-2605] Add getPeer method to PeerConnection ( #1383 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
f9641148df
[PAN-2585] Prefer EnodeURL over Endpoint ( #1378 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
38d60ebfc7
Use execute instead of submit so unhandled exceptions get logged ( #1379 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
43e4530752
[PAN-2595] Consolidate local enode representation ( #1376 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
4cc2337958
Enable the pipeline chain downloader by default ( #1344 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
3d455b38a6
[PAN-1062] Specify pending transaction retention period (2 of 2) ( #1333 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
48ff2a2839
Request open ended headers from sync target ( #1355 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Ivaylo Kirilov
82d30ca006
[PRIV-65] eea_getTransactionCount fails if account has not interacted with private state ( #1367 )
...
* Fix eea transaction count if account is null in privacy group state
* Fix failing acceptance test
- expected value was generated with the wrong privacy group
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
d25a6026ec
[PAN-2588] Create P2PNetwork Builder ( #1343 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
8a3862a565
[PAN-2573] include static nodes in permissioning logic ( #1339 )
...
* combine bootnodes and staticNodes and pass the combined collection when building permissioning config; renamed error code that specifically called out bootnodes
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
175a832726
Cache current chain head info ( #1335 )
...
Store the header for the current chain head and total difficulty to avoid RocksDB lookups when requesting those common values.
Also uses that cache to avoid a database lookup when checking if a block has already been imported if the block's parent is the current chain head.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Ivaylo Kirilov
7ddbff9df3
[PRIV-55] Allow private contract invocations in multiple privacy groups ( #1318 )
...
* Allow private contract invocations in multiple privacy groups
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
CJ Hare
a5e4b8e3fd
JsonRpcError decoding to include message ( #1336 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Rob Dawson
4f6a26828d
Ensured that the transaction statistics endpoint is exposed. ( #1330 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
2637e0004e
[PAN-1062] Evict old transactions (1 of 2) ( #1299 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Abdelhamid Bakhta
c8d9a5d54f
[PAN-2574] Fix failed tests on Windows ( #1332 )
...
- remove usage of `Lock.parkNanos`
- replace tests using Mockito
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Abdelhamid Bakhta
48c51ac78d
[PIE-1531] Allow whitespace in file paths loaded from resources directory ( #1329 )
...
* [PIE-1531] Allow whitespace in file paths loaded from resources directory.
* replace Resources.getResource call
* Update LocalPermissioningConfigurationValidatorTest.java
* Update RpcAuthFileValidatorTest.java
* fix paths
* Update SmartContractNodePermissioningAcceptanceTestBase.java
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jason Frame
d931e37903
Allow use of large chain ids ( #1289 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
da8c3255eb
Improve logging of chain download errors in the pipeline chain downloader. ( #1325 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
67290f4ef1
Ensure eth scheduler is stopped in tests ( #1324 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
9c16da6ce8
Require block numbers for debug_traceBlockByNumber to be in hex ( #1326 )
...
DebugTraceBlockByNumber now requires hex numbers as input instead of decimal and supports shortcuts like 'latest' consistent with other methods like EthGetBlockByNumber.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
7d28dd37fb
PIE-1526: Normalize account permissioning addresses in whitelist ( #1320 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
d5da0eb47b
Use header validation mode for ommers ( #1313 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
4b88458e84
[PAN-1339] Send local transactions to new peers ( #1253 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago