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
ledgerwatch
5a09c1c8c6
Erigon2 state runner ( #3034 )
...
* erigon 2 state experiment
* Some boilerplate
* More boilerplate
* More boilerplate
* Introduce comparison
* trace merges
* Fix
* Update erigon-lib dependency
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-27 09:43:25 +00:00
leonardchinonso
d02903be2e
Devnet build to test eth_getBalance, eth_sendRawTransaction and txpool_content ( #3041 )
...
* completed and cleaned up dev chain build
* Last minute syntax changes
2021-11-26 16:05:16 +00:00
ledgerwatch
6910e18e7f
[txpool] Introduce PriceBump, change tx replacement logic, add test ( #3039 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-26 14:39:26 +00:00
TBC Dev
905818f4e2
Simplify SentPeers replies ( #3028 )
2021-11-24 17:17:08 +00:00
Alex Sharov
67c49cf1c3
Pool: support multi sentry ( #3030 )
...
* save
* save
* save
* save
* save
* save
* save
* save
2021-11-24 17:15:14 +00:00
Alex Sharov
9d46c80046
save ( #3031 )
2021-11-24 17:09:14 +00:00
alex.sharov
726278fd8a
save
2021-11-24 10:55:25 +07:00
leonardchinonso
607e958123
Committing changes for devnettest ( #3026 )
2021-11-23 16:44:46 +00:00
TBC Dev
8b4bc39e5d
Fix atomic peer height update ( #3019 )
2021-11-22 18:40:57 +00: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
ledgerwatch
becb25021b
Revert erroneous merge ( #3022 )
...
* Revert "Making corrections to code formatting"
This reverts commit c154d65cec
.
* Revert "Implemented devnet test for eth_getBalance"
This reverts commit dc4c001f51
.
Co-authored-by: Alex Sharp <alexsharp@alexs-macbook-pro.home>
2021-11-22 18:33:37 +00:00
leonardchinonso
c154d65cec
Making corrections to code formatting
2021-11-22 19:15:12 +01:00
leonardchinonso
dc4c001f51
Implemented devnet test for eth_getBalance
2021-11-22 18:36:33 +01:00
TBC Dev
e1c44cd19b
Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) ( #3013 )
...
* Rename protoHandshake.ID to protoHandshake.Pubkey
* Fix enode.ID comment descriptions
* Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey)
* Simplify PeerInfo helpers
2021-11-22 05:39:31 +00:00
Dmitry Savelev
77a31a8b36
Fix Sentry server initialization ( #3008 )
2021-11-21 19:36:26 +00:00
ledgerwatch
2f9128cf21
eth_estimateGas to correctly recap to balance for London txs ( #3006 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-21 11:19:33 +00:00
ledgerwatch
2ddfa52515
trace_block to return empty result for genesis ( #3002 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-21 09:59:28 +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
Alex Sharov
b3e8a1a02a
hack: remove createIdx and txLookup methods ( #3000 )
2021-11-21 12:06:36 +07:00
Alex Sharov
e55256296b
snapshots: read block from snapshots, add sender to txs file ( #2996 )
2021-11-21 10:32:14 +07:00
Alex Sharov
d4850b6adc
Hack: dump bodies and headers ( #2994 )
2021-11-20 09:41:01 +07:00
Alex Sharov
2a08dbd3d9
Recsplit: move files read/write helpers to erigon-lib ( #2993 )
2021-11-19 12:12:25 +07: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
ledgerwatch
69fa571f8d
Fix for eth_getLogs with zero fromBlock and toBlock ( #2989 )
2021-11-18 14:05:20 +00: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
12f565697e
pending nonce ( #2953 )
...
* pending nonce
* Increment nonce of last tx to get tx count
* Upgrade erigon-lib
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-15 10:54:31 +00:00
TBC Dev
a902880e99
Refactor sentry peers ( #2961 )
2021-11-15 10:07:57 +07:00
TBC Dev
669b5dd3ab
Add trusted peers flag ( #2958 )
...
* Refactor and consolidate enode-list config parsing
* Add trustedpeers flag
2021-11-14 18:44:44 +07:00
Alex Sharov
aad0d0c777
grpc GetBlock api ( #2955 )
2021-11-14 11:08:52 +07:00
TBC Dev
484c8eed91
Fix SendHeaderRequest peer minBlock ( #2946 )
2021-11-11 08:34:13 +00:00
alex.sharov
c1cbb21f3d
save
2021-11-11 10:39:44 +07:00
Giulio rebuffo
ab4c080cbc
Merge pull request #2939 from ledgerwatch/enginev1
...
Dropped ETH65
2021-11-10 21:44:39 +01:00
Alex Sharov
f31a76baea
Compress: add maxPatternLen=64 ( #2943 )
2021-11-10 22:10:01 +07:00
Alex Sharov
c7a014b72f
RPC: don't save nil's to blocksLRU ( #2937 )
2021-11-10 10:31:13 +07:00
Alex Sharov
e670f3930f
Lcp must be int32 ( #2934 )
2021-11-09 17:47:12 +07:00
Alex Sharov
3842351293
move DictAggregator to erigon-lib ( #2933 )
2021-11-09 10:12:25 +07:00
Alex Sharov
deed48c01a
Small step towards torrent downloader ( #2929 )
2021-11-08 20:40:56 +07:00
Alex Sharov
9ab2bbee1b
recsplit: single offset bucket ( #2928 )
2021-11-08 14:27:47 +07:00
Giulio Rebuffo
02d3c697d1
removed eth64/65 tests
2021-11-07 22:16:49 +01:00
Giulio Rebuffo
f34ccb75e5
refactor downloader
2021-11-07 20:25:37 +01:00
Alex Sharov
194330fa4b
Recsplit: preserve immutability threshold ( #2926 )
2021-11-07 13:01:33 +07:00
Alex Sharov
49ff8ff166
Recsplit: collision typed error ( #2925 )
2021-11-07 09:58:20 +07:00
Alex Sharov
ed83d2974f
Pool: don't send empty events ( #2924 )
2021-11-07 09:45:00 +07:00
alex.sharov
e802e43fa8
add pprof http to hack
2021-11-07 09:16:25 +07:00
Giulio rebuffo
c1e7650106
added engine_ namespace in rpcdaemon ( #2923 )
2021-11-07 08:38:36 +07:00
Alex Sharov
a5bbe82a59
ETL: use logPrefix as suffix of tmp files ( #2921 )
2021-11-05 17:19:44 +07:00
Igor Mandrigin
4a5aaeea72
unbreak rpc daemon after snapshot.dir removal
2021-11-04 20:47:55 +01:00
Alex Sharov
4dbf025fb5
suppress some p2p errors ( #2914 )
...
* save
* save
2021-11-04 11:14:49 +00:00
alex.sharov
f1a493914f
save
2021-11-04 16:05:33 +07:00