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

Remove initial_freeze_period from RPCs #18563

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 0 additions & 9 deletions chia/rpc/full_node_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ def get_routes(self) -> Dict[str, Endpoint]:
"/get_network_space": self.get_network_space,
"/get_additions_and_removals": self.get_additions_and_removals,
"/get_aggsig_additional_data": self.get_aggsig_additional_data,
# this function is just here for backwards-compatibility. It will probably
# be removed in the future
"/get_initial_freeze_period": self.get_initial_freeze_period,
"/get_recent_signage_point_or_eos": self.get_recent_signage_point_or_eos,
# Coins
"/get_coin_records_by_puzzle_hash": self.get_coin_records_by_puzzle_hash,
Expand Down Expand Up @@ -157,12 +154,6 @@ async def _state_changed(self, change: str, change_data: Optional[Dict[str, Any]

return payloads

# this function is just here for backwards-compatibility. It will probably
# be removed in the future
async def get_initial_freeze_period(self, _: Dict[str, Any]) -> EndpointResult:
# Mon May 03 2021 17:00:00 GMT+0000
return {"INITIAL_FREEZE_END_TIMESTAMP": 1620061200}

async def get_blockchain_state(self, _: Dict[str, Any]) -> EndpointResult:
"""
Returns a summary of the node's view of the blockchain.
Expand Down
9 changes: 0 additions & 9 deletions chia/rpc/wallet_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ def get_routes(self) -> Dict[str, Endpoint]:
"/get_timestamp_for_height": self.get_timestamp_for_height,
"/set_auto_claim": self.set_auto_claim,
"/get_auto_claim": self.get_auto_claim,
# this function is just here for backwards-compatibility. It will probably
# be removed in the future
"/get_initial_freeze_period": self.get_initial_freeze_period,
# Wallet management
"/get_wallets": self.get_wallets,
"/create_new_wallet": self.create_new_wallet,
Expand Down Expand Up @@ -1220,12 +1217,6 @@ async def get_transaction_count(self, request: Dict[str, Any]) -> EndpointResult
"wallet_id": wallet_id,
}

# this function is just here for backwards-compatibility. It will probably
# be removed in the future
async def get_initial_freeze_period(self, request: Dict[str, Any]) -> EndpointResult:
# Mon May 03 2021 17:00:00 GMT+0000
return {"INITIAL_FREEZE_END_TIMESTAMP": 1620061200}

async def get_next_address(self, request: Dict[str, Any]) -> EndpointResult:
"""
Returns a new address
Expand Down
Loading