ledgerwatch
ea6dbd49e8
[erigon2] Running with commitment ( #3203 )
...
* [erigon2] Running with commitment
* [erigon2] Running with commitment
* [erigon2] Running with commitment
* go mod tidy
* [erigon2] Running with commitment
* More
* Debug
* fix
* Fix
* state root command
* More fixes
* Fix
* Progress to 164735
* Only trace when failing
* fix for firstInsert
* Over block 1.36m
* Update
* fix to deleteAccount
* Fixes for plainKeys
* Undo printing
* No changeset generation by default
* Print block number on interrupt, fix lint
* Fix lint
* Open history DB as read only
* Print error
* Open non read only
* Readonly again
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-01-14 16:02:44 +00:00
ledgerwatch
c0db9295b8
Skip analysis and preverified hashe update ( #3244 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-01-12 10:36:12 +00:00
primal_concrete_sledge
748abd39f6
Suggesting fix for data race ( #3236 )
2022-01-11 21:23:24 +07:00
Andrew Ashikhmin
c2d0f0082a
Report Valid ExecutionStatus only after all stages ( #3212 )
...
* Stricter transition check
* EthBackendServer.numberSent was unused
* Take account of PoS blocks in TopSeenHeight
* Report Valid ExecutionStatus only after all stages, not straight in headers
* Print TTD on startup
* No need to check parent.Hash() again
* core: change baseFee into baseFeePerGas in genesis json
* fix typo
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-01-07 16:54:26 +01:00
Alex Sharov
4ef541f5dc
Snapshots: tx lookup in RPC from snapshots ( #3214 )
2022-01-07 20:52:38 +07:00
Alex Sharov
13d9e71ac7
Snapshots: txnHash2BlockNum idx ( #3213 )
2022-01-06 18:22:59 +07:00
Andrew Ashikhmin
d14c223881
Simplify miner gas limit post EIP-1559. Default to 30M ( #3205 )
2022-01-05 16:36:24 +07:00
Alex Sharov
156287a982
Sanity check p2p block ( #3197 )
2022-01-04 15:46:22 +07:00
Alexandr Borodulin
8203cdf4cd
Added salt to starknet transaction for cairo contract address generation ( #3178 )
...
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2022-01-03 12:32:22 +07:00
Alex Sharov
40205fb7ca
Torrent: continue download after reboot, --torrent.verbosity flag ( #3161 )
2021-12-24 10:44:14 +07:00
Giulio rebuffo
c596bb4306
Added WatchTheBurnStage + erigon_watchTheBurn json rpc call ( #3137 )
...
* added blockIssuance type
* added stage
* bug fixing
* simplifications
* minimalised
* fixed burned computation
* stage complete
* stage issuance
* reposition
* finished
* lint
2021-12-16 22:08:27 +00:00
brendan-kelly
3d048b7f1a
Add chain config and CLI changes for Binance Smart Chain support ( #3131 )
...
* Add chain config and CLI changes for Binance Smart Chain support
* Remove BSC hashes for now
* Add an if statement for BSC forks
* Fix up if statement
* Compiles
* Remove extra dependencies from go.mod/go.sum
* Add a TODO
* Potentially fix the tests
2021-12-16 07:26:44 +00:00
Frojdi Dymylja
499c27d2e1
change: port js tracer changes ( #3128 )
...
* change: expose callCtx as ScopeContext
* change: update tracer API
* change: logger API
update: jst tracer
* add: port jst tracer 2
* add: port jst tracer 3
* add: access list tracer
* chore: lint
2021-12-15 13:19:58 +00:00
ledgerwatch
d836e9e2d7
[beta] Skip analysis and preverified hashes ( #3130 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-14 21:55:47 +00:00
ledgerwatch
bcdff3cb9b
Txpool tracing by sender addresses ( #3113 )
...
* Txpool tracing by sender addresses
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-14 16:15:54 +00:00
Andrew Ashikhmin
d739810dc5
Serenity engine: fall back to eth1 engine before the Merge ( #3112 )
...
* (EIP-4399) MixDigest is utilized for RANDOM
* Add GetTd to ChainHeaderReader
* Remove unused VerifyHeaders from consensus consensus
* Introduce params.MaxGasLimit
* Serenity engine: fall back to eth1 engine before the Merge
* Serenity engine in CreateConsensusEngine
* ethOne -> eth1Engine
2021-12-13 18:29:38 +01:00
Alexandr Borodulin
22a9a9b27d
Add error tests for starknet_sendRawTransaction method ( #3102 )
...
* Add error tests for starknet_sendRawTransaction method
* Noop tx pool
* Rename cairo tx to starknet tx, refactor starknet send raw transaction test
* Remove noop tx pool
* Transaction struct
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2021-12-12 22:24:21 +00:00
brendan-kelly
ee99f17fbe
Add Parlia consensus engine for Binance Smart Chain support ( #3086 )
...
* Add Parlia consensus engine for Binance Smart Chain support
* Leave RamanujanBlock as nil in params/config.go
* Run `go fmt` on files needing it
* Add comment for PoSA
* Remove empty branches and ineffectual assignments in parlia.go
* Remove commented imports
* Fix compilation error
* Remove EIP155Signer in transaction_signing.go
* Fix compilation issue
* Fix go fmt issues
* Remove Ramanujan from print statement
* Remove references to EthAPIBackend approach
* Fix Finalize method across consensus engines
* Run go fmt
* More linting
* Remove more changes
* remove a comment
* Remove unneeded hashing function
* Remove bytes check and fix actual vs expected mistake
2021-12-11 00:07:10 +00:00
Andrew Ashikhmin
d0dbf014f3
Update consensus tests to 10.2. EIP-2681 ( #3103 )
...
* ArrowGlacier fork config
* core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (#23853 )
This retroactively implements requirements or EIP-2681 for the account nonce upper limit.
* Update consesus tests to 10.2
* Handle TransactionWithHighNonce64Minus1
* Check intrinsic gas in transaction tests
* Refactor overflow protection in IntrinsicGas
* Remove remnants of vm tests
* Update difficulty tests to the new format
Co-authored-by: Andrei Maiboroda <andrei@ethereum.org>
2021-12-07 18:24:59 +01:00
Alexandr Borodulin
bbb3cc978f
Starknet getcode ( #3038 )
...
* deploy_cairo_smartcontract
* deploy_cairo_smartcontract / 2
Add new transaction type for cairo and vm factory
* starknet_getcode
* deploy_cairo_smartcontract / 3
* deploy_cairo_smartcontract / 4
* deploy_cairo_smartcontract / 5
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2021-12-06 14:58:53 +00:00
ledgerwatch
494853ae39
Update skip analysis and preverified hashes ( #3097 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-06 12:40:06 +00:00
Andrew Ashikhmin
759fb00593
[beta] Stricter uint256 RLP decoding. Update consensus tests to 10.1 ( #3089 )
...
* Clean up test runners. Don't run legacy tests
* Cherry pick https://github.com/ethereum/go-ethereum/pull/22927
* Tests update 10.1: Transaction Tests
* Port decodeBigInt changes to decodeUint256
* Introduce (*Stream) Uint256Bytes
* Temporarily disable stTransactionTest/HighGasPrice
* linter
* ttWrongRLP transaction tests pass now
* Fix stTransactionTest/HighGasPrice
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-12-06 08:00:54 +00:00
Alex Sharov
178fd1931d
Genesis sync from existing snapshots ( #3087 )
2021-12-05 09:03:08 +07:00
Giulio rebuffo
3c95db0078
Fixed Proof-of-stake transition ( #3075 )
...
* added download channel to stage headers
* added direct execution
* now channel of headers rather than bodies
* simplifications
* fixed ttd headerForward
* garbage removed
* added some more stepping stones
* better transition
* covered edge case
* added names to returned values
* clean
2021-12-03 11:55:00 +01:00
Andrew Ashikhmin
094ab5e77d
[EIP-4399] Remove newly added Header.Random (reuse mixHash instead) ( #3069 )
...
* [EIP-4399] Remove newly added Header.Random (reuse mixHash instead)
* add a TODO
* Update mock payload hashes
2021-12-01 13:41:31 +01:00
Giulio rebuffo
d7ee2b1447
Merge pull request #2997 from ledgerwatch/enginev1
...
Added ExecutePayloadV1 to engine_ namespace [the merge]
2021-11-30 19:21:17 +01:00
TBC Dev
e98f39b2c4
Fix Header.EncodingSize() to match EncodeRLP() with EIP-3675 ( #3053 )
...
* Fix Header.EncodingSize() to match EncodeRLP() with EIP-3675
* Fix error messages for Random in DecodeRLP()
2021-11-30 14:23:34 +00:00
ledgerwatch
feebc7d3e6
save ( #3059 ) ( #3060 )
...
Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
2021-11-30 12:36:01 +00:00
TBC Dev
5eca3beea9
Avoid redundant BitLen() ( #3056 )
...
* Prefer uint256.IsZero() or big.Sign() for 0-testing over BitLen()
* Avoid redundant BitLen()
2021-11-29 22:35:51 +00:00
Giulio Rebuffo
e76bc807bb
better api
2021-11-29 15:47:08 +01:00
TBC Dev
ae4819ddad
Prefer Block.NumberU64() over Block.Number.Uint64() ( #3051 )
2021-11-29 11:32:41 +00:00
Giulio rebuffo
cfed35921c
Merge branch 'devel' into enginev1
2021-11-29 09:57:56 +01:00
TBC Dev
57d641b6f9
Avoid redundant Block.Header() deep-copy ( #3050 )
...
* Add separate Block.Nonce() and Block.NonceU64()
* Add Block.Seal()
* Avoid redundant Block.Header() deep-copy
* Add warning comment for Block.Header()
2021-11-29 08:52:36 +00:00
ledgerwatch
c3e361eadb
Update skip analysis and preverified ( #3045 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-28 12:59:11 +00:00
TBC Dev
2f0758e817
ChainSegment efficiency ( #3042 )
...
* De-dup blockHeaders66() and blockHeaders65()
* Simplify loops and EOL detection
* Add ChainSegmentHeader struct and refactor
* Add RawRlpHash() to avoid re-encode for header hash
* Avoid multiple redundant rlpHash()
* Sort headers by height,hash to make dups consecutive
* Flip condition to reduce map lookups
* Remove redundant check
* Use rlp.RawValue rather than []byte to help self-document
2021-11-27 17:28:17 +00:00
Giulio Rebuffo
768617f412
added proper errors
2021-11-24 23:19:40 +01:00
Giulio Rebuffo
435d1d1519
channels implemented
2021-11-24 23:00:00 +01:00
Alex Sharov
6d24a30a01
Drop txpool v1 ( #3017 )
...
* drop_txpool_v1
* drop_txpool_v1
Co-authored-by: Alex Sharp <alexsharp@alexs-macbook-pro.home>
2021-11-22 18:38:51 +00:00
Giulio Rebuffo
21cbc19f21
using batch over tx
2021-11-21 23:11:50 +01:00
Giulio Rebuffo
23883d9104
merge
2021-11-21 21:55:41 +01:00
ledgerwatch
f0ca5eacd8
Update skip_analysis.go ( #3009 )
2021-11-21 16:43:47 +00:00
ledgerwatch
b073787f1d
eth_getTransactionReceipt not to return unrelated txs ( #2998 )
...
* Cleanup
* Restore
* Fix for existing tx
* Cleanup
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-11-21 09:22:29 +00:00
Giulio Rebuffo
224441cb07
initial commit2
2021-11-20 17:27:11 +01:00
Alex Sharov
5b634a790e
Canonical tx ids ( #2986 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2021-11-18 14:07:55 +00:00
Giulio rebuffo
44fe9765f3
Merge pull request #2978 from ledgerwatch/eip4399
...
[Eip4399 part 3/3] Supplant DIFFICULTY opcode with RANDOM
2021-11-17 19:47:11 +01:00
Giulio rebuffo
e6916d4d00
[EIP-4399 2/3] Added total difficulty stage and transition logic ( #2964 )
...
* added diff stage
* added td stage
* improvements + more tests
* added err check
* added err check
* transition raw interfaces
* interface for transition
* unwind updates
* maybe this fix
* now fixed?
* fixes
* better db-format
* better db-format
* sum and mod
* sum and mod
* fixed headers unwind
2021-11-17 15:50:41 +00:00
ledgerwatch
2ad6ca10cf
Ropsten and main net preverified hashes, skip analysis ( #2973 )
...
* Ropsten preverified hashes
* Pre-verified hashes for mainnet, skip analysis
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-16 20:14:26 +00:00
Giulio Rebuffo
94d477cdd9
EIP 4399 finalized
2021-11-15 21:23:56 +01:00
alex.sharov
bca0d1d473
Increase default txpool size
2021-11-15 10:16:03 +07:00
Giulio rebuffo
0b1027ea2c
added random field to block type ( #2962 )
2021-11-15 10:05:53 +07:00
TBC Dev
9e5ae33eb0
Use IsZero() instead of Sign() for uint256.int ( #2960 )
2021-11-14 22:18:47 +07:00
ledgerwatch
c0fffb6f0a
Update skip_analysis.go ( #2915 )
2021-11-04 11:15:01 +00:00
Alex Sharov
1a45f26a7c
move ( #2910 )
2021-11-04 08:25:40 +00:00
Andrew Ashikhmin
1214302a19
Arrow Glacier network upgrade ( #2896 )
2021-10-31 20:31:18 +07:00
ledgerwatch
3f21910963
Update preverified headers (main net, roosten), update skip analysis block ( #2875 )
...
* Preverified headers
* Update skip analysis
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-10-27 17:16:20 +01:00
Alex Sharov
a28a0b7744
PoolV2: set default limit to sub-pools 10K ( #2855 )
2021-10-21 15:59:39 +07:00
Alex Sharov
752f76847d
propagate all promoted txs when add local tx ( #2841 )
2021-10-20 10:40:23 +07:00
e-danko
574be07415
Updated Fermion genesis extraData ( #2830 )
...
* updated Fermion extradata + fixed bug with PublicKey
* Update Fermion extradata: fix genesis hash
2021-10-16 13:12:57 +03:00
Alex Sharov
f81ade1b2b
enable poolv2 by default ( #2831 )
2021-10-16 12:37:43 +07:00
alex.sharov
7885cc6809
Revert "enable by default"
...
This reverts commit 7f58290a45
.
2021-10-16 09:55:38 +07:00
alex.sharov
7f58290a45
enable by default
2021-10-16 09:55:23 +07:00
ledgerwatch
b37f733f14
Update skip_analysis.go ( #2825 )
2021-10-14 16:34:19 +01:00
e-danko
c970261ac9
switched Fermion to Clique ( #2823 )
...
* switched Fermion to Clique
* Update Fermion to Clique: updated genesis block hash
2021-10-13 17:51:45 +03:00
e-danko
19b7354a1d
#2658 : eliminated HeadersSeal function ( #2731 )
...
* #2658 : removed using HeadersSeal function from experiments module
* #2658 : lint issues
* #2658 : fix typo
2021-10-13 08:31:04 +07:00
Andrew Ashikhmin
91df893e84
EIP-3607 (check if sender is EOA). Update tests to v10.0 ( #2820 )
...
* Update Ethereum tests to v10.0
* Implement EIP-3607
2021-10-13 08:30:09 +07:00
Alex Sharov
da00e949c4
RemoteRPC: coherentCache for kv.Code; LocalRPC: enable small blocksLRU ( #2815 )
2021-10-12 12:04:04 +07:00
ledgerwatch
e097490118
Update skip_analysis.go ( #2792 )
2021-10-07 11:16:48 +03:00
e-danko
900f687e84
Fermion genesis block ( #2787 )
...
* updated Fermion genesis block
* Updated Fermion genesis block: added precompiles
2021-10-06 12:00:23 +03:00
Alex Sharov
0625cd4f11
No senders is fine ( #2775 )
2021-10-05 10:03:49 +07:00
Andrea Lanfranchi
3bc3be4b5f
Clean up DEBUG category logs ( #2776 )
...
- move many DEBUG logs into TRACE category
2021-10-05 08:14:04 +07:00
Andrea Lanfranchi
c913f35c2e
Inner errors ( #2774 )
2021-10-04 22:16:52 +07:00
canepat
e19dcd89fc
Add check to have pre-Homestead behavior on code store error ( #2749 )
...
* Add check to have pre-Homestead behavior on code store error
* Fix linter error
2021-10-01 12:24:48 +07:00
ledgerwatch
31d04ad88b
Update skip_analysis.go ( #2747 )
2021-09-30 11:14:48 +03:00
Enrique Jose Avila Asapche
677d2f88bf
test tha produces an error for decoding incarnation ( #2742 )
2021-09-30 08:52:58 +07:00
alex.sharov
fc44197f06
fix merge conflict
2021-09-29 14:48:19 +07:00
Alex Sharov
17abe11cc0
Remote RPC: add state cache ( #2738 )
2021-09-29 08:36:25 +07:00
e-danko
0c93c314d4
added Fermion network ( #2737 )
2021-09-29 08:35:43 +07:00
e-danko
7d338f5e1c
#2660 : added Kovan network ( #2733 )
2021-09-27 19:56:17 +07:00
Alex Sharov
a148e71d9d
Pool: switch to pendingBaseFee ( #2732 )
2021-09-26 23:09:36 +07:00
Enrique Jose Avila Asapche
3f1d51121c
Decoding incarnation and Tests ( #2727 )
2021-09-26 19:58:20 +07:00
ledgerwatch
8bbd5916b3
Update skip_analysis.go ( #2723 )
2021-09-23 10:38:28 +01:00
Alex Sharov
2b804cdc35
save ( #2722 )
2021-09-23 09:14:00 +07:00
Alex Sharov
3de50637cd
remove changeset.Walk func ( #2716 )
2021-09-22 07:54:29 +07:00
Jaanek Oja
5e4bd653d7
mark support for eip-1559 tx types for most permissive signer ( #2698 )
...
Co-authored-by: Jaanek Oja <jaanekoja@gmail.com>
2021-09-17 10:00:23 +01:00
Alex Sharov
400c71b7ce
Pool: txID-based cache ( #2697 )
2021-09-17 10:31:20 +07:00
ledgerwatch
44768b5a4f
Update skip_analysis.go ( #2692 )
2021-09-16 15:21:21 +07:00
Alex Sharov
ad1682cf40
Expose mdbx's txID to remote_kv ( #2686 )
2021-09-15 14:22:57 +07:00
Andrew Ashikhmin
ced5965ef7
Remove ReceiptsKey in favour of EncodeBlockNumber ( #2681 )
2021-09-13 20:59:18 +07:00
George Hotz
1e94b3a13d
fix eth_callBundle by allowing nil baseFee in tx serialize ( #2674 )
2021-09-13 17:04:08 +07:00
Alex Sharov
71b3491807
fix sentry forks slice race ( #2677 )
2021-09-13 14:29:08 +07:00
ledgerwatch
15b4095718
Move ETL to erigon-lib ( #2667 )
...
* Move ETL to erigon-lib
* Update link in the readme
* go mod tidy
* Use common/chan.go from erigon-lib
* Clean up
* Fix lint
* Fix test
* Fix compilation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-09-12 08:50:17 +01:00
Alex Sharov
9ac16d2528
revert change ( #2669 )
2021-09-12 10:05:42 +07:00
ledgerwatch
f9e4090966
Update skip_analysis.go ( #2651 )
2021-09-09 10:41:09 +01:00
Alex Sharov
0d79c19f21
clean ipc string ( #2644 )
2021-09-08 15:25:10 +07:00
Alex Sharov
2d8941a845
Pool: built-in v2 ( #2643 )
2021-09-08 12:31:51 +07:00
Alex Sharov
9067ca5b15
Non-secret devnet key ( #2641 )
2021-09-08 11:00:06 +07:00
Alex Sharov
dd7f197db3
Devnet private key ( #2639 )
2021-09-07 16:12:49 +07:00
Alex Sharov
4c1dbdf50e
Pool: add --txpool.v2 flag to erigon (it just disabling existing machinery for now) ( #2620 )
2021-09-02 17:04:30 +07:00
ledgerwatch
2c6d4ae48d
Update skip_analysis.go ( #2613 )
2021-09-01 21:37:01 +01:00
Zachinquarantine
5e713d6da6
Remove calaveras testnet ( #2600 )
...
* Remove calaveras
* Remove Calaveras testnet
2021-09-01 08:16:30 +07:00