Danno Ferrin
9ae84cb143
Gradle 7.2 upgrade / Java 17 Build Support ( #2761 )
...
* Gradle 7.2 upgrade / Java 17 Build Support
* Upgrade to Gradle 7.2, which supports Java 17
* Regenerate gradlew script and wrapper (as recommended)
* Suppress the removal warning for `AccessController` for now
* Update the JMH version to get rid of Gradle deprecation warning
* Add spotless `targetExcludes` so it won't re-format submodules
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
3 years ago
Diego López León
007beac23b
Set TransactionGasCalculator in ETC specs ( #2746 )
...
Signed-off-by: Diego López León <dieguitoll@gmail.com>
3 years ago
Jason Frame
a2fd2147cd
Allow QBFT to switch from the existing block header validator selection mechanism to using a smart contract ( #2655 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
3 years ago
taccatisid
62c4115591
allow unlocking onchain privacy groups ( #2717 )
...
* allow onchain privacy group proxy calls under group lock
Prior to this commit, the only allowed transactions in locked onchain
privacy groups were those making the addParticipants call to *any*
contract--not just the proxy. This commit ensures that:
- while locked, only the group management proxy can be called
- while locked, all functions of the management proxy can be called
Corollary, this commit allows unlocking a group using unlock instead
of implicitely unlocking it via addParticipants. This fixes #2693 .
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
* add acceptance test asserting that privacy groups can be unlocked
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
Giuseppe Bertone
ce1c8ef22c
Metrics idle timeout is now configurable ( #2752 )
...
Signed-off-by: Giuseppe Bertone <bertone.giuseppe@gmail.com>
3 years ago
Paul Harris
75324f3817
Cleanup metrics connections after idle timeout ( #2748 )
...
When the prometheus service restarts, connections can be left open and never closed. These connections should close after an idle timeout to avoid causing issues with running out of ports.
Signed-off-by: Paul Harris <paul.harris@consensys.net>
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
3 years ago
matkt
61ae7b0384
Update memory to use MutableBytes ( #2673 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
3 years ago
Sally MacFarlane
e409e2cafb
[MINOR] Typos ( #2721 )
...
* typo
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
* synchronisation
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
* typo
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
3 years ago
Jason Frame
19a54778d4
Move QBFT CMS creation to block creator ( #2720 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
3 years ago
Lucas Saldanha
021544403b
QBFT PKI-backed Block Creation ( #2677 )
...
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
Co-authored-by: Jason Frame <jasonwframe@gmail.com>
3 years ago
Justin Florentine
ed59386241
Prepare for version 21.7.4-SNAPSHOT ( #2713 )
...
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
3 years ago
Justin Florentine
ffe1b6edf8
21.7.3 release ( #2712 )
...
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
3 years ago
garyschulte
3a260b9009
Bugfix/revert nonce distance ( #2708 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
3 years ago
Jason Frame
f92cbdc389
Fix instanbul99 protocol messages being decoded as eth66 messages ( #2697 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
3 years ago
Antony Denyer
625737a17e
Plugins may register the payload provider in start or register. ( #2675 )
...
You may need to wait until `register` is called so that the cli arguments become available.
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
3 years ago
Sally MacFarlane
ab512b65ed
[MINOR] Fixed typos ( #2698 )
...
* typos
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
matkt
3c979973d2
add logs for block propagation manager ( #2694 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
Sally MacFarlane
98410082e4
ignore all unknown fields for eth_call and eth_estimateGas ( #2690 )
...
* ignoreUnknown=true
* changelog
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
taccatisid
031c443fc3
DRY onchain management proxies ( #2674 )
...
* move onchain privacy group contract read access to OnchainPrivacyGroupContract
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
* fix crash when onchain group managment contract returns invalid member list
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
* simplify PrivacyPrecompiledContract.isMining
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
* Declare some variables final.
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
mark-terry
21ac9fe310
Updated permissioning controller to handle both DNS and IP rules. ( #2667 )
...
* Updated permissioning controller to handle both DNS and IP rules.
Signed-off-by: Mark Terry <mark.terry@consensys.net>
3 years ago
garyschulte
6aef70b275
address clique london HeaderValidator config ( #2684 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
3 years ago
Jason Frame
fbb2944de4
Eth66 protocol request id should only apply to the Eth protocol ( #2685 )
...
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
3 years ago
Antoine Toulme
a9212d352d
typos ( #2686 )
...
* typos
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* spotless
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
3 years ago
Danno Ferrin
cbcf5258dc
Use native SECP256K1 and SECP256R1 for signature normalization ( #2683 )
...
Use native SECP256K1 and SEPC256R1 for signature normalization
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
3 years ago
garyschulte
b5113e715f
implement EIP-3607 ( #2676 )
...
* implement EIP-3607
Signed-off-by: Gary Schulte <gary.schulte@consensys.net>
3 years ago
matkt
9b3c734c6a
update RPC methods : fill gasPrice for post london 1559 transaction ( #2535 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
3 years ago
matkt
82aabdef81
Update pending transaction manager ( #2656 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
3 years ago
Ratan (Rai) Sur
f888983a2d
eth66 ( #2365 )
...
https://eips.ethereum.org/EIPS/eip-2481
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
3 years ago
Lucas Saldanha
68f222be5c
Updated ATs DSL to create PKI QBFT node configuration ( #2670 )
...
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Lucas Saldanha
9d91136ffd
Updated besu-native to 0.4.2 for ec libraries ( #2669 )
...
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Antoine Toulme
cda70d3051
Upgrade to OpenTelemetry 1.5 ( #2666 )
...
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
3 years ago
Matt Kula
b2da957687
Remove duplicate AddOperation to registry ( #2664 )
...
Signed-off-by: Matt Kula <matt@theathletic.com>
3 years ago
garyschulte
cc335eab63
Encapsulate London Block transaction gas price validation ( #2660 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
3 years ago
Paul Harris
92955d2894
Add a labelled gauge to metrics ( #2646 )
...
The labelled gauge functionality will allow monitoring of gauge type data without creating many gauges, which can be particularly handy in tracking related data.
Signed-off-by: Paul Harris <paul.harris@consensys.net>
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
3 years ago
Usman Saleem
4a22b41c2f
QBFT - Create extradata with round information only ( #2625 )
...
* Create extradata with round information only when using contract to obtain validators and vote
* Qbft header validation rule for extradata when validators are obtained from contract
Signed-off-by: Usman Saleem <usman@usmans.info>
3 years ago
Daniel Lehrner
0b2b2bacd2
Add native secp256r1 lib ( #2630 )
...
* add native secp256r1 lib
Signed-off-by: Daniel Lehrner <daniel@io.builders>
3 years ago
Danno Ferrin
f9b17cf92b
Split Transaction Gas Calculation from EVM Calculation ( #2659 )
...
In preparation for the EVM library pull out the transaction related gas
calculations and move them into their own `TransactionGasCalculator.`
This has 4 calls right now, none of which occur inside the EVM:
* Intrinsic gas cost
* Code Deposit gas cost
* Max refund quotient
* Max Privacy Marker Transaction intrinsic gas cost.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
3 years ago
garyschulte
650b5a01b1
Feature/1559 cleanup remove 1559 object ( #2658 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
3 years ago
Danno Ferrin
367b6a74f1
Remove EIP-1702 account versioning ( #2657 )
...
EIP-1702 account versioning was a candidate for the Istanbul hard fork
but was removed prior to the first testnet. Other versioning techniques
have greater core dev mind share and one preparatory step landed in
London, EIP-3541, making EIP-1702 very unlikely to make it to Mainnet.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
3 years ago
garyschulte
632312bd3a
refactor of GasLimitCalculator into protocolSchedule ( #2632 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
3 years ago
Lucas Saldanha
a23d80bf36
Refactor PKI ATs to only run subset of tests ( #2654 )
...
* Creating PKI specific ATs parameterization
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Lucas Saldanha
60397308a1
Refactor QbftExtraDataCodec from new instance to injection ( #2645 )
...
* Removed static codec on RoundChange
* Removed static codec on ProposalPayload
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Vijay Michalik
c65109257c
Add Antony Denyer as a maintainer ( #2622 )
...
Signed-off-by: Vijay Michalik <vijay.michalik@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
3 years ago
taccatisid
8236764bbf
refactor GoQuorum private transaction detection ( #2644 )
...
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>
Co-authored-by: Taccat Isid <taccatisid@protonmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
Rob Dawson
dc8127f398
Fixed nonce bug in EthGetTransactionCount ( #2633 )
...
* Fixed bug where the EthGetTransactionCount would return a lower value for pending than latest when there are old transactions in the transaction pool.
Wrote a failing test to show the expected behaviour and ensured that the max of latest and pending is used.
Signed-off-by: Rob Dawson <rob.dawson@consensys.net>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago
Antony Denyer
508dff46ac
AcceptanceTests: Confirm transaction has been mined before checking against privCall ( #2641 )
...
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
3 years ago
Lucas Saldanha
eff15cc768
Injecting BftExtraDataCodec into SubsequentMessageValidator ( #2640 )
...
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Lucas Saldanha
d844a37f96
Refactoring CmsValidator (internal CRL resolution) ( #2635 )
...
* Refactoring CmsValidator (internal CRL resolution)
Signed-off-by: Lucas Saldanha <lucascrsaldanha@gmail.com>
3 years ago
Justin Florentine
1f4f131469
Prioritize with nonce distance ( #2505 )
...
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Co-authored-by: matkt <karim.t2am@gmail.com>
3 years ago
Antony Denyer
b0e57a450d
Update web3j in acceptance tests to ~4.8.6 ( #2616 )
...
* Update web3j in acceptance tests to ~4.8.6
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Acceptance tests updated as behaviour in web3j has changed
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Increase timeout for transaction receipt polling
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* web3j can't seem to encode empty lists
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Increase timeout again! to 60s
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Make retries consistent.
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Fix merge from main
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
3 years ago