mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(debug): allow first fcu through in EngineApiSkipFcu interceptor (#7756)
This commit is contained in:
@ -16,7 +16,11 @@ pub struct EngineApiSkipFcu {
|
||||
impl EngineApiSkipFcu {
|
||||
/// Creates new [EngineApiSkipFcu] interceptor.
|
||||
pub fn new(threshold: usize) -> Self {
|
||||
Self { threshold, skipped: 0 }
|
||||
Self {
|
||||
threshold,
|
||||
// Start with `threshold` so that the first FCU goes through.
|
||||
skipped: threshold,
|
||||
}
|
||||
}
|
||||
|
||||
/// Intercepts an incoming engine API message, skips FCU or forwards it
|
||||
|
||||
Reference in New Issue
Block a user