Lucas Saldanha
6f05bdccfc
Added private filter acceptance tests ( #753 )
...
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
5 years ago
Stefan Pingel
04888f38a9
add AT for onchain privacy ( #729 )
...
* add AT for onchain privacy
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Lucas Saldanha
ba6f656e66
Implemented priv_getLogs ( #686 )
...
* Implemented priv_getLogs
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Stefan Pingel
36bdae457b
Fix priv_getPrivateTransaction return ( #703 )
...
* fix return for priv_getPrivateTransaction
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Horacio Mijail Antón Quiles
e917a35e80
Report memory/processes at end of test ( #421 )
...
Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>
Co-authored-by: CJ Hare <CjHare@users.noreply.github.com>
5 years ago
Trent Mohay
665ee1cbac
Update BesuController to work with NodeKey (not KeyPair) ( #680 )
...
Update BesuController to use the NodeKey, rather than working with KeyPair - which in turn allows the crypto operations to be injected.
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
5 years ago
Abdelhamid Bakhta
2148116b32
[EIP-1559] Step 1 - Apply block structure modification ( #619 )
...
* Added changelog entries for PR:
- https://github.com/hyperledger/besu/pull/430
- https://github.com/hyperledger/besu/pull/440
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* ### Description
BlockHeader object needs to be modified in order to add the new field (baseFee) as specified in the EIP.
We should take care about the RLP encoding/decoding of this structure since it has to include or not the new fields depending on whether we are pre fork or post fork.
- Update `core.BlockHeader.java`
- Add `baseFee`
- Update `readFrom` method for RLP decoding
- Update `writeTo` method for RLP encoding
- Update `plugin.data.BlockHeader.java`
- Add `getBaseFee` method
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* TODO Add CLI command line flag `--Xeip1559-enabled`.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* TODO Add CLI command line flag `--Xeip1559-enabled`.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Added unstable annotation for getBaseFee. Moved from long to `Optional<Long>`
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Fixed error
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* fix plugin API hash
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* RLP encoding / decoding operations are guarded with the feature flag.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
5 years ago
Antoine Toulme
b9c6c4b3cc
Add eth65 support ( #608 )
...
* Add eth65 support
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Fix integration tests
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Fix acceptance tests
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* add acceptance test that checks that transactions are gossiped between peers
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/LimitedNewPooledTransactionHashesMessages.java
Co-Authored-By: Danno Ferrin <danno.ferrin@shemnon.com>
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* code review comments
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Code review changes
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* Reviewing diffs
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* smaller synchronized blocks
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
5 years ago
Stefan Pingel
a93d06f182
Refactor EeaSendRawTransaction ( #594 )
...
* refactor EeaSendRawTransaction
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Horacio Mijail Antón Quiles
700c5e146b
Fix: ensure that node is displayed if recorded ( #574 )
...
Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>
Co-authored-by: CJ Hare <CjHare@users.noreply.github.com>
5 years ago
Danno Ferrin
5e368dd7e6
Fix License Check ( #568 )
...
License reporting depends on the deprecated "compile" dependency in the
root project. Restore that so that license checking can work.
Also clean out old unused license types and one unneeded dependency.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
5 years ago
Horacio Mijail Antón Quiles
56c60e03df
Kill correctly Besu node processes ( #420 )
...
Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>
5 years ago
Horacio Mijail Antón Quiles
93f54d0e37
Improving Acceptance Test logging ( #399 )
...
Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>
5 years ago
pinges
da75f9cba4
Now members of on chain privacy groups can be re-added after they hav… ( #471 )
...
* Now members of on chain privacy groups can be re-added after they have been removed
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
pinges
ba2f43cbd0
Add an acceptance test where 2 members are added to two different privacy groups in the same block ( #472 )
...
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Co-authored-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Lucas Saldanha
0254556c6b
Adding onchain privacy groups flag ( #456 )
...
* Creating flag for onchain privacy groups
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Ivaylo Kirilov
52be1faf9c
remove-from-group-AT ( #447 )
...
Signed-off-by: Ivaylo Kirilov <iikirilov@gmail.com>
Co-authored-by: pinges <16143240+pinges@users.noreply.github.com>
5 years ago
Abdelhamid Bakhta
f03061d2b4
Database Migration acceptance testing - using pre-generated database archives ( #430 )
...
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
5 years ago
Lucas Saldanha
19b8f9d6eb
Refactoring some of the onchain privacy group ATs ( #443 )
...
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Ivaylo Kirilov
9701a92dc9
on-chain-privacy-groups ( #423 )
...
Introduce on-chain privacy groups with add and remove functionality.
Signed-off-by: Ivaylo Kirilov <iikirilov@gmail.com>
5 years ago
Lucas Saldanha
84056febd9
Fix priv_getCode on multi-tenancy ( #432 )
...
* Refactoring priv_getCode to use PrivacyController
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Lucas Saldanha
bfc40be32e
Adds priv_getcode ( #428 )
...
* Adds priv_getcode
Signed-off-by: Joshua Richardson <joshua@richardson.tech>
5 years ago
Horacio Mijail Antón Quiles
0a19f4750f
Remove unused ExecutorService init/termination ( #419 )
...
Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>
Co-authored-by: CJ Hare <CjHare@users.noreply.github.com>
5 years ago
Lucas Saldanha
9fa9c858ea
Private state update metadata and migration ( #404 )
...
(backport from release-1.4)
Private state update metadata and migration
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
mark-terry
3773d255c8
[PIE-1798] Fail cases for multitenancy ATs ( #400 )
...
Signed-off-by: Mark Terry <mark.terry@consensys.net>
5 years ago
Danno Ferrin
20664f96da
Rename logs bloom indexer to log bloom cache to match CLI flag. ( #401 )
...
Changes class names, variables, and CLI flags as needed.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
5 years ago
Abdelhamid Bakhta
6677362598
[BESU-169] cache logs bloom filters automatically. ( #367 )
...
* First iteration. Draft PR.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* fix SPDX header
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Use block broadcaster to index log bloom.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Remove useless toString method
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* cacheLogsBloomForBlockHeader
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* ensurePreviousSegmentsArePresent
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Added CLI flag to enable / disable automatic logs bloom indexing.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Create cache directory and cache file if not exist.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Fix acceptance test
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Write cache for block only if block is new canonical head.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Handling of chain reorg.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* fix
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* sportless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Address PR comments.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Remove unused constant.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
5 years ago
mark-terry
d25297443e
[PIE-1798] Priv RPC acceptance tests with stub enclave. ( #330 )
...
* [PIE-1798] Added some Privacy RPC ATs with a stub enclave.
Signed-off-by: Mark Terry <mark.terry@consensys.net>
5 years ago
pinges
a7390e611b
Make priv_call use the PrivacyController ( #325 )
...
* Make priv_call use the PrivacyController
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
* minor changes after review
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Karim T
624c25ec7e
[BOUNTY-2] Explicit Configuration & General internal NAT API #190 ( #298 )
...
* refactor nat manager
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* restart tests
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* restart tests
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Add Tuweni to Plugin-APIs (#295 )
Generally, byte[] -> Bytes of some form. Most of the changes are the
side effect of the type changes or chaning to the names of Tuweni
equivilant calls (getHexString->toHexString, etc).
UnformattedData -> Bytes
Log Topics went from Hash to Bytes32
Difficulty went to UInt256 to match core impl.
Quantity lost BinaryData and is just getValue() and toHexString()
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* DSL precondition to avoid creating orphan processes (#291 )
Signed-off-by: Christopher Hare <chris.hare@consensys.net>
Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Fix AT failure because of additional field sent by Orion (#299 )
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Update NatService.java
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Update NatServiceType.java
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Update NatServiceType.java
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Update NatServiceType.java
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Update NatServiceType.java
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* remove method
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* SPDX-License-Identifier: Apache-2.0
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* SPDX-License-Identifier: Apache-2.0
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* Comment waitForFile: "besu.networks"
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* spotless apply
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* test
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* create file if not exist
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* remove useless code
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
* fix waitForFile method
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
Co-authored-by: CJ Hare <CjHare@users.noreply.github.com>
Co-authored-by: pinges <16143240+pinges@users.noreply.github.com>
Co-authored-by: Abdelhamid Bakhta <45264458+abdelhamidbakhta@users.noreply.github.com>
5 years ago
CJ Hare
5535203893
DSL precondition to avoid creating orphan processes ( #291 )
...
Signed-off-by: Christopher Hare <chris.hare@consensys.net>
Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
5 years ago
Abdelhamid Bakhta
94b26dd393
Implement a dynamic reload mechanism for Besu plugins. ( #261 )
...
* Implement a dynamic reload mechanism for Besu plugins.
- Added `reloadConfiguration` method in `plugin-api`.
- Added `admin_reloadPlugin` RPC endpoint.
- if the first parameter is specified the API will attempt to reload the individual plugin if found in the map.
- if no parameter is specified the API will attempt to reload all plugins.
- Added method in `BesuPluginContextImpl` to retrieve a map of named plugins.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
5 years ago
pinges
6e67988951
Priv call ( #250 )
...
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Danno Ferrin
e493b91742
Restore "FieldCanBeFinal" errorprone check ( #287 )
...
This was turned off a number of months ago because of long build times.
However it appears either because of code structure changes or fixed
errorprone that this finishes in a reasonable time now.
Code that violated this check is also fixed.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
5 years ago
Danno Ferrin
dfad8bff78
Update Dependencies ( #281 )
...
Update dependencies to most current version
- except picocli which is a major version update
Alphabetize dependencies
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
5 years ago
Antoine Toulme
4b35e4f785
Simplify key pair handling and storage ( #277 )
...
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
5 years ago
Antoine Toulme
bf7493de29
Remove QuantityWrapper. Use the Difficulty class extending both UInt256 and Quantity instead. ( #274 )
...
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
5 years ago
Antoine Toulme
ccefada736
Move to Apache Tuweni Bytes library ( #215 )
...
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
5 years ago
Antony Denyer
f2a3c00d1b
Stop processing blocks when enclave is down ( #253 )
...
only when you are trying to process a privacy marker transaction
Wrap errors with Enclave exception
Signed-off-by: Antony Denyer <email@antonydenyer.co.uk>
Co-authored-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
5 years ago
Jason Frame
a0e87148e9
Privacy rpcs to go through privacy controller instead directly through Enclave ( #243 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
5 years ago
Trent Mohay
a2d9d0740b
Upgrade to ethsign 0.4.0 ( #265 )
...
This upgrade removes the intermittent failure in
NewPendingTransactionAcceptanceTest (due to prior Ethsigner
affecting the leniency of the global json parser (making it
more strict than Besu demands)).
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
5 years ago
Trent Mohay
b0d6353aab
Move Enclave from OkHttp to Vertx ( #212 )
...
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
5 years ago
Lucas Saldanha
beb9d0bcf3
BESU-128: Fix WebSocket frames handling ( #210 )
...
* Updated WebSocketService (handle -> textMessageHandle)
* Updated WebSocketRequestHandler to accept String instead of Buffer
Signed-off-by: Lucas Saldanha <lucas.saldanha@consensys.net>
5 years ago
Trent Mohay
f0d1a00f80
Repair intermittent test failure in NewPendingTransactionAcceptanctTest ( #195 )
...
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
5 years ago
Ivaylo Kirilov
d23a69c0c1
Add versioning to privacy storage ( #149 )
...
Signed-off-by: Ivaylo Kirilov <iikirilov@gmail.com>
5 years ago
Josh Richardson
bb0ba9b781
[PAN-2984] Refactors transaction receipt to contain more members ( #85 )
...
Signed-off-by: Joshua Richardson <joshua@richardson.tech>
5 years ago
Jason Frame
8951dd6cdb
Allow use a external JWT public key in authenticated APIs ( #183 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
5 years ago
Trent Mohay
3d867532de
Repaired Metrics name collision between Privacy and RocksDB ( #187 )
...
It was identified that when both KV_ROCKSDB metrics and Privacy were enabled,
that Besu failed to start due to a naming collision in Metrics Collators - this was ultimately due to Besu having 2 keyvalue stores - one for public state, and another for private state - and _both_ using the same metrics.
To overcome this issue, the metrics used in the private kv store are prefixed with the word "private".
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
5 years ago
pinges
3c1768eef7
Multi-Tenancy: Do not specify a public key anymore when requesting a … ( #185 )
...
* Multi-Tenancy: Do not specify a public key anymore when requesting a payload from Orion, so all private keys are tried to decrypt the encrypted payload.
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
5 years ago
Ratan Rai Sur
271d578956
Log Event Streaming for Plugin API ( #186 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
5 years ago