Files
chia-blockchain/chia/full_node/fee_estimate_store.py
Matt Hauff 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00

24 lines
492 B
Python

from __future__ import annotations
import dataclasses
import typing_extensions
from chia.full_node.fee_history import FeeTrackerBackup
@typing_extensions.final
@dataclasses.dataclass
class FeeStore:
"""
This object stores Fee Stats
"""
_backup: FeeTrackerBackup | None = None
def get_stored_fee_data(self) -> FeeTrackerBackup | None:
return self._backup
def store_fee_data(self, fee_backup: FeeTrackerBackup) -> None:
self._backup = fee_backup