lighthouse/beacon_node
Paul Hauner 7a64994283 Call per_slot_task from a blocking thread (v2) (#3199)
*This PR was adapted from @pawanjay176's work in #3197.*

## Issue Addressed

Fixes a regression in https://github.com/sigp/lighthouse/pull/3168

## Proposed Changes

https://github.com/sigp/lighthouse/pull/3168 added calls to `fork_choice` in  `BeaconChain::per_slot_task` function. This leads to a panic as `per_slot_task` is called from an async context which calls fork choice, which then calls `block_on`.

This PR changes the timer to call the `per_slot_task` function in a blocking thread.

Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
2022-05-20 23:05:07 +00:00
..
beacon_chain Call per_slot_task from a blocking thread (v2) (#3199) 2022-05-20 23:05:07 +00:00
client Allow TaskExecutor to be used in async tests (#3178) 2022-05-16 08:35:59 +00:00
eth1 v2.2.0 (#3139) 2022-04-05 02:53:09 +00:00
execution_layer Log out response status when we hit PayloadIdUnavailable (#3190) 2022-05-19 06:00:48 +00:00
genesis Update and consolidate dependencies (#3136) 2022-04-04 00:26:16 +00:00
http_api Run fork choice before block proposal (#3168) 2022-05-20 05:02:11 +00:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Tiny improvement: PeerManager and maximum discovery query (#3182) 2022-05-19 06:00:46 +00:00
network Fix Rust 1.61 clippy lints (#3192) 2022-05-20 05:02:13 +00:00
operation_pool Remove DB migrations for legacy database schemas (#3181) 2022-05-17 04:54:39 +00:00
src Run fork choice before block proposal (#3168) 2022-05-20 05:02:11 +00:00
store Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Call per_slot_task from a blocking thread (v2) (#3199) 2022-05-20 23:05:07 +00:00
Cargo.toml v2.2.1 (#3149) 2022-04-12 02:52:12 +00:00