Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposer and attester slashing sse events #5327

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove todo, fix test
  • Loading branch information
eserilev committed Apr 3, 2024
commit e2fdbc36c61894d520fcb636e1ba12ab56346c93
1 change: 0 additions & 1 deletion beacon_node/beacon_chain/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,6 @@ where
{
self.chain
.import_attester_slashing(verified_attester_slashing);
// TODO add attester SSE
Ok(())
} else {
Err("should observe new attester slashing".to_string())
Expand Down
4 changes: 2 additions & 2 deletions beacon_node/http_api/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5325,7 +5325,7 @@ impl ApiTester {
)
.await;

assert!(attester_slashing_event.len() > 0);
assert!(attester_slashing_event.len() == 1);

// Test proposer slashing event
let mut proposer_slashing_event_future = self
Expand All @@ -5343,7 +5343,7 @@ impl ApiTester {
)
.await;

assert!(proposer_slashing_event.len() > 0);
assert!(proposer_slashing_event.len() == 1);

self
}
Expand Down