|
52 | 52 | commit_weights_extrinsic,
|
53 | 53 | reveal_weights_extrinsic,
|
54 | 54 | )
|
55 |
| -from bittensor.core.extrinsics.prometheus import ( |
56 |
| - do_serve_prometheus, |
57 |
| - prometheus_extrinsic, |
58 |
| -) |
59 | 55 | from bittensor.core.extrinsics.registration import (
|
60 | 56 | burned_register_extrinsic,
|
61 | 57 | register_extrinsic,
|
@@ -1269,37 +1265,6 @@ def make_substrate_call_with_retry():
|
1269 | 1265 |
|
1270 | 1266 | return NeuronInfo.from_vec_u8(result)
|
1271 | 1267 |
|
1272 |
| - # Community uses this method |
1273 |
| - def serve_prometheus( |
1274 |
| - self, |
1275 |
| - wallet: "Wallet", |
1276 |
| - port: int, |
1277 |
| - netuid: int, |
1278 |
| - wait_for_inclusion: bool = False, |
1279 |
| - wait_for_finalization: bool = True, |
1280 |
| - ) -> bool: |
1281 |
| - """ |
1282 |
| - Serves Prometheus metrics by submitting an extrinsic to a blockchain network via the specified wallet. The function allows configuring whether to wait for the transaction's inclusion in a block and its finalization. |
1283 |
| -
|
1284 |
| - Args: |
1285 |
| - wallet (bittensor_wallet.Wallet): Bittensor wallet instance used for submitting the extrinsic. |
1286 |
| - port (int): The port number on which Prometheus metrics are served. |
1287 |
| - netuid (int): The unique identifier of the subnetwork. |
1288 |
| - wait_for_inclusion (bool): If True, waits for the transaction to be included in a block. Defaults to ``False``. |
1289 |
| - wait_for_finalization (bool): If True, waits for the transaction to be finalized. Defaults to ``True``. |
1290 |
| -
|
1291 |
| - Returns: |
1292 |
| - bool: Returns True if the Prometheus extrinsic is successfully processed, otherwise False. |
1293 |
| - """ |
1294 |
| - return prometheus_extrinsic( |
1295 |
| - self, |
1296 |
| - wallet=wallet, |
1297 |
| - port=port, |
1298 |
| - netuid=netuid, |
1299 |
| - wait_for_inclusion=wait_for_inclusion, |
1300 |
| - wait_for_finalization=wait_for_finalization, |
1301 |
| - ) |
1302 |
| - |
1303 | 1268 | # Community uses this method
|
1304 | 1269 | def get_subnet_hyperparameters(
|
1305 | 1270 | self, netuid: int, block: Optional[int] = None
|
@@ -2047,7 +2012,5 @@ def make_substrate_call_with_retry(encoded_hotkey_: list[int]):
|
2047 | 2012 |
|
2048 | 2013 | return DelegateInfo.from_vec_u8(result)
|
2049 | 2014 |
|
2050 |
| - # Subnet 27 uses this method |
2051 |
| - _do_serve_prometheus = do_serve_prometheus |
2052 | 2015 | # Subnet 27 uses this method name
|
2053 | 2016 | _do_serve_axon = do_serve_axon
|
0 commit comments