We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bbd605 commit 8d43e03Copy full SHA for 8d43e03
src/rpc/methods.zig
@@ -694,11 +694,7 @@ pub const SlotHookContext = struct {
694
const config = params.config orelse common.CommitmentSlotConfig{};
695
const commitment = config.commitment orelse .finalized;
696
const slot = self.slot_tracker.getSlotForCommitment(commitment);
697
- if (config.minContextSlot) |min_slot| {
698
- if (slot < min_slot) {
699
- return error.RpcMinContextSlotNotMet;
700
- }
701
702
- return slot;
+ const min_slot = config.minContextSlot orelse return slot;
+ return if (slot >= min_slot) slot else error.RpcMinContextSlotNotMet;
703
}
704
};
0 commit comments