mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 02:33:48 +00:00
Add lockbud task to CI (#6470)
* Add lockbud task to CI * Allow unknown lint * Merge branch 'unstable' of https://github.com/sigp/lighthouse into lockbud * remove potential deadlock * ignore tokio util crate * Update image
This commit is contained in:
15
.github/workflows/test-suite.yml
vendored
15
.github/workflows/test-suite.yml
vendored
@@ -54,6 +54,20 @@ jobs:
|
||||
done
|
||||
echo "skip_ci=$SKIP_CI" >> $GITHUB_OUTPUT
|
||||
|
||||
lockbud:
|
||||
name: lockbud
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: sigmaprime/lockbud:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: apt update && apt install -y cmake
|
||||
- name: Generate code coverage
|
||||
run: |
|
||||
cargo lockbud -k deadlock -b -l tokio_util
|
||||
|
||||
target-branch-check:
|
||||
name: target-branch-check
|
||||
runs-on: ubuntu-latest
|
||||
@@ -433,6 +447,7 @@ jobs:
|
||||
'cargo-udeps',
|
||||
'compile-with-beta-compiler',
|
||||
'cli-check',
|
||||
'lockbud',
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -549,10 +549,11 @@ impl Service {
|
||||
|
||||
/// Returns the number of deposits with valid signatures that have been observed.
|
||||
pub fn get_valid_signature_count(&self) -> Option<usize> {
|
||||
let highest_safe_block = self.highest_safe_block()?;
|
||||
self.deposits()
|
||||
.read()
|
||||
.cache
|
||||
.get_valid_signature_count(self.highest_safe_block()?)
|
||||
.get_valid_signature_count(highest_safe_block)
|
||||
}
|
||||
|
||||
/// Returns the number of deposits with valid signatures that have been observed, without
|
||||
|
||||
@@ -147,6 +147,8 @@ impl<E: EthSpec> ConsensusContext<E> {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unknown_lints)]
|
||||
#[allow(elided_named_lifetimes)]
|
||||
pub fn get_indexed_attestation<'a>(
|
||||
&'a mut self,
|
||||
state: &BeaconState<E>,
|
||||
|
||||
Reference in New Issue
Block a user