mbaxter
127b92a1ad
[PIE-2026] Separate in-sync from sync-status listeners ( #100 )
...
Signed-off-by: Meredith Baxter <meredith.baxter@consensys.net>
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Joshua Fernandes
bac5c673d3
Adding a spdx license check gradle task ( #30 )
...
* adding in spdx-license-identifier & updated check for the same; removing license check from spotless
Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>
* Change CheckSpdxHeader to a task.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Nicolas MASSART
829d865f3d
update Cava library to Tuweni Library ( #18 )
...
Cava and Tuweni are the same thing but renamed when moved to Apache foundation
Signed-off-by: Nicolas <nicolas.massart@consensys.net>
5 years ago
Joshua Fernandes
d6a2394e2d
Migrating Pantheon to Besu ( #1945 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Ratan Rai Sur
58d797bd00
Events API: Transaction dropped, sync status, and renames ( #1919 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
mark-terry
402937a459
[PIE-1859] Extracted Metrics interfaces to plugins-api. ( #1898 )
...
* [PIE-1859] Extracted Metrics interfaces to plugins-api.
* [PIE-1859] Bump.
* [PIE-1859] Renamed PantheonMetricsSystem -> ObservableMetricsSystem.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
mbaxter
63ffdb5f02
[PIE-1809] Clean up genesis parsing ( #1809 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Danno Ferrin
6f52d8bd83
Revert "[PAN-2950] Use java.time.Clock instead of System.currentTimeMillis()" ( #1768 )
...
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>
5 years ago
Danno Ferrin
ec5dc85403
[PAN-2950] Use java.time.Clock instead of System.currentTimeMillis() ( #1747 )
...
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>
5 years ago
Lucas Saldanha
961298fd99
PAN-2868: Onchain permissioning startup check ( #1669 )
...
* PAN-2868: Onchain permissioning startup check
* PAN-2868: Onchain permissioning startup check test
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Usman Saleem
70f561421b
PAN-2860 - Ignore discport during static node permissioning check ( #1631 )
...
- Update SyncStatusNodePermissioningProvider to use URI (without discovery port) instead of EnodeURI to allow optimised permission checking of static nodes
- Add EnodeURL.toURIWithoutDiscoveryPort
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Lucas Saldanha
4528956d07
PIE-1663: Ignore discport during startup whitelist validation ( #1625 )
...
* Ignore discport during startup whitelist validation
* Fixing SyncStatusNodePermissioningProvider
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
5 years ago
Adrian Sutton
f2a2ffc008
Rename MetricCategory to PantheonMetricCategory ( #1574 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
030c518227
PIE-1689: Fix behaviour for absent account permissiong smart contract ( #1569 )
...
* PIE-1689: Fix behaviour for absent account permissiong smart contract
* Update warning
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
5ce6b5e85a
[PAN-2798] Reorganize p2p classes ( #1567 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
037a6e8527
[PAN-2783] Invert dependency between permissioning and p2p ( #1557 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
f5364ebb1b
Fix encoding for account permissioning check call ( #1549 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
e89d2a72af
[PAN-2731] Extract connection management from P2PNetwork ( #1538 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
576c12dd46
PAN-2445: Onchain account permissioning ( #1507 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
9ef6002a4a
Avoid auto-boxing for gauge metrics. ( #1526 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
4bb1ee500a
[PIE-1578] added local transaction permissioning metrics ( #1515 )
...
* added local transaction permissioning metrics
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
2341ba1550
[PIE-1577] added node local metrics ( #1514 )
...
* added node local metrics
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
a21f812cda
PAN-2603: Onchain account permissioning support ( #1475 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
d325989017
[PIE-1580] Metrics for smart contract permissioning actions ( #1492 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
22ec27796d
[PAN-2614] Expand permissioning interface ( #1471 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
a1ce2601eb
[PIE-1593] Fix for permissioned network with single bootnode ( #1479 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
16982ebad2
Equals cleanup ( #1434 )
...
* Don't copy collections if we don't need to. Change types higher up if needed.
* Don't use Guava's Object.equal, use Java's Objects.equals.
** add errorprone test to enforce the banning of Guava's Objects class.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
9bc8d8531b
Update EnodeURL to support enodes with listening disabled ( #1403 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
5dffb2e721
[PAN-2612] Transaction smart contract permissioning controller ( #1433 )
...
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
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
mbaxter
f9641148df
[PAN-2585] Prefer EnodeURL over Endpoint ( #1378 )
...
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
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
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
Lucas Saldanha
7d28dd37fb
PIE-1526: Normalize account permissioning addresses in whitelist ( #1320 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
d2d1d82df7
PIE-1526: Fix account permissioning check case matching ( #1314 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
e187429fed
Better errors for when permissioning contract is set up wrong ( #1296 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
2296f4547e
Update permissioning smart contract interface to match updated EEA proposal ( #1287 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
c7947b8185
Keep enode nodeId stored as a BytesValue ( #1274 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
e870ade816
Normalize EnodeURLs ( #1264 )
...
Only specify discovery port explicitly when the discovery port differs
from the listening port.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
ea65ea04d3
Realligned smart contract interface to EEA client spec 477 ( #1209 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
0af0a4300b
[PAN-2503] permission provider that allows bootnodes if you have no other connections ( #1206 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
88c170d715
[PAN-2356] Acceptance tests base for smart contract node permissioning ( #1186 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
a8bf287735
Self needs to persist to the whitelist ( #1176 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
ebcb011a43
Removed code that prevents self from being added to whitelist ( #1175 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
0fe3d7f7bb
[PAN-2473] bond with bootnodes ( #1160 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago