Ratan (Rai) Sur
1ad3f9d5f6
don't retreive full blocks just to get gasUsed ( #2480 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
3 years ago
Ratan (Rai) Sur
375d9b6202
Fix NoSuchElementException in Transaction Receipt Logic ( #2477 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
3 years ago
matkt
9470ae069d
ignore invalid timestamp field on eth_call ( #2464 )
...
Signed-off-by: makt <zem39111@gmail.com>
3 years ago
Stefan Pingel
fd18b0a6fa
add eth_getQuorumPayload ( #2470 )
...
* add eth_getQuorumPayload
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
3 years ago
Ratan (Rai) Sur
b55b076a91
eth_feeHistory ( #2466 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
garyschulte
2d0732a768
Transaction.gasPrice Optional ( #2396 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
garyschulte
d345e70245
fix baseFee config in genesis config file ( #2457 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
Co-authored-by: matkt <karim.t2am@gmail.com>
4 years ago
Justin Florentine
b6626910c8
dialing down logging of invalid HELO to debug ( #2448 ) ( #2463 )
...
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
4 years ago
matkt
012eff06c7
Fix fastsync with bonsai ( #2372 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
matkt
87e8770c50
Update eth call post 1559 ( #2445 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
Daniel Lehrner
ec4db5b7a7
Fix: Native libraries of secp256k1 and alt bn 128 can be disabled ( #2163 )
...
fix disabling of native libraries
Signed-off-by: Daniel Lehrner <daniel@io.builders>
4 years ago
matkt
c23542a830
Fix nullpointer error with trace_block ( #2386 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
garyschulte
d40230afaa
ensure test_importRawBlock appends to chain head ( #2434 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Justin Florentine
e94c526692
2004 reduce logging bigints ( #2406 )
...
* seems like a reasonable use for TRACE level instead of DEBUG
* hint to user they should adjust logging if they really want to see the body of the corrupt HELLO
* include actual nodeId length in error message
Signed-off-by: Justin Florentine <jflorentine@gmail.com>
Co-authored-by: Justin Florentine <jflorentine@gmail.com>
Co-authored-by: matkt <karim.t2am@gmail.com>
Co-authored-by: garyschulte <garyschulte@gmail.com>
4 years ago
garyschulte
fd74cbfb74
handle both baseFee and baseFeePerGas in test_setChainParams ( #2427 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
garyschulte
7c68d05615
add effectiveGasPrice to TransasctionReceipt ( #2368 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Justin Florentine
f2c869c6c5
added London blocknumbers for testnets ( #2426 )
...
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
4 years ago
matkt
7120606683
updated eth_sendRawTransaction for EIP1559 transactions ( #2424 )
...
Updated eth_sendRawTransaction to return an error when maxPriorityFeePerGas exceeds maxFeePerGas
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
4 years ago
garyschulte
1772f8b1f8
update to latest reference tests develop branch ( #2399 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
mark-terry
974f58848d
Added validation for GoQuorum transactions with value. ( #2400 )
...
* Added validation for GoQuorum transactions with value.
Signed-off-by: Mark Terry <mark.terry@consensys.net>
4 years ago
Ratan (Rai) Sur
7a125b3db9
Better Error Messages and Default ChainId For More Tx Types ( #2401 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
garyschulte
285d9cd947
change BlockResult to use baseFeePerGas per eth1 json-rpc spec ( #2392 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Stefan Pingel
b769995fe8
add more tests for the GQ private transaction bloom filters ( #2394 )
...
* add tests for the GQ private transaction bloom filters
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
4 years ago
Ratan (Rai) Sur
de6c10d17f
[Cleanup] Remove Gas Budget Calculator ( #2363 )
...
Since there are no separate gas budgets for eip-1559 and non-eip-1559 txs,
we can return to the simpler method of just comparing against the gas limit.
This is a non-functional change.
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
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
Saravana Perumal Shanmugam
b81a481a42
Add ValidateFirstOutboundMessage just before DeFramer ( #2391 )
...
This takes care of the current requirements as well as provide the possibility of adding other channel handlers before that like for example a TLS handler
Signed-off-by: Saravana Perumal Shanmugam <perusworld@linux.com>
4 years ago
Sally MacFarlane
33a9541eef
eth_getCode: add support for GoQuorum private tx ( #2380 )
...
* eth_getCode try to get from private state first
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
* add container test for eth_getCode
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
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
garyschulte
75c7e204d0
remove aleut and calaveras from test_setChainParams ( #2366 )
...
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
Ratan (Rai) Sur
d028c337fc
Remove Separation of EIP-1559 and pre-EIP-1559 Gas Tracking ( #2359 )
...
The segregated tracking was used in an older version of the spec but not anymore.
Signed-off-by: Ratan Rai Sur <ratan.r.sur@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
Ratan (Rai) Sur
82dcdf219c
pending tx logging ( #2360 )
...
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
4 years ago
matkt
9a43227587
Add calaveras testnet and remove baikal ( #2343 )
...
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
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
garyschulte
2cc6778417
use baseFee instead of baseFeePerGas for retesteth genesis config ( #2339 )
...
* use baseFee instead of baseFeePerGas for retesteth genesis config
* update unit test resource
Signed-off-by: garyschulte <garyschulte@gmail.com>
4 years ago
matkt
30c9aaa9b6
Fix invalid trace for CALL operation - ( #2319 )
...
Signed-off-by: Karim TAAM <karim.t2am@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
Ratan (Rai) Sur
4bb65ed87f
EIP-1559 Transaction Pool Sorting ( #2292 )
...
Add transaction sorting as described in
https://hackmd.io/@adietrichs/1559-transaction-sorting
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
Co-authored-by: Karim TAAM <karim.t2am@gmail.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