Antony Denyer
51287459ab
refactor: EeaSendRawTransaction isolate send raw on/off chain ( #2283 )
...
* refactor: isolate send raw on/off chain
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Move responsibility of checking restriction type into JsonRpcMethod
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
* Refactor: Make use of privacy vs private consistent
Rename s/privacyMarkerTransaction/privateMarkerTransaction/g
Signed-off-by: Antony Denyer <git@antonydenyer.co.uk>
4 years ago
garyschulte
e90cef0f6d
1559 blockchain reftests ( #2374 )
...
* allow transaction pool to accept transactions with maxFeePerGas less than base fee
* make 1559 fields return short hex format instead of 8 bytes zero padded
* update reference tests to latest
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
mark-terry
3e86423457
Tessera Orion-mode privacy ATs ( #2166 )
...
* Refactored privacy ATs to use both Orion and Tessera.
Signed-off-by: Mark Terry <mark.terry@consensys.net>
4 years ago
matkt
3ac621233a
Fix tracing, upfrontgascost and transaction pool issues for london( #2342 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
Ratan (Rai) Sur
68510e500b
Fix consensus vulnerability regarding excessively large 1559 fee fields ( #2338 )
...
based on:
https://github.com/ethereum/pm/issues/321#issuecomment-850230251
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
matkt
43fb413e5f
Bonsai trie : clone updater during persist ( #2261 )
...
* clone updater to avoid issue
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* clean code
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* fix roothash calculation
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* fix invalid slot value verification during rollback
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
4 years ago
garyschulte
922bff4b9a
update referencetests to latest develop branch ( #2335 )
...
* update referencetests to latest develop branch
* update submodule reference
* get 1559 test cases passing
* fix transaction encoding of 2718 typed transactions
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Stefan Pingel
169acc7ed2
add log blooms for quorum private transactions ( #2305 )
...
* add log blooms for quorum private transactions
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
4 years ago
Antoine Toulme
5670264f12
Upgrade OpenTelemetry to 1.2.0 ( #2313 )
...
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
4 years ago
matkt
1cb9d2826c
remove EIP1559 Gas budget calculator implementation ( #2318 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Sally MacFarlane
b361e15e43
GoQuorum: Gas estimate to cover PMT ( #2311 )
...
* add method to GasCalculator to get max gas for a PMT and use that
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
4 years ago
Antoine Toulme
61bf0d9cad
Magneto hard fork ( #2315 )
...
* Magneto hard fork
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
* address code review
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
4 years ago
Danno Ferrin
844ea35670
Fork Block Testing ( #2317 )
...
* Fork Block Testing
Add more testing to ensure new fork blocks are configured properly.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
4 years ago
garyschulte
ebfe8a6d4c
errata discovered in 21.1.6 ( #2302 )
...
21.1.6 release errata, handle null baseFee in PendingTransactions, remove slack coefficient from transaction gas budget calculator
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Sally MacFarlane
cd88151d2c
GoQuorum ATs: run the estimate gas test ( #2294 )
...
* run the estimate gas test
* Revert "Modify Gas estimation logic for GoQuorum mode (#2282 )"
This reverts commit 3627662f82
.
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
4 years ago
matkt
4fce5aea06
EIP-3554: Difficulty Bomb Delay to December 1st 2021 ( #2289 )
...
* implemented EIP-3554: Difficulty Bomb Delay to December 1st 2021
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update CHANGELOG.md
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Sally MacFarlane
3627662f82
Modify Gas estimation logic for GoQuorum mode ( #2282 )
...
* modify tx simulator for possibly private tx
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
4 years ago
matkt
fff119b43b
Remove EIP1559 flag ( #2277 )
...
* remove gasTarget
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* add tests
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update tests
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update implementation and tests
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* fix review
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* spotlessApply
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update code to bump gasLimit on fork block
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update eip1559 implementation
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* clean code
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* remove EIP1559 flag
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* fix pipeline
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
4 years ago
garyschulte
a9dcd5bb5a
update json-rpc responses for 1559 ( #2222 )
...
* address assumption that if 1559 is enabled there is a london fork block config
fixes #2192
Signed-off-by: garyschulte <garyschulte@gmail.com>
* omit null chainId from transaction json serialization, and fix merge regression
Signed-off-by: garyschulte <garyschulte@gmail.com>
* update json-rpc responses for 1559, use current feeCap and gasPremium field names
Signed-off-by: garyschulte <garyschulte@gmail.com>
* add pr number to changelog
Signed-off-by: garyschulte <garyschulte@gmail.com>
* fix transaction decoder
Signed-off-by: Gary Schulte <garyschulte@gmail.com>
* rebase and fix merge conflicts
Signed-off-by: garyschulte <garyschulte@gmail.com>
* remove null chainId from json-rpc test fixtures
Signed-off-by: garyschulte <garyschulte@gmail.com>
* the great 1559 rename
Signed-off-by: garyschulte <garyschulte@gmail.com>
* re-remove gasTarget
Signed-off-by: garyschulte <garyschulte@gmail.com>
* add serialization tests for 1559 transaction fields
Signed-off-by: garyschulte <garyschulte@gmail.com>
* add json property ordering annotations to Transaction*Result and spotless
Signed-off-by: garyschulte <garyschulte@gmail.com>
* rebase on master, update error message feedback from Karim
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
matkt
09a49cfd2d
Use gasLimit for EIP1559 ( #2244 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
72360f4cce
Update reference tests ( #2270 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
3267501c8c
Implement eip 3529 ( #2238 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
8d47d6c404
implement eip ( #2245 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
9b542bc7ec
Add support for baikal testnet and london network upgrade ( #2237 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Co-authored-by: garyschulte <garyschulte@gmail.com>
4 years ago
garyschulte
4a3e2751c3
Make 2930 accesslist transactions use frontier txn price calculator ( #2239 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
matkt
355cc630ef
fix tracing ( #2227 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
1643e0b5d0
Prevents EIP1559 blocks from being mined before fork ( #2226 )
...
* add check
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* update test
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
* clean code
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Stefan Pingel
f6d50dcab2
fix goquorum privacy ( #2224 )
...
* fix goquorum privacy
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
* fix submodule
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
4 years ago
garyschulte
eaafaaaae8
Address 1559 config assumption ( #2193 )
...
* address assumption that if 1559 is enabled there is a london fork block config
fixes #2192
Signed-off-by: garyschulte <garyschulte@gmail.com>
* fix tests
Signed-off-by: garyschulte <garyschulte@gmail.com>
* spotless. bump
Signed-off-by: garyschulte <garyschulte@gmail.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
4 years ago
matkt
425db2a9ee
bonsai trie : reset updater when there is an invalid block ( #2205 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Manoj Mamidyala
d2f8b85763
Change dev network chain ID to 1337 ( #2162 )
...
changed the dev network chain ID to 1337 instead of 2018 so that users can connect to Metamask "localhost 8545" network preset using default chainid settings
Signed-off-by: Manoj Mamidyala <manojmamidyala36@gmail.com>
4 years ago
matkt
6543551778
Fix bonsai trie mining ( #2101 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
46d4952a70
Bonsai trie : fix consensus issue on ropsten ( #2164 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
aa399b3465
fix concurrent modification exception for bonsai trie( #2152 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
garyschulte
089bfabd9c
add support for 1559 in retesteth besu command ( #2181 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
matkt
51283cc7d4
fix layer issue with bonsai trie ( #2137 )
...
Fix the bonsai layers bug that impacted the tracing. This came during a reorg the link between layers was not valid
This resulted in invalid traces based on bad blocks history
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
92048e2113
bonsai trie : fix a synchronization issue ( #2148 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
011eda9ed5
Add a limit of back layers that can be loaded - Bonsai trie ( #2108 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
16c5251b0b
Added parameterized tests to test Bonsai And Forest ( #2131 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
e82fd74e57
Add test for Bonsai trie key value storage ( #2126 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Abdelhamid Bakhta
703ff8dce7
Implement EIP-3198 BASEFEE opcode ( #2123 )
...
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
4 years ago
Ratan (Rai) Sur
ded6faeacd
Tracing Fixes - Mark Transaction Boundaries for Standard Tracing and CallOperation Gas Costs ( #2120 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
Abdelhamid Bakhta
dd0e8b0bcf
Fix transaction encoding/decoding issues. ( #2043 )
...
* Fix transaction encoding/decoding issues.
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
4 years ago
garyschulte
d08083df9a
fix besu retesteth PoW mining ( #2092 )
...
it appears that [#1882 ] inadvertently broke retesteth no-op PoW mining.
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
matkt
c7e72434b9
Enable json rpc tests for bonsai trie ( #2090 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
e13dd77c8d
bonsai trie: fix account has an empty state change ( #2051 )
...
Signed-off-by: Karim TAAM karim.t2am@gmail.com
Co-authored-by: Danno Ferrin danno.ferrin@gmail.com
4 years ago
mark-terry
bf54b6c0b4
GetPrivateWorldState refactor ( #2042 )
...
Signed-off-by: Mark Terry <mark.terry@consensys.net>
4 years ago
Stefan Pingel
6dc740e4ec
fix a problem where the private world state is not found in GoQuorum mode ( #2041 )
...
* fix #2041
Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>
4 years ago
Abdelhamid Bakhta
360c32b98d
[EIP-1559] Fix coinbase fee calculator ( #1966 )
...
* Fix coinbase fee calculator, always use 1559 coinbase calculator even for frontier transactions
Signed-off-by: Abdelhamid Bakhta <abdelhamid.bakhta@consensys.net>
4 years ago
Ratan (Rai) Sur
30ef44330e
Update Ethereum Node Record When We Pass Network Upgrade Blocks ( #1998 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago