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
Alex Sharov
f3021dd2af
RPC: small optimizations ( #2564 )
2021-08-24 08:28:58 +01:00
ledgerwatch
c5de686b22
Update skip_analysis.go
2021-08-19 10:10:36 +01:00
Alex Sharov
85565dcd92
base fee in header json ( #2550 )
...
* base fee in header json
* base fee in header json
2021-08-18 16:26:33 +07:00
Alex Sharov
b7ada2a595
create new Change object if incarnation increased ( #2539 )
...
* create new Change object if incarnation increased
* create new Change object if incarnation increased
2021-08-18 09:41:07 +07:00
Alex Sharov
6c7edb0d34
state diff send to txpool ( #2532 )
2021-08-17 15:52:55 +07:00
Alex Sharov
c7c3a5932a
rename ReadBody to ReadBodyWithTransactions to make it obvious that it's heavier then just ReadBody ( #2534 )
...
* rename ReadBody to ReadBodyWithTransactions
* rename ReadBody to ReadBodyWithTransactions
2021-08-15 17:08:28 +07:00
racytech
1a22191a3d
removed meaningless code ( #2519 )
2021-08-13 10:49:15 +07:00
ledgerwatch
d325daf529
Update skip_analysis.go ( #2517 )
2021-08-12 11:29:28 +03:00
Evgeny Danilenko
4cd72c8328
Keep readonly value while changing interpreters back and forth ( #2508 )
...
* restore TEVM
* fuzzing and property based
* comment
* lint
* stack callback into defer ater checking an error
* sequential tests
2021-08-10 09:48:56 +07:00
ledgerwatch
350d7fe7a9
Adding support for vmTrace into trace_ routines ( #2497 )
...
* VmTrace
* Fixes to gasCall, beginning of vmTrace
* Fix opcode tracer
* Add mem and store, enable vmTrace for all methods
* Fix lint
* More nuances and debugging|
* More fixes
* Fix for trace_callMany
* Fix for trace_callMany
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-08-08 13:28:03 +01:00
Alex Sharov
6c2beb273e
Remove tsdb dependency ( #2503 )
...
* remove tsdb dep
* remove tsdb dep
* remove tsdb dep
* remove tsdb dep
2021-08-08 16:56:54 +07:00
Alex Sharov
29380e4b46
parse dynFee tx corner case ( #2500 )
...
* parse dyn fee tx error
* parse dyn fee tx error
* lint
2021-08-08 14:27:34 +07:00
Richard Patel
7767b4df88
rpcdaemon: add txpool_status() ( #2407 )
...
perfecto
2021-08-06 09:45:44 +07:00
ledgerwatch
7be3535c3d
Update skip_analysis.go
2021-08-05 09:21:00 +01:00
ledgerwatch
44f43312c9
Minor fixes for tracing ( #2485 )
...
* Minor fixes for tracing
* Typo in comment
* rpctest bench tracefilter to use limited number of accounts
* replay command to fail if there is a difference
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-08-03 20:58:18 +01:00
canepat
38a31cecb7
RPCDaemon: eth_gasPrice add baseFee if any to suggested gas price ( #2484 )
...
* Avoid decreasing gasFeeCap at each GetEffectiveGasTip call
Add baseFee if any to suggested gas price
* Move add before GPO caching
2021-08-03 11:48:09 +07:00
Alex Sharov
6bd44eb26c
move kv to erigon-lib ( #2467 )
2021-07-29 18:53:13 +07:00
Alex Sharov
69dc2776dc
MIT licensed metrics lib ( #2462 )
2021-07-29 17:27:46 +07:00
Alex Sharov
5069558752
Apache licensed logger ( #2460 )
2021-07-29 17:23:23 +07:00
ledgerwatch
74473a6362
Update skip_analysis.go
2021-07-29 09:12:11 +01:00
Alex Sharov
21cb7befa4
finish remove bucket suffix ( #2458 )
2021-07-28 10:43:51 +07:00
Alex Sharov
838e5f9ef2
Move bucket constants into kv package, move kv interface to kv package ( #2455 )
2021-07-28 09:47:38 +07:00
Alex Sharov
63a6c45ef1
Remove some db interfaces ( #2452 )
2021-07-27 19:35:32 +07:00
Alex Sharov
733991018b
port active precompiles activation ( #2448 )
2021-07-27 09:39:41 +07:00
Andrew Ashikhmin
db86092ccd
Remove unnecessary value transfer check from TransitionDb ( #2424 )
2021-07-26 15:09:39 +01:00
Alex Sharov
054581f507
staged syncs automatically add error prefix about stage number and name ( #2445 )
2021-07-26 13:19:01 +07:00
Alex Sharov
6bf54c951a
Sokol v0: unwind support ( #2439 )
2021-07-24 16:50:42 +07:00
Alex Sharov
6801208497
move some tests to kv interface ( #2438 )
2021-07-24 14:14:11 +07:00
Alex Sharov
a36a613e61
move migrations to kv interfaces ( #2430 )
2021-07-24 11:28:05 +07:00
Alex Sharov
f735997fa1
Sokol v0: remove unused parameters and methods ( #2435 )
2021-07-24 11:04:07 +07:00
Alex Sharov
1a4d9a0f35
tx_hash_cache_broken ( #2432 )
2021-07-23 19:16:58 +07:00
ledgerwatch
026c4e9d02
Reorg ropsten solution ( #2419 )
...
* Reorg ropsten solution
* Add option
* Print TD recalc
* Correct fix for eip1559
* Try to fix the unwind
* Print header progress and hash
* Not insert descendants of bad headers
* Print some more
* Print less
* Better way of marking bad headers
* Disable inSync
* Penalise peers who give incorrect chain pieces
* better fix for initial cycle
* Clean up
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-07-22 16:49:36 +01:00
ledgerwatch
d7c405308c
Update skip_analysis.go ( #2420 )
2021-07-22 18:57:36 +07:00
ledgerwatch
96ee6e1537
Fix for eip1559 incorrect assert ( #2415 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-21 19:35:08 +01:00