Alex Sharov
0b97728862
mdbx bug in DeleteCurrentDuplicates() workaround ( #7850 )
2023-07-06 11:08:23 +07:00
racytech
affef546b1
BlobTx un/marshal json ( #7815 )
2023-06-29 10:07:07 +07:00
Andrew Ashikhmin
a24eae8d6c
EIP-4844: Handle data gas in txpool ( #7779 )
...
Prerequisite: https://github.com/ledgerwatch/erigon-lib/pull/1029
2023-06-23 11:10:23 +02:00
Alex Sharov
ded166d73d
e3: release chain maker changes ( #7787 )
2023-06-23 10:07:42 +07:00
Andrew Ashikhmin
9f5808b055
Schedule Shapella for Gnosis Chain ( #7784 )
...
Schedule the
[Shanghai](https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md )/[Capella](https://github.com/ethereum/consensus-specs/tree/dev/specs/capella )
upgrade for Gnosis Chain. The [Gnosis withdrawals
spec](https://github.com/gnosischain/specs/blob/master/execution/withdrawals.md )
documents the difference between Gnosis Chain and Ethereum mainnet.
Refer to https://github.com/gnosischain/specs/pull/10 and
https://github.com/gnosischain/configs/pull/12 .
2023-06-22 15:36:07 +02:00
Alex Sharov
880c939df8
e3: idx range method ( #7767 )
2023-06-20 10:58:37 +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
2adf258a33
e3: simplify unwind ( #7758 )
2023-06-19 11:40:13 +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
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
racytech
8b312d54e8
eip-4844: desszing blobtx: initial commit ( #7715 )
2023-06-14 11:01:03 +02:00
Alex Sharov
226763b1ae
fix test ( #7731 )
2023-06-14 13:07:20 +07:00
Alex Sharov
5ff8246e2a
e4: release some tests ( #7729 )
2023-06-14 10:01:00 +07:00
Alex Sharov
afd8ea94d0
e3: move domains to tables.go ( #7707 )
2023-06-11 21:12:05 +07:00
Alex Sharov
4766cd8aeb
e2: avoid do RestoreCodeHash twice ( #7706 )
...
- do it only once in HistoryStateReader
2023-06-11 12:28:47 +07:00
Alex Sharov
3b89ed81d6
e3: erigon_getBalanceChanges ( #7704 )
2023-06-11 11:49:53 +07:00
Andrew Ashikhmin
06af87dad7
EIP-4844: Increase Blob Throughput ( #7688 )
...
See https://github.com/ethereum/EIPs/pull/7154
2023-06-09 11:07:28 +02:00
Alex Sharov
1546a79771
lru lib version up ( #7695 )
2023-06-09 13:46:58 +07:00
Alex Sharov
afa4f53ae2
e3: use deserializeV3 for history ( #7691 )
2023-06-09 10:53:04 +07:00
Andrew Ashikhmin
4a74ee2589
EIP-4844: switch precompile input's z and y to big endian ( #7680 )
...
according to https://github.com/ethereum/EIPs/pull/7020 . Prerequisite:
https://github.com/ledgerwatch/erigon-lib/pull/1015 .
2023-06-07 17:33:15 +02:00
Andrew Ashikhmin
fa0cfcbec7
Remove the Rinkeby testnet ( #7677 )
...
See https://github.com/ethereum/go-ethereum/pull/27406
2023-06-07 07:42:36 +02:00
Mark Holt
37a8450d5f
Added non root logger to bor.ValidatorSet ( #7668 )
...
I've added a non root logger to bor.ValidatorSet validator set. This
creates a signature change on a number of calling functions to propagate
the logger. This is mostly constrained to the bor package but impacts a
number of tests and utilities which call the validators set.
2023-06-06 10:55:59 +01:00
Alex Sharov
d703c3cd8e
e3: Fix integration tests, step 2 ( #7673 )
2023-06-06 15:51:04 +07:00
Alex Sharov
bf9f5067f3
fix integration tests run ( #7672 )
2023-06-06 13:49:01 +07:00
Alex Sharov
6c129e5f1d
e3: agg generalize PutIdx method ( #7671 )
2023-06-06 11:29:30 +07:00
Alex Sharov
e14664d53b
Store Canonical/NonCanonical/Bad blocks/senders/txs in same tables. Make re-org cheaper ( #7648 )
...
- allow store non-canonical blocks/senders
- optimize re-org: don't update/delete most of data
- allow mark chain as `Bad` - will be not visible by eth_getBlockByHash,
but can read if have hash+num
2023-06-05 12:36:24 +07:00
Alex Sharov
26f9c064ac
mainnet: more block snapshots ( #7662 )
2023-06-05 11:25:37 +07:00
Alex Sharov
c8e717c957
rawdb methods to rw db schema version ( #7653 )
2023-06-04 09:20:22 +07:00
Alex Sharov
63c92010cd
remove txsV3 cli flag ( #7644 )
2023-06-03 15:54:27 +07:00
Alex Sharov
ad72b7178e
prune speedup. stage_senders: don't re-calc existing senders ( #7643 )
...
- stage_senders: don't re-calc existing senders
- stage_tx_lookup: prune less blocks per iteration - because
random-deletes are expensive. pruning must not slow-down sync.
- prune data even if --snap.stop is set
- "prune as-much-as-possible at startup" is not very good idea: at
initialCycle machine can be cold and prune will cause big downtime, no
reason to produce much freelist in 1 tx. People may also restart erigon
- because of some bug - and it will cause unexpected downtime (usually
Erigon startup very fast). So, I just remove all `initialSync`-related
logic in pruning.
- fix lost metrics about disk write byte/sec
2023-06-03 12:30:53 +07:00
Alex Sharov
d40317c905
preparation for --txs.v3, step 2 ( #7636 )
2023-06-03 07:20:22 +07:00
Andrew Ashikhmin
190bc9dfd8
EIP-4844: add data_gas_used ( #7639 )
...
Implement https://github.com/ethereum/EIPs/pull/7062 and
https://github.com/ethereum/EIPs/pull/7095 . Pick up
https://github.com/ledgerwatch/erigon-lib/pull/1006 .
2023-06-02 21:26:19 +01:00
Alex Sharov
6439bdd835
txsv3: release small parts ( #7632 )
2023-06-02 11:38:20 +07:00
Alex Sharov
b163d3a877
e3: release some e4 parts ( #7629 )
2023-06-02 10:55:40 +07:00
Alex Sharov
5fb31ae95f
e3: release some e4 parts ( #7628 )
2023-06-02 10:35:26 +07:00
Alex Sharov
2278bf5bfc
e3: move kvlist to erigon-lib ( #7625 )
2023-06-02 09:51:16 +07:00
Alex Sharov
7c89afcb42
e3: add kvlist.push method ( #7624 )
2023-06-02 09:24:22 +07:00
Alex Sharov
299c81e522
move "makeBodiesCanonical" method to blockWriter ( #7605 )
2023-05-31 15:44:01 +07:00
Alex Sharov
3cba3908dd
use BlockReader.CanonicalHash method instead of rawdb ( #7604 )
2023-05-31 13:41:10 +07:00
Alex Sharov
af83845f7e
cheaper isCanonicalHash func, less lookups of blockHash by blockNum in rpc ( #7603 )
2023-05-31 11:26:38 +07:00
Alex Sharov
3ec7d9b010
receipts: less allocs in DeriveFields, use blockReader, remove ReadReceiptsByHash, gasPriceOracle don't read block twice and use blockLru ( #7592 )
...
preparation for adding BlockID
2023-05-27 16:39:14 +07:00
Alex Sharov
279e1bec33
use blockReader as service-provider of RoSnapshots ( #7584 )
2023-05-26 17:12:33 +07:00
Andrew Ashikhmin
a47e49ced6
Fix fork ID test for Chiado ( #7576 )
...
Fix a test after PR #7575
2023-05-25 07:59:33 +02:00