Pass failed gossip blocks to the slasher (#2047)

## Issue Addressed

Closes #2042

## Proposed Changes

Pass blocks that fail gossip verification to the slasher. Blocks that are successfully verified are not passed immediately, but will be passed as part of full block verification.
This commit is contained in:
Michael Sproul
2020-12-04 05:03:30 +00:00
parent 7933596c89
commit c1ec386d18
4 changed files with 80 additions and 27 deletions

View File

@@ -77,7 +77,7 @@ mod tests {
});
let raw_runtime = Arc::try_unwrap(runtime).unwrap();
raw_runtime.shutdown_timeout(tokio::time::Duration::from_secs(10));
raw_runtime.shutdown_timeout(tokio::time::Duration::from_secs(300));
// Load the persisted dht from the store
let persisted_enrs = load_dht(store);