Implement missing RPC endpoints and fix GPU operations

- Add mining RPC endpoints: /rpc/mining/start, /rpc/mining/stop, /rpc/mining/status, /rpc/mining/miners
- Add pending transactions endpoint: /rpc/pending (alias for mempool)
- Update GPU register/update commands to not require island credentials
- All mining endpoints use in-memory storage for simplified implementation
This commit is contained in:
aitbc
2026-05-26 22:53:25 +02:00
parent 51209844c9
commit f505145a48
2 changed files with 125 additions and 2 deletions

View File

@@ -678,7 +678,7 @@ def providers(ctx):
@click.option('--pricing', help='Pricing model (JSON string)')
@click.pass_context
def register(ctx, gpu_id: str, specs: Optional[str], pricing: Optional[str]):
"""Register a GPU with the gpu-service"""
"""Register a GPU with the gpu-service (no island credentials required)"""
config = get_config()
try:
@@ -716,7 +716,7 @@ def register(ctx, gpu_id: str, specs: Optional[str], pricing: Optional[str]):
@click.option('--status', help='Update GPU status')
@click.pass_context
def update(ctx, gpu_id: str, specs: Optional[str], pricing: Optional[str], status: Optional[str]):
"""Update GPU registration with the gpu-service"""
"""Update GPU registration with the gpu-service (no island credentials required)"""
config = get_config()
try: