Commit graph

496 commits

Author SHA1 Message Date
Dimitris Apostolou
ce68cb17ac
fix typos 2024-01-29 09:21:47 +02:00
Anshal Shukla
e070986483 remove: kgz precompile 2024-01-19 17:35:29 +05:30
Arpit Temani
59fa8cb9ac Merge branch 'v1.2.3-candidate' of github.com:maticnetwork/bor into eip7212 2024-01-19 17:31:39 +05:30
Arpit Temani
5fc30aeaac
Revert "Consistent" 2024-01-19 17:19:12 +05:30
Arpit Temani
603a425fee
Merge pull request #1124 from maticnetwork/consistent
Consistent
2024-01-19 17:07:24 +05:30
Anshal Shukla
f57c637814
EIP7212 / PIP27 (#1069)
add: EIP7217/PIP27 implementation and related test cases

---------

Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
2024-01-12 21:18:50 +05:30
Anshal Shukla
1e5211c1c7 add test cases 2024-01-12 20:45:10 +05:30
Anshal Shukla
a0b925bfe3 merge develop 2023-11-30 13:08:09 +05:30
Anshal Shukla
05a19f2a36 fix test, add napoli block 2023-11-30 12:56:21 +05:30
Pratik Patil
e3192cae8b
hot fix: block stm ParallelSpeculativeProcesses flag 2023-11-24 12:50:04 +05:30
Arpit Temani
bee537ab98 fix lint 2023-11-09 21:19:27 +05:30
Arpit Temani
cee2c221b2 disbale 4844 2023-11-09 20:43:18 +05:30
Arpit Temani
3106cb143b Revert "change withdrawals hash"
This reverts commit cd5a7d3391.
2023-11-09 18:09:39 +05:30
Arpit Temani
cd5a7d3391 change withdrawals hash 2023-11-09 16:36:21 +05:30
Arpit Temani
1483c960ed merge develop 2023-11-03 10:10:02 +05:30
Ulaş Erdoğan
2bbf30ff90 core/vm: force the input length of p256verify
(cherry picked from commit 21f4932c9b)
2023-11-03 09:33:22 +05:30
Ulaş Erdoğan
0d115db168 core, crypto/secp256r1: fix error reverts tx error
(cherry picked from commit 2820903f59)
2023-11-03 09:32:56 +05:30
Ulaş Erdoğan
b5559e3018 core/vm: update the eip number
(cherry picked from commit f5b6d7e995)
2023-11-03 09:32:40 +05:30
Ulaş Erdoğan
40e6de0bf2 core/vm: fix testdata non-malleable for p256Verify
(cherry picked from commit ec17e788ad)
2023-11-03 09:31:20 +05:30
Ulaş Erdoğan
83a20d36ec core/vm: simplify the return values format
(cherry picked from commit d245194e77)
2023-11-03 09:30:56 +05:30
Ulaş Erdoğan
ae2d3da5c1 core/vm, params: rename precompiled to p256verify
(cherry picked from commit 6c7028a904)
2023-11-03 09:30:42 +05:30
Ulaş Erdoğan
cdb96096d8 core/vm: implement secp256r1 verifier precompiled
(cherry picked from commit a8c0a2e05c)
2023-11-03 09:30:21 +05:30
Shivam Sharma
953039d1c0 rm : prevrandao 2023-11-01 00:44:16 +05:30
Arpit Temani
48f6200449 merge shanghai tests 2023-10-16 23:23:13 +05:30
Shivam Sharma
1fc6354ab1 clean : shanghai changes 2023-10-06 12:06:46 +05:30
Arpit Temani
cc2c27dbd3 fix linters 2023-09-21 10:50:01 +05:30
Arpit Temani
b343cffdb4 merge geth v1.12.2 into develop 2023-08-18 14:05:34 +05:30
Martin Holst Swende
e13fa32cea
core/vm: update 4844 - point evaluation precompile address (#27874) 2023-08-08 15:54:19 +03:00
Darioush Jalali
57cdbaef30
all: remove trailing whitespace (#27741) 2023-08-05 00:24:32 +02:00
Péter Szilágyi
57268f7e6c
all: rename dataGas to blobGas (#27789) 2023-07-27 16:53:28 +03:00
jwasinger
988d84aa7c
core/state, core/vm: implement EIP 6780 (#27189)
EIP-6780: SELFDESTRUCT only in same transaction

>     SELFDESTRUCT will recover all funds to the caller but not delete the account, except when called in the same transaction as creation

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-07-17 13:02:18 -04:00
Martin Holst Swende
b058cf454b
core, tests: EIP-4844 transaction processing logic (#27721)
This updates the reference tests to the latest version and also adds logic
to process EIP-4844 blob transactions into the state transition. We are now
passing most Cancun fork tests.

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-07-15 23:27:36 +02:00
ucwong
99e000cb13
core/vm: use types.EmptyCodeHash (#27729) 2023-07-15 17:45:57 +02:00
jwasinger
d233b6b23a
core: replace instances of 'suicide' with 'selfdestruct' to improve code consistency. (#27716)
---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2023-07-15 10:35:30 -04:00
Charles Cooper
5c9cbc218a
core/vm: implement EIP-5656, mcopy instruction (#26181)
Implements [EIP 5656](https://eips.ethereum.org/EIPS/eip-5656), MCOPY instruction, and enables it for Cancun. 

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-07-11 03:55:34 -04:00
Martin Holst Swende
af8b138c1a
core/vm: define cancun + enable 1153 (tstore/tload) in cancun (#27663) 2023-07-10 14:40:31 -04:00
Guillaume Ballet
85b8d1c06c
params, trie: add verkle fork management + upgrade go-verkle (#27464)
* params, trie: add verkle fork management + upgrade go-verkle

* remove the two verkle files

* core, eth, params: add missing function

* Gary's feedback

* remove trie/utils/verkle.go

* add verkle block override

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2023-06-28 12:08:48 +03:00
Marius van der Wijden
d7ea278fe3
core/vm: move TSTORE,TLOAD to correct opcode nums (#27613)
* core/vm: move TSTORE,TLOAD to correct opcode nums

* core/vm: cleanup
2023-06-27 03:25:08 -04:00
Marius van der Wijden
091c25d983
go.mod: update kzg libraries to use big-endian (#27510)
* go.mod: update kzg libraries to use big-endian

* go.sum: ran go mod tidy

* core/testdata/precompiles: fix blob verification test

* core/testdata/precompiles: fix blob verification test
2023-06-19 15:08:13 +03:00
marcello33
f3ffacf2d7 dev: fix: most of wsl lint issues 2023-06-15 15:48:26 +02:00
marcello33
82f33b22f5 dev: fix: more errcheck lint issues 2023-06-15 15:31:07 +02:00
marcello33
6223765aab dev: fix: more wsl lint issues 2023-06-15 15:10:57 +02:00
marcello33
131d7b221f dev: fix: solve more lint issues 2023-06-15 14:54:08 +02:00
marcello33
3af5e435c7 dev: fix: some wsl lint issues 2023-06-15 12:27:20 +02:00
marcello33
631efbe675 dev: fix: thelper and tparallel lint 2023-06-14 16:29:26 +02:00
marcello33
df106e64df dev: fix: CreateConsensusEngine for new ethereum objects 2023-06-13 15:11:08 +02:00
marcello33
dda0d1163f dev: chg: solve some TODOs 2023-06-13 13:11:25 +02:00
marcello33
1c106dc251 dev: add: merge develop in upstream-merge 2023-06-13 12:37:20 +02:00
marcello33
d3f6da90e1 dev: chg: more regression changes for bor after merge 2023-06-12 19:35:40 +02:00
marcello33
a043ec6d62 dev: add: merge upstream 2023-06-09 14:34:30 +02:00