bsc/eth
Marius van der Wijden d671dbd5b7
eth/downloader: fixes data race between synchronize and other methods (#21201)
* eth/downloaded: fixed datarace between synchronize and Progress

There was a race condition between `downloader.synchronize()` and `Progress` `syncWithPeer` `fetchHeight` `findAncestors` and `processHeaders`
This PR changes the behavior of the downloader a bit.
Previously the functions `Progress` `syncWithPeer` `fetchHeight` `findAncestors` and `processHeaders` read the syncMode anew within their loops. Now they read the syncMode at the start of their function and don't change it during their runtime.

* eth/downloaded: comment

* eth/downloader: added comment
2020-06-30 19:43:29 +02:00
..
downloader eth/downloader: fixes data race between synchronize and other methods (#21201) 2020-06-30 19:43:29 +02:00
fetcher core, eth, internal: include read storage entries in structlog output (#21204) 2020-06-10 11:46:13 +02:00
filters all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
gasprice core: types: less allocations when hashing and tx handling (#21265) 2020-06-30 11:59:06 +02:00
tracers core/vm: use uint256 in EVM implementation (#20787) 2020-06-08 15:24:40 +03:00
api_backend.go cmd, eth, internal, les: add txfee cap (#21212) 2020-06-17 10:46:31 +03:00
api_test.go eth: add debug_accountRange API (#19645) 2020-03-31 12:08:44 +02:00
api_tracer.go eth: returned revert reason in traceTx (#21195) 2020-06-26 12:19:31 +02:00
api.go eth: add debug_accountRange API (#19645) 2020-03-31 12:08:44 +02:00
backend.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
bloombits.go eth: improve shutdown synchronization (#20695) 2020-03-27 15:03:20 +02:00
config.go cmd, eth, internal, les: add txfee cap (#21212) 2020-06-17 10:46:31 +03:00
discovery.go cmd/geth: enable DNS discovery by default (#20660) 2020-02-13 15:38:30 +02:00
gen_config.go cmd, eth, internal, les: add txfee cap (#21212) 2020-06-17 10:46:31 +03:00
handler_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
handler.go eth: don't block if transaction broadcast loop fails (#21255) 2020-06-24 13:54:13 +03:00
helper_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
peer.go eth: don't block if transaction broadcast loop fails (#21255) 2020-06-24 13:54:13 +03:00
protocol_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
protocol.go eth: rework tx fetcher to use O(1) ops + manage network requests 2020-02-13 15:27:15 +02:00
sync_test.go eth: improve shutdown synchronization (#20695) 2020-03-27 15:03:20 +02:00
sync.go eth: interrupt chain insertion on shutdown (#21114) 2020-05-26 21:37:37 +02:00