Commit graph

3085 commits

Author SHA1 Message Date
Manav Darji
689a048d52
core: add cmath import back 2025-03-25 23:56:52 +05:30
Manav Darji
f090b34cd0
cmd, core, eth: make IsPrague block based instead of block, time both 2025-03-25 23:54:01 +05:30
Manav Darji
8bb1e67330
core: add sidechain event back, update chain2head event 2025-03-25 18:16:38 +05:30
Manav Darji
f9f84acd4b
core/state: fix stateObject function calls 2025-03-25 16:17:36 +05:30
Manav Darji
7f10fc419e
core/vm: remove duplicate function in state interface 2025-03-25 16:16:41 +05:30
Manav Darji
1acf5e6eb0
Merge tag 'v1.14.13' into manav/upstream_merge_v1.14.13 2025-03-24 21:45:55 +05:30
Manav Darji
754cce0629
Merge branch 'develop' into manav/upstream_merge_v1.14.11 2025-03-20 18:31:15 +05:30
linchizhen
a2fe0aaa2e
refactor: use t.TempDir() instead of os.MkdirTemp (#1484)
Signed-off-by: linchizhen <jiayanbing@yeah.net>
2025-03-11 06:41:40 -04:00
Lucca Martins
375260e859
mutex protection on trieReader storages 2025-02-27 07:49:21 -03:00
Manav Darji
646f6358dd
Merge branch 'develop' into manav/upstream_merge_v1.14.11 2025-02-27 11:18:07 +05:30
Lucca Martins
2df763df60
Revert "removing requests from bor"
This reverts commit ccede75223.
2025-02-20 14:04:48 -03:00
Lucca Martins
b29072c21e
including missed change on statedb 2025-02-20 11:36:52 -03:00
Lucca Martins
ccede75223
removing requests from bor 2025-02-20 11:03:17 -03:00
Lucca Martins
f30ef31c25
process parent block hash in state parallel 2025-02-19 11:32:42 -03:00
Manav Darji
427ae01c2d
Merge tag 'v1.14.11' into manav/upstream_merge_v1.14.11 2025-02-18 18:55:48 +05:30
Lucca Martins
f19812f32c
removing tests on eip-6110 because bor has no deposit contracts 2025-02-16 19:25:47 -03:00
Lucca Martins
9b0ca36507
ensure latest HF is always with p256 verify 2025-02-16 19:07:47 -03:00
Lucca Martins
1de5835163
small fix building 2025-02-16 17:01:33 -03:00
Lucca Martins
1193fc40e0
disabling requests 2025-02-16 17:00:40 -03:00
Lucca Martins
9367a9e9f3
remove byzantine routine prefetcher 2025-02-16 16:57:38 -03:00
Lucca Martins
fcdefd9e51
including interrupt context back 2025-02-16 16:49:40 -03:00
Lucca Martins
7cb7653a18
try removing byzantine prefetecher to solve goroutine leak 2025-02-14 15:39:02 -03:00
Lucca Martins
0873515bcf
Merge remote-tracking branch 'origin/upstream_merge_v1.14.8' into lmartins/upstream_merge_v1.14.10 2025-02-11 03:51:43 -03:00
kamuikatsurgi
fc1d1fb01f
Merge develop 2025-02-11 10:22:01 +05:30
marcello33
44b94ca6d3
POS-2821: solve lint issues 2025-02-06 13:05:46 +01:00
Lucca Martins
26ec762a11
Merge remote-tracking branch 'origin/upstream_merge_v1.14.8' into lmartins/upstream_merge_v1.14.10 2025-02-04 10:35:52 -03:00
Lucca Martins
fc2198bedd
Merge tag 'v1.14.10' into lmartins/upstream_merge_v1.14.10 2025-02-04 07:41:07 -03:00
kamuikatsurgi
2d2dbcc398
Merge develop branch 2025-01-31 10:21:37 +05:30
chloefeal
b42c28dd93
fix: some typos (#1396)
* build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.24.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: typo

Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>

* fix: typo

Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>

* fix: typo

Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>

* fix: typo

Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raneet Debnath <35629432+Raneet10@users.noreply.github.com>
2025-01-31 01:02:27 +05:30
Manav Darji
a2f545573c
miner: get rid of test_backend helper functions (#1424)
* initial work for removing tracing from worker

* fix more things

* miner: sync code with worker.go, remove traces

* fix lint

* miner, core: get rid of test_backend helper functions

* miner: handle delay during tests in block building

* fix lint

* miner: reset context to get rid of parent timeout context

* miner: refactor test
2025-01-30 23:07:58 +05:30
Manav Darji
8a1e0ec125
Enforce parallel evm via flag (#1425)
* (feat): implement --parallelevm.enforce to force using block-stm

* core: debug log

* docs: update docs with new flag

* update all config files

* core: modify chain import test to enforce parallel processing
2025-01-30 23:01:27 +05:30
Manav Darji
9da0432ec2
miner, consensus, core: remove tracing in mining workflow (#1422)
This PR removes open telemetry based tracing from the whole mining workflow. The tracing extended into consensus and core blockchain functions from miner is also removed in this PR. We weren't checking the tracing from a long time and the way it was implemented increased the code complexity a lot.
2025-01-30 22:27:03 +05:30
kamuikatsurgi
78513d75a3
Merge develop and remove commented code 2025-01-30 16:15:29 +05:30
Jerry
c038dd26ce
Remove redundant locks from txpool (#1420) 2025-01-28 08:49:30 -08:00
Manav Darji
3a3e619d4c
Merge pull request #1411 from maticnetwork/manav/indexer-graceful-shutdown
core/rawdb: prevent ungraceful shutdown in tx indexing
2025-01-24 16:12:26 +05:30
kamuikatsurgi
f09f89e1cb
make bor && make all successful 2025-01-22 15:36:07 +05:30
Jerry
99be105427
Make block execution timer more accurate
Block execution contains the time it takes to fetch state sync data from heimdall, which sometimes returns data with long latency (> 1s). When the latency is significant, the chain execution time will be affected and become inaccurate. This PR isolate the time of heimdall requests from block execution.
2025-01-15 14:39:44 -08:00
Jerry
47cdc309f5
Fix hasher (#1394)
This will fix a hasher bug that was introduced in a23701f2d4
2024-12-24 09:03:55 -08:00
Jerry
b49047f4ee
core/state: fix SetStorage override behavior (#30185) (#1393)
This pull request fixes the broken feature where the entire storage set is overridden.

Originally, the storage set override was achieved by marking the associated account
as deleted, preventing access to the storage slot on disk. However, since #29520, this
flag is also checked when accessing the account, rendering the account unreachable.

A fix has been applied in this pull request, which re-creates a new state object with all
account metadata inherited.

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2024-12-24 09:03:42 -08:00
Jerry
d68987696a
Fallback to serial execution if parallel execution fails (#1392) 2024-12-24 09:03:30 -08:00
Jerry
67b12b50df
Fix incorrect balance when CreateContract is used in block-stm (#1382)
* Fix incorrect balance when CreateContract is used in block-stm

* address CR comments
2024-12-10 18:56:47 +05:30
jwasinger
71b32b4d73 core/txpool, eth/catalyst: clear transaction pool in Rollback (#30534)
This adds an API method `DropTransactions` to legacy pool, blob pool and
txpool interface. This method removes all txs currently tracked in the
pools.

It modifies the simulated beacon to use the new method in `Rollback`
which removes previous hacky implementation that also erroneously reset
the gas tip to 1 gwei.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-11-19 14:50:11 +01:00
bitcoin-lightning
ed7bac05f1 core: fix typos (#30767) 2024-11-19 14:50:11 +01:00
Martin HS
62cce0ca6a core/state: tests on the binary iterator (#30754)
Fixes an error in the binary iterator, adds additional testcases

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-11-19 14:50:11 +01:00
rjl493456442
ba882b6b4d core/state, triedb/database: refactor state reader (#30712)
Co-authored-by: Martin HS <martin@swende.se>
2024-11-19 14:50:11 +01:00
Karol Chojnowski
d71da302db core/state: invoke OnCodeChange-hook on selfdestruct (#30686)
This change invokes the OnCodeChange hook when selfdestruct operation is performed, and a contract is removed. This is an event which can be consumed by tracers.
2024-11-19 14:50:11 +01:00
Martin HS
b04d6c4f42 core/state: small fix in hooked statedb (#30732)
fixes a very tiny bug
2024-11-19 14:50:11 +01:00
Martin HS
6578b9aac5 all: fix issues with benchmarks (#30667)
This PR fixes some issues with benchmarks

- [x] Removes log output from a log-test
- [x] Avoids a `nil`-defer in `triedb/pathdb`
- [x] Fixes some crashes re tracers
- [x] Refactors a very resource-expensive benchmark for blobpol.
**NOTE**: this rewrite touches live production code (a little bit), as
it makes the validator-function used by the blobpool configurable.
- [x] Switch some benches over to use pebble over leveldb
- [x] reduce mem overhead in the setup-phase of some tests
- [x] Marks some tests with a long setup-phase to be skipped if `-short`
is specified (where long is on the order of tens of seconds). Ideally,
in my opinion, one should be able to run with `-benchtime 10ms -short`
and sanity-check all tests very quickly.
- [x]  Drops some metrics-bechmark which times the speed of `copy`.

---------

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-11-19 14:50:11 +01:00
Guillaume Ballet
ed01e6fb2e core, trie: verkle state processor tests (#30672)
Tests that are crucial to for verifying the verkle testnet functions properly.

---------

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Co-authored-by: Ignacio Hagopian <jsign.uy@gmail.com>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2024-11-19 14:50:11 +01:00
Martin HS
b45ba07040 core/vm/runtime: invoke tx-end hook (#30711)
When using the `core/vm/runtime` helpers to execute code, callbacks for the tx end were not invoked. This change fixes it by invoking them.
2024-11-19 14:50:11 +01:00