Sally MacFarlane
6d90cffccf
refactoring to introduce deleteOnExit() for temp files ( #920 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
b1b72010f8
Reduce "Received transactions message" log from debug to trace since it's completely routine. ( #919 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
cf993ff76a
log a warning if PERM apis enabled without perm CLI enabled ( #915 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Jason Frame
8a39cdeed9
Expose the Ibft MiningCoordinator ( #916 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
07d2be0722
[PAN-2316] check permissions CLI dependencies ( #909 )
...
* check nodes or accounts permissioning is enabled if config file is set
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
2a24b2bae4
Increment completed request count when we complete the request using local data. ( #914 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
05184fe59b
Use an iterator when dequeuing tasks. ( #913 )
...
Gives approximately a 10% perf improvement in isolation and in real-world tests allows the world state requests to actually reach the concurrent limit.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
3f95178e7b
[PAN-2117] Error when removing bootnodes from nodes whitelist ( #912 )
...
* [PAN-2117] Error when removing bootnodes from nodes whitelist
* Fixing AT
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
bf54ead34c
Removed version notes
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
ccb30641fa
Incremental Optimization(s) on BlockBroadcaster ( #911 )
...
--> adapt `BlockBroadcaster` to use `send` method on `EthPeer`
--> adapt `EthProtocolMamnager` to utilize `BlockBroadcaster` to disseminate newly mined block
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
768293385f
Process world state download data on a worker thread ( #898 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
d00ebf4521
Halt the chain download when the future is cancelled (or otherwise completed). ( #901 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
15b99e2752
When picking fast sync pivot block, use the peer with the best total difficulty, not the highest chain. ( #899 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
13c9ae4efc
Added Resources page linking to Pantheon blog posts and webinars ( #897 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
1c634dd885
Add metric to expose number of inflight world state requests. ( #906 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
1e460157e8
Fix task queue so that the updated failure count for requests is actually stored. ( #893 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
5eb2ee01db
Limit the number of times we retry peer discovery interactions. ( #908 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
7bcaff60cc
Unit tests of BlockBroadcaster ( #887 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Guillaume Lethuillier
330e085096
Fix 'the Input Is Too Long' Error on Windows ( #843 )
...
Fix for the _“The input line is too long”_ error on Windows.
This fix makes Gradle generate a shortened but operational command in `pantheon.bat`.
The modified `pantheon.bat`, instead of explicitly referencing each .jar individually when initializing the classpath, uses the wildcard character `*` instead.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Danno Ferrin
b7761de2a3
Use absolute data-path instead of relative. ( #894 )
...
When using the data-path internally use an absolute version instead of the path instead of a relative form.
This fixes a null pointer exception when the data-path is set to an empty string (in a TOML config using `data-path=""` or CLI using `--data-path=`) and interprets that empty string to be the current working directory.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mark-terry
7c97318f28
[PAN-2287] Added rebind mitigation for websockets. ( #905 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
9f597293cf
JSON-RPC Authentication
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
2de26d69c1
[PAN-1930] bootnodes not on whitelist - improve errors ( #904 )
...
* enhanced test
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
527cf58b05
RPC Pub/Sub clarification from feedback ( #889 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
36447ba73e
enforce accounts must start with 0x ( #900 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
b1909f7ab6
[PAN-2309] CLI mixin help ( #895 )
...
* don't create a new CommandLine object in the case of exception - this caused the help to be missing the mixins added
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
4405571733
Added content for password command ( #882 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
96a431a679
Added --permissions-config-file option ( #874 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
613e9bd6b3
[Minor] fix auth file validation errors ( #886 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
ca1c122a2a
gensis typo ( #892 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
012b875f3e
Fixed MetaMask link
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
5ffd3aba9a
[PAN-2313] Fix authentication header ( #891 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
705bebad9b
Reorganize eth tasks ( #890 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Sally MacFarlane
5597214e29
[NC-2046] websocket method permissions ( #870 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
S. Matthew English
f7849ac06e
[NC-2058] Improve block propagation time ( #808 )
...
* o
* add test
* clean up
* scaffolding
* update
* update
* comments
* add test
* update
* update ii
* format
* update ii
* fix
* verifyBroadcastBlockInvocation
* test
* update
* update to difficulty calculation
* remove BlockBroadcasterTest from this pr
* update
* update
* update II
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
bf710da941
Add metrics for EthScheduler executors ( #878 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
708e866c21
Reduce logging noise from invalid peer discovery packets and handshaking ( #876 )
...
* Reduce logging for invalid peer discovery packets. The message is enough to locate the source of the rejection.
* Reduce ECIESHandshaker logging to trace since it documents a normal flow through the handshake process.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
8df9a9622b
Ensure exceptions in suppliers passed to EthScheduler are propagated to the returned CompletableFuture. ( #884 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
1da0008666
[PAN-2305] Detect stalled world state downloads ( #875 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
312f285a15
[MINOR] Fixing file locations under docker ( #885 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
a2e187340d
More bootnodes for goerli ( #880 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
406c7f32f6
[PAN-2239] Disconnect peer removed from node whitelist ( #877 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Lucas Saldanha
732ae450c4
[PAN-2270] Rename password hash command ( #879 )
...
* PAN-2270: Rename password hash command
* Fixing test
* PR review
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
MadelineMurray
1dd61a2a12
Added perm_reloadPermissionsFromFile
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
33e9f0e508
[PAN-2196] Implement world state cancel ( #867 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
bbcfbeac9e
Select new pivot block when world state becomes unavailable ( #869 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Adrian Sutton
463fc3994e
Introduce FutureUtils to reduce duplicated code around CompletableFuture ( #868 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Chris Mckay
48986b70c2
[BUG] admin_addPeer isn't periodically checking maintained connections ( #871 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
Trent Mohay
6af7ab1b93
Break out RoundChangeCertificate validation ( #864 )
...
With upcoming changes to remove the NewRound message, and place
the RoundChangeCertificate in the Proposal, it was decided to break
out the RoundChangeCertiifcate validation into a separate file
to minimise changes during message restructuring.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago
mbaxter
60b0137368
Fix state download race condition by creating a TaskQueue API ( #853 )
...
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
6 years ago