erigon-pulse/core
ledgerwatch 5834189019
Bodies download and simplify header download (#1471)
* Only insert hard-coded tips if both DB and files recovery failed

* Prevent deadlock

* Report some efficiency numbers

* Count properly unrequested bodies

* Initialise allRequests

* Increase timeout

* Fixes to scheduling

* Small fix

* Simplified scheduling

* Remove separate bodyLoop goroutine

* Update from DB at the beginnig of block bodies forward

* Timeout for repeating the request cycle

* Fix timeout

* Fix

* Increase timeout

* Increase timeout

* Try to make flow if possible

* Fix flow

* Lower timeout

* timeout for each blockNum

* Adjustable timeout

* Better log timing

* Track peers

* copy peerID

* fix scheduling

* Too much logging

* Print delivery speed

* Print committed blocks

* Fix race

* Sentry to only reset back-off timer when response to a request is received

* Print bytes/sec and wasted traffic

* Fix bandwidth accounting

* Less logging

* not to wake up on deliveries

* Spam every second

* Print peer map

* Fix npe, print requests

* Timestamps

* Improved logging

* Penalty for peers

* Log penalties only when disconnecting

* Try with smaller window

* window parameter

* Dealing with partially delivered requests

* Init bodyReq

* Fix array index

* More fix for NPE

* More NPE checks

* Print out body progress and header progress

* Fix ending condition

* Bring back waking up and penalties

* Fix duplicate tip

* Duplicate segment

* Fix lint

* Fix lint

* fix lint

* Fix lint

* Hard coded headers in the source files

* Fix lint

* Replace hix-sized header serialisation with rlp (to support clique)

* Remove anchor records from the files

* Fixeds for DB recovery

* Fix compilation

* Fix compile errors

* Fix formatting

* Fix lint

* Fix comments

* Remove headerLoop

* Properly terminate body download

* Support for StatusData p2p proto

* Fix forkid test

* Fix test

* Fix lint

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-02-08 09:25:10 +00:00
..
asm core/asm: allow numbers in labels (#20362) 2019-12-03 13:55:30 +01:00
bloombits core/bloombits: faster generator (#21625) 2020-10-26 17:16:00 +01:00
forkid Bodies download and simplify header download (#1471) 2021-02-08 09:25:10 +00:00
rawdb remove blocks compression (#1453) 2021-01-27 20:11:34 +07:00
state Remove hashed changesets (#1464) 2021-02-04 12:59:04 +03:00
types Store transactions individually (#1358) 2020-11-22 21:25:26 +00:00
vm WIP trace_call implementation (#1399) 2020-12-14 11:27:52 +00:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go Store transactions individually (#1358) 2020-11-22 21:25:26 +00:00
block_validator_test.go Don't force sync in case InMemDb (#1174) 2020-10-02 14:08:28 +01:00
block_validator.go core: fix a typo in comment (#21439) 2020-10-06 14:12:09 +02:00
blockchain_insert.go Mdbx devel 5 (#1413) 2020-12-16 14:35:14 +00:00
blockchain.go WIP trace_call implementation (#1399) 2020-12-14 11:27:52 +00:00
blocks.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
chain_indexer.go Method delete to accept second param: allow delete dupsort values (#1297) 2020-10-29 13:19:31 +00:00
chain_makers.go Mdbx devel 5 (#1413) 2020-12-16 14:35:14 +00:00
dao_test.go Another step in migrating tests to staged sync (#970) 2020-08-24 18:00:40 +01:00
error.go all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
eth_backend.go rpcdaemon: subscriptions, newHeads (#1359) 2020-11-17 19:13:41 +00:00
events.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2020-01-30 13:36:30 +02:00
evm.go fix db opening (#1240) 2020-10-14 13:05:54 +01:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis_account.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_genesis.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
generate_index_test.go Remove hashed changesets (#1464) 2021-02-04 12:59:04 +03:00
generate_index.go Remove hashed changesets (#1464) 2021-02-04 12:59:04 +03:00
genesis_alloc.go cmd, core, params: inital support for yolo-v1 testnet (#21154) 2020-06-15 19:38:13 +03:00
genesis.go further cleanup, unit tests for RPC daemon and tracing improvements (#1392) 2020-12-09 18:24:08 +00:00
headerchain.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
mkalloc.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
pruner_test.go close db in tests (#669) 2020-06-16 12:05:40 +07:00
pruner.go Remove hashed changesets (#1464) 2021-02-04 12:59:04 +03:00
rlp_test.go Speed up GenerateChain by using intermediate hashes (#736) 2020-07-10 22:37:34 +01:00
skip_analysis.go update skip_analysis 2021-02-04 09:27:38 +01:00
state_prefetcher.go further cleanup, unit tests for RPC daemon and tracing improvements (#1392) 2020-12-09 18:24:08 +00:00
state_processor.go further cleanup, unit tests for RPC daemon and tracing improvements (#1392) 2020-12-09 18:24:08 +00:00
state_transition.go further cleanup, unit tests for RPC daemon and tracing improvements (#1392) 2020-12-09 18:24:08 +00:00
tx_cacher.go Grpc-based remoteDb (#788) 2020-07-27 19:15:48 +07:00
tx_journal.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
tx_list_test.go Revert "core, txpool: less allocations when handling transactions (#21232)" 2020-08-07 12:52:34 +02:00
tx_list.go core: free pointer from slice after popping element from price heap (#21572) 2020-10-26 17:16:00 +01:00
tx_noncer.go Remove Copy from IntraBlockState and use references instead of copies in other places. 2019-11-07 13:32:20 +01:00
tx_pool_test.go test fixups 2020-08-29 14:35:39 +02:00
tx_pool.go core: fix txpool off-by-one error (#21683) 2020-10-26 17:16:00 +01:00
types.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00