Skip to content
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
2 changes: 1 addition & 1 deletion miners/windows/rustchain_miner_setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set "PYTHON_URL=https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe
set "PYTHON_INSTALLER=%SCRIPT_DIR%python-3.11.5-amd64.exe"
set "MINER_URL=https://raw.githubusercontent.com/Scottcjn/Rustchain/main/miners/windows/rustchain_windows_miner.py"
set "MINER_SCRIPT=%SCRIPT_DIR%rustchain_windows_miner.py"
set "MINER_SHA256=a8e3923bbfb68258312fa432f072acf2d7bf5516e8cfa62753386f8f23d39505"
set "MINER_SHA256=bd83dd859579750ce5eae54b8cb778af4d82ae3af82b6b5adaf2c0193af1334e"
set "CRYPTO_URL=https://raw.githubusercontent.com/Scottcjn/Rustchain/main/miners/windows/miner_crypto.py"
set "CRYPTO_SCRIPT=%SCRIPT_DIR%miner_crypto.py"
set "CRYPTO_SHA256=ffe2e4c78fdc3f53c129a2ef820cc84549a5720655140e69a3e0baf1f7f385fa"
Expand Down
7 changes: 5 additions & 2 deletions miners/windows/rustchain_windows_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import time
import json
import hashlib
import logging
import platform
import threading
import statistics
Expand Down Expand Up @@ -590,8 +591,10 @@ def attest(self):
attestation["signature"] = signature
attestation["public_key"] = self.public_key
attestation["signature_type"] = "ed25519"
except Exception:
pass # Fall through unsigned; server accepts with warning
except Exception as exc:
logging.warning(
"attestation signing failed; falling through unsigned: %s", exc
)
else:
# Legacy fallback — sha512 pseudo-signature. Server accepts but
# logs a warning. Real wallet-hijack protection requires PyNaCl.
Expand Down
2 changes: 1 addition & 1 deletion node/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def wrapper(*a, **k):
def _rows(sql, params=()):
with _ro() as c:
c.row_factory = sqlite3.Row
return [dict(r) for r in c.execute(sql, params).fetchall()]
return [dict(r) for r in c.execute(sql, params).fetchall()] # fetchall-ok: bounded-by-schema

def _one(sql, params=()):
with _ro() as c:
Expand Down
2 changes: 1 addition & 1 deletion node/bridge_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ def migrate_deposits_to_hard_locks(cursor):
WHERE direction = 'deposit'
AND status IN ('pending', 'locked', 'confirming')
AND source_debited = 0
""").fetchall()
""").fetchall() # fetchall-ok: bounded-by-schema
except sqlite3.OperationalError as exc:
# Expected only when bridge_transfers/balances aren't created yet in this
# init ordering. Log it so a genuine schema error can't hide here and
Expand Down
2 changes: 1 addition & 1 deletion setup_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"Windows": {
"url": "https://raw.githubusercontent.com/Scottcjn/Rustchain/main/miners/windows/rustchain_windows_miner.py",
"sha256": "a8e3923bbfb68258312fa432f072acf2d7bf5516e8cfa62753386f8f23d39505",
"sha256": "bd83dd859579750ce5eae54b8cb778af4d82ae3af82b6b5adaf2c0193af1334e",
},
}

Expand Down
Loading