File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,23 @@ pub const ForkChoiceProcessedSlot = struct {
1515 /// Set the current processed slot (heaviest fork tip).
1616 /// Uses store() because this can decrease when the fork choice
1717 /// switches to a different fork with a lower slot.
18- pub fn set (self : * @This () , new_slot : Slot ) void {
18+ pub fn set (self : * ForkChoiceProcessedSlot , new_slot : Slot ) void {
1919 self .slot .store (new_slot , .monotonic );
2020 }
2121
22- pub fn get (self : * const @This () ) Slot {
22+ pub fn get (self : * const ForkChoiceProcessedSlot ) Slot {
2323 return self .slot .load (.monotonic );
2424 }
2525};
2626
2727pub const OptimisticallyConfirmedSlot = struct {
2828 slot : std .atomic .Value (Slot ) = .init (0 ),
2929
30- pub fn update (self : * @This () , new_slot : Slot ) void {
30+ pub fn update (self : * OptimisticallyConfirmedSlot , new_slot : Slot ) void {
3131 _ = self .slot .fetchMax (new_slot , .monotonic );
3232 }
3333
34- pub fn get (self : * const @This () ) Slot {
34+ pub fn get (self : * const OptimisticallyConfirmedSlot ) Slot {
3535 return self .slot .load (.monotonic );
3636 }
3737};
Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ pub const common = struct {
690690pub const SlotHookContext = struct {
691691 slot_tracker : * const sig.replay.trackers.SlotTracker ,
692692
693- pub fn getSlot (self : @This () , _ : std .mem .Allocator , params : GetSlot ) ! GetSlot.Response {
693+ pub fn getSlot (self : SlotHookContext , _ : std.mem.Allocator , params : GetSlot ) ! GetSlot.Response {
694694 const config = params .config orelse common.CommitmentSlotConfig {};
695695 const commitment = config .commitment orelse .finalized ;
696696 const slot = self .slot_tracker .getSlotForCommitment (commitment );
You can’t perform that action at this time.
0 commit comments