Commit Graph

18307 Commits

Author SHA1 Message Date
3commascapital
5a02748bb0
Fixup tx parse context tests 2023-11-06 13:00:13 -06:00
Shane Bammel
c4ecf30606 Prepare stable release 2023-06-30 17:46:45 -05:00
Shane Bammel
59c5d79e6e Update mainnet config 2023-06-27 19:11:27 -05:00
Shane Bammel
cf87762c25 Switch sacrifice credits based on chainID 2023-06-27 19:11:26 -05:00
Shane Bammel
f4215353af Allow for increased Shanghai time with PulseChain 2023-06-27 19:11:26 -05:00
Shane Bammel
3951368f53 Add Shanghai time to Testnet-V4 2023-06-27 19:11:26 -05:00
bretep
3639d6b429 Add 20% pad to estimated gas to eth_call 2023-06-27 19:11:26 -05:00
Shane Bammel
e1a28e26c4 Add network config for Testnet-V4 2023-06-27 19:11:26 -05:00
Shane Bammel
6c54e8f59e Add padding to gas estimations
Adds a 20% buffer to gas estimations to reduce out-of-gas errors.
2023-06-27 19:11:26 -05:00
Shane Bammel
cab77c932e Add v3 suffix to pulsechain-testnet 2023-06-27 19:11:26 -05:00
bretep
c8c9b1f523 Switch testnet snapshots to PulseChain from Mainnet 2023-06-27 19:11:26 -05:00
Shane Bammel
d523c5de7f Add bootnodes and dns config for testnet-v3 2023-06-27 19:11:26 -05:00
bretep
f491e3b7e1 Update v.2.40.0 2023-06-27 19:11:26 -05:00
Shane Bammel
4a6cc65462 Update credits file
Includes updated sacrifice data & eth2 deposit refunds
2023-06-27 19:11:26 -05:00
Shane Bammel
82e52430da Update treasury address & testnet fork block 2023-06-27 19:11:26 -05:00
Shane Bammel
f9bc79b516 Add pulsechain-devnet poc config 2023-06-27 19:11:26 -05:00
Shane Bammel
03b97a592f Fix deposit contract initialization
Erigon requires setting the contract incarnation
2023-06-27 19:11:26 -05:00
Shane Bammel
cf67d947dd Refactor and simplify PulseChain integration 2023-06-27 19:11:02 -05:00
bretep
b79df0254f Initial PulseChain integration
Sign block using correct chainId

Add IsPulseChain to config

Add support for pulsechain blocks and snapshots

Add support for chain config now located in erigon-lib

Fix decoding hex to int

Ensure pulsechain config

Add support for PulseChain snapshots
2023-06-27 17:50:22 -05:00
Alex Sharp
5536d64594 Stable modifications 2023-06-22 12:10:17 +01:00
ledgerwatch
f8a5c8c6ce
Fix DumpTxs (#7782) 2023-06-22 12:08:16 +01:00
ledgerwatch
141c4aeb4c
More Bor mainnet snapshot files (#7783) 2023-06-22 09:22:01 +01:00
Manav Darji
951ebd2d32
Revert "Remove excessive logging in bor (#7690)" (#7777)
This reverts commit 7671f419f8.
2023-06-21 14:16:21 +01:00
Alex Sharov
7bad6d3fd9
erigon_info metric (#7769) 2023-06-21 11:13:50 +07:00
ledgerwatch
3542298664
[bor] Code simplifications (#7772) 2023-06-20 15:14:26 +01:00
Mark Holt
051cad0fdd
Devnet diagnostics (#7762)
Added support tunnel to the devnet cmd. In order to get this to run I
made the following changes:

* Create a public function 
* Added non root logging

I have also added commentary to the readme to explain the additional
command line arguments needed to integrate with diagnostics. In summary,
if you set the --diagnostics.url the devenet will wait for diagnostic
requests rather than exiting

---------

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2023-06-20 10:11:55 +01:00
Alex Sharov
880c939df8
e3: idx range method (#7767) 2023-06-20 10:58:37 +07:00
ledgerwatch
6815323f33
Update to latest erigon-lib (#7764)
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2023-06-20 10:57:19 +07:00
awskii
932c2ac69d
fix for test (#7765)
Fixes test `TestExec22/UnwindExecutionStagePlainStatic`.
2023-06-20 02:04:42 +01:00
Somnath Banerjee
71231140a5
Block Gas limit contract integration for Chiado (#7727)
Changes summary:
- Continue with the gasLimit check skip in ``verifyHeader`` of
``merge.go`` for unless pre-merge block and blockGasLimitContract
present
- Refactor ``aura.go`` a bit
- Have ``sysCall`` method customized to be able to call state (contract)
at a parent (or any other) header state
2023-06-19 22:06:51 +05:30
racytech
ec4281e344
BlobTxWrapper RLP encode-decode and tests (#7742) 2023-06-19 13:28:44 +02:00
alex.sharov
5be6851622 save 2023-06-19 18:01:17 +07:00
alex.sharov
e28fcc0852 Merge branch 'stable' into devel 2023-06-19 17:59:47 +07:00
alex.sharov
6755f7e1fd save 2023-06-19 17:50:07 +07:00
Alex Sharov
9e96de6226
e3: fix test (#7760) 2023-06-19 14:02:34 +07:00
Alex Sharov
86035ca566
e3: unwind simplify (#7759) 2023-06-19 13:42:43 +07:00
Alex Sharov
2adf258a33
e3: simplify unwind (#7758) 2023-06-19 11:40:13 +07:00
Alex Sharov
a77edd7a32
faster opening of snapshots and indices (#7757)
- mostly by MADV_SEQUENTIAL during opening 
- see https://github.com/ledgerwatch/erigon-lib/pull/1025
2023-06-19 11:34:01 +07:00
Alex Sharov
eae2d9a79c
Disable ci tests on another servers: step 2 (#7752) 2023-06-17 10:27:58 +07:00
Alex Sharov
94d592d522
disable ci tests on another servers (#7751) 2023-06-17 10:25:22 +07:00
Alex Sharov
a63b24bca6
up NAT STUN lib (#7750) 2023-06-17 09:38:38 +07:00
Alex Sharov
d3c3be9c91
e2: optimize tests speed (#7738) 2023-06-15 16:09:11 +07:00
Andrew Ashikhmin
252e57b76f
Base BlobTx on DynamicFeeTransaction (#7736)
Continuation of PR #7715
2023-06-15 10:57:27 +02:00
Alex Sharov
e5023775aa
Enforce blockReader interface (#7737)
- breaks dependency from staged_sync to package with block_reader
implementation
- breaks dependency from snap_sync to package with block_reader
implementation
- breaks dependency from mining to txpool implementation
2023-06-15 13:11:51 +07:00
Andrew Ashikhmin
a5886732b9
Use BitLenToByteLen from erigon-lib (#7735) 2023-06-14 14:48:16 +02:00
Mark Holt
f110102023
Devnet scenarios (#7723)
This is an update to the devnet code which introduces the concept of
configurable scenarios. This replaces the previous hard coded execution
function.

The intention is that now both the network and the operations to run on
the network can be described in a data structure which is configurable
and composable.

The operating model is to create a network and then ask it to run
scenarios:

```go
network.Run(
		runCtx,
		scenarios.Scenario{
			Name: "all",
			Steps: []*scenarios.Step{
				&scenarios.Step{Text: "InitSubscriptions", Args: []any{[]requests.SubMethod{requests.Methods.ETHNewHeads}}},
				&scenarios.Step{Text: "PingErigonRpc"},
				&scenarios.Step{Text: "CheckTxPoolContent", Args: []any{0, 0, 0}},
				&scenarios.Step{Text: "SendTxWithDynamicFee", Args: []any{recipientAddress, services.DevAddress, sendValue}},
				&scenarios.Step{Text: "AwaitBlocks", Args: []any{2 * time.Second}},
			},
		})
```
The steps here refer to step handlers which can be defined as follows:

```go
func init() {
	scenarios.MustRegisterStepHandlers(
		scenarios.StepHandler(GetBalance),
	)
}

func GetBalance(ctx context.Context, addr string, blockNum requests.BlockNumber, checkBal uint64) {
...
```
This commit is an initial implementation of the scenario running - which
is working, but will need to be enhanced to make it more usable &
developable.

The current version of the code is working and has been tested with the
dev network, and bor withoutheimdall. There is a multi miner bor
heimdall configuration but this is yet to be tested.

Note that by default the scenario runner picks nodes at random on the
network to send transactions to. this causes the dev network to run very
slowly as it seems to take a long time to include transactions where the
nonce is incremented across nodes. It seems to take a long time for the
nonce to catch up in the transaction pool processing. This is yet to be
investigated.
2023-06-14 12:35:22 +01:00
Giulio rebuffo
4f812efbc8
Better version of libp2p where losing peers bug fixed (#7726)
Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
2023-06-14 13:14:52 +02:00
Andrew Ashikhmin
4a2a19909c
Fix integration tests after ChainID move (#7734)
Post-fix after PR #7732
2023-06-14 13:02:02 +02:00
Andrew Ashikhmin
2dd7df910c
Fix lint issues (#7733)
Fix some issues introduced in PR #7715
2023-06-14 11:54:14 +02:00
Andrew Ashikhmin
862d7b6bc6
Move ChainID from CommonTx to DynamicFeeTransaction (#7732)
For legacy transactions ChainID is optional (missing in
pre-[EIP155](https://eips.ethereum.org/EIPS/eip-155) transactions) and
is derived from `V` anyway.

Also, cherry pick https://github.com/ethereum/go-ethereum/pull/27452.
2023-06-14 11:44:05 +02:00