Commit graph

1164 commits

Author SHA1 Message Date
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
jj1980a
d72c039a1a
param: txs announced only (#1467) 2025-03-11 05:47:54 -04:00
Mael Regnery
1d87b93aa6
fix: use single source of truth for bootnodes 2025-03-07 11:32:41 +01:00
Manav Darji
646f6358dd
Merge branch 'develop' into manav/upstream_merge_v1.14.11 2025-02-27 11:18:07 +05:30
Lucca Martins
5f6e2d334c
minor nit fixed 2025-02-26 03:06:01 -03:00
Lucca Martins
844603ea4e
resolving comments 2025-02-25 15:13:36 -03:00
Lucca Martins
ca4eb48bd8
Merge remote-tracking branch 'origin/develop' into lmartins/include-heimdal-timeout 2025-02-25 14:54:33 -03:00
Lucca Martins
3154fc4e0e
fixing default flag value 2025-02-20 10:04:51 -03:00
Lucca Martins
e2f114b19b
including heimdall timeout on config 2025-02-19 17:15:43 -03:00
Manav Darji
4a60a3e16d
internal/cli: use correct RPCMarshalBlock function 2025-02-18 19:06:11 +05:30
Manav Darji
866434899d
internal/cli: remove lightchaindata from removedb command 2025-02-18 18:59:51 +05:30
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
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
13d6ac9f58
fix global gas cap 2025-02-04 16:14:31 -03:00
Lucca Martins
5db5e5d817
keep gp to call always max 2025-02-04 15:14:46 -03: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
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
kamuikatsurgi
cb10335739
Merge latest develop branch 2025-01-30 16:23:12 +05:30
kamuikatsurgi
78513d75a3
Merge develop and remove commented code 2025-01-30 16:15:29 +05:30
Simone Bologna
984e074a9b
trim trailing / from ancient path (#1400) 2025-01-30 14:56:22 +05:30
Pratik Patil
348026227f
Merge pull request #1426 from maticnetwork/master
v1.5.4 backport
2025-01-30 14:53:48 +05:30
Jerry
4c6169a604
Use PBSS and pebble by default (#1412)
* Use pebble db and PBSS by default

* Address CR comments

* Fix failed test
2025-01-27 10:45:33 -08:00
kamuikatsurgi
f09f89e1cb
make bor && make all successful 2025-01-22 15:36:07 +05:30
Lucca Martins
b0bba24d7c removed blob tx tests 2025-01-14 04:08:07 -03:00
Lucca Martins
31e7d4a4ed proper error handling for not found scenarios 2025-01-13 07:26:21 -03:00
Lucca Martins
3582958cc0 eth_getTransactionByBlockHashAndIndex tests and fix on parallel tests 2025-01-12 19:03:19 -03:00
Lucca Martins
5646ee6258 getAllBlockTransactionsTest 2025-01-12 18:30:00 -03:00
Lucca Martins
a345d6c95c GetBlockReceipts test 2025-01-12 17:05:00 -03:00
Lucca Martins
828fc00b6f GetTransactionByHash tests and rawdb call replacement 2025-01-12 09:44:47 -03:00
Lucca Martins
41134d0473 state sync tests on rpc methods 2025-01-12 04:07:25 -03:00
Jerry
230be40ae2
Bump default value of txpool global slots
Increase the default value in order to reduce the time spent in txpool reorg.
When txpool is saturated, txpool reorg can take more than a few seconds to run. This impacts block producer because the producer would need to get the pending txns from txpool, which is blocked by reorg.
2025-01-09 23:16:31 -08:00
Angel Valkov
7ed0bae0ec
Additional GRPC API checks 2025-01-08 12:12:52 +02: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
Martin HS
55b18e9bc1 cmd/geth: remove unlock commandline flag (#30737)
This is one further step towards removing account management from
`geth`. This PR deprecates the flag `unlock`, and makes the flag moot:
unlock via geth is no longer possible.
2024-11-19 14:50:11 +01:00
jwasinger
25d0740f18 internal/ethapi: Set basefee for AccessList based on given block, not chain tip (#30538) 2024-11-19 14:50:11 +01:00
Martin HS
21b3400ae5 all: remove personal RPC namespace (#30704)
This PR is a first step towards removing account management from geth,
and contains a lot of the user-facing changes.

With this PR, the `personal` namespace disappears. **Note**: `personal`
namespace has been deprecated for quite some time (since
https://github.com/ethereum/go-ethereum/pull/26390 1 year and 8 months
ago), and users who have wanted to use it has been forced to used the
flag `--rpc.enabledeprecatedpersonal`. So I think it's fairly
non-controversial to drop it at this point.

Specifically, this means: 

- Account/wallet listing
  -`personal.getListAccounts`  
  -`personal.listAccounts`     
  -`personal.getListWallets`   
  -`personal.listWallets`      
- Lock/unlock
  -`personal.lockAccount`      
  -`personal.openWallet`       
  -`personal.unlockAccount`
- Sign ops
  -`personal.sign`             
  -`personal.sendTransaction`  
  -`personal.signTransaction`  
- Imports / inits
  -`personal.deriveAccount`    
  -`personal.importRawKey`     
  -`personal.initializeWallet` 
  -`personal.newAccount`       
  -`personal.unpair` 
- Other: 
  -`personal.ecRecover`        


The underlying keystores and account managent code is still in place,
which means that `geth --dev` still works as expected, so that e.g. the
example below still works:

```
> eth.sendTransaction({data:"0x6060", value: 1, from:eth.accounts[0]})
```	

Also, `ethkey` and `clef` are untouched. 

With the removal of `personal`, as far as I know we have no more API
methods which contain credentials, and if we want to implement
logging-capabilities of RPC ingress payload, it would be possible after
this.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-11-19 14:50:11 +01:00
Péter Szilágyi
750250387e internal/flags: remove low-use type TextMarshalerFlag (#30707)
Currently we have a custom TextMarshalerFlag. It's a nice idea, allowing
anything implementing text marshaller to be used as a flag. That said,
we only ever used it in one place because it's not that obvious how to
use and it needs some boilerplate on the type itself too, apart of the
heavy boilerplate got the custom flag.

All in all there's no *need* to drop this feature just now, but while
porting the cmds over to cli @v3, all other custom flags worker
perfectly, whereas this one started crashing deep inside the cli
package. The flag handling in v3 got rebuild on generics and there are a
number of new methods needed; and my guess is that maybe one of them
doesn't work like this flag currently is designed too.

We could definitely try and redesign this flag for cli v3... but all
that effort and boilerplate just to use it for 1 flag in 1 location,
seems not worth it. So for now I'm suggesting removing it and maybe
reconsider a similar feature in cli v3 with however it will work.
2024-11-19 14:50:11 +01:00
Péter Szilágyi
9f58dc0c32 internal/flags: remove Merge, it's identical to slices.Concat (#30706)
This is a noop change to not have custom code for stdlib functionality.
2024-11-19 14:50:11 +01:00
Péter Szilágyi
8de45c1820 appveyor, build, internal: ci.go cleanups, add package dep checker (#30696) 2024-11-19 14:50:11 +01:00
Martin HS
d7434facba core/state: move state log mechanism to a separate layer (#30569)
This PR moves the logging/tracing-facilities out of `*state.StateDB`,
in to a wrapping struct which implements `vm.StateDB` instead.

In most places, it is a pretty straight-forward change: 
- First, hoisting the invocations from state objects up to the statedb. 
- Then making the mutation-methods simply return the previous value, so
that the external logging layer could log everything.

Some internal code uses the direct object-accessors to mutate the state,
particularly in testing and in setting up state overrides, which means
that these changes are unobservable for the hooked layer. Thus, configuring
the overrides are not necessarily part of the API we want to publish.

The trickiest part about the layering is that when the selfdestructs are
finally deleted during `Finalise`, there's the possibility that someone
sent some ether to it, which is burnt at that point, and thus needs to
be logged. The hooked layer reaches into the inner layer to figure out
these events.

In package `vm`, the conversion from `state.StateDB + hooks` into a
hooked `vm.StateDB` is performed where needed.

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-11-19 14:50:11 +01:00
Péter Szilágyi
e5fb824e67 common: drop BigMin and BigMax, they pollute our dep graph (#30645)
Way back we've added `common.math.BigMin` and `common.math.BigMax`.
These were kind of cute helpers, but unfortunate ones, because package
all over out codebase added dependencies to this package just to avoid
having to write out 3 lines of code.

Because of this, we've also started having package name clashes with the
stdlib `math`, which got solves even more badly by moving some helpers
over ***from*** the stdlib into our custom lib (e.g. MaxUint64). The
latter ones were nuked out in a previous PR and this PR nukes out BigMin
and BigMax, inlining them at all call sites.

As we're transitioning to uint256, if need be, we can add a min and max
to that.
2024-11-19 14:50:11 +01:00
Péter Szilágyi
db03e01577 build, internal, version: break ci.go/version->common dependency (#30638)
This PR tries to break the ci.go to common dependency by moving the
version number out of params.
2024-11-19 14:50:11 +01:00
Péter Szilágyi
1c88e42ea9 build: get rid of ci.go -> common direct dependency (#30637) 2024-11-19 14:50:11 +01:00
Péter Szilágyi
7a79f2f89f all: get rid of custom MaxUint64 and MaxUint64 (#30636) 2024-11-19 14:50:11 +01:00