feat: Add link for payout txs
All checks were successful
Build Docker / BuildImage (push) Successful in 51s
Check Code Quality / RuffCheck (push) Successful in 1m9s

This commit is contained in:
2026-04-04 21:13:53 +11:00
parent 74a93877b9
commit dbbba6a8eb
3 changed files with 13 additions and 3 deletions

View File

@@ -420,7 +420,7 @@ def pool_miner():
return jsonify(
{
"address": address,
"updated_at": datetime.utcnow().isoformat() + "Z",
"updated_at": datetime.now(UTC).isoformat(),
"summary": {
"matching_workers": len(matching_workers),
"hashrate": total_hashrate,
@@ -460,4 +460,4 @@ def not_found(e):
# endregion
if __name__ == "__main__":
app.run(debug=True, port=5000, host="0.0.0.0")
app.run(debug=True, port=5000, host="127.0.0.1")

View File

@@ -277,6 +277,16 @@ th {
color: var(--muted);
}
.txid-link {
color: var(--accent);
text-decoration: none;
font-family: "Courier New", Courier, monospace;
font-size: 12px;
}
.txid-link:hover {
text-decoration: underline;
}
@media (min-width: 920px) {
.panel.split {
grid-template-columns: 1fr 1fr;

View File

@@ -330,7 +330,7 @@
<td data-label="Address">${p.address || "-"}</td>
<td data-label="Amount (FBC)">${fmtFbc(Number(p.amount || 0) / 1000000)}</td>
<td data-label="Status"><span class="pill ${String(p.status || "pending").toLowerCase()}">${p.status || "pending"}</span></td>
<td data-label="TXID" title="${p.txid || ""}">${shortTxid(p.txid)}</td>
<td data-label="TXID" title="${p.txid || ""}"><a href="https://explorer.fistbump.org/tx/${p.txid}" target="_blank" rel="noopener" class="txid-link">${shortTxid(p.txid)}</a></td>
<td data-label="Time">${fmtTime(p.time)}</td>
</tr>
`),