v1.49.3: auditoría en frío, parche 2a — OFAC, polvo, herramientas y errores en llano

- OFAC como CERTEZA en flujo y simulador; exchange con su consecuencia.
- Polvo propio no heredado; polvo con forma de rastreo PROBABLE.
- Formato de dirección con tipoDireccion (mayúsculas, bitcoin:, tb1p, 2…, suma).
- Tx en crudo reconoce PSBT/txid/dirección; firma BIP-322 reconocida.
- Tarifa bajo la mínima; errores de red en llano (errorDeNodo); copiar que falla.
- Comprobar transacción, plural, SIN CONFIRMAR, pie del Markdown en signet, EUR editable, fuera «clustering».
- test40 nuevo; test35 y test18 ampliados.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5npnUYgSPkAaHkdaeUqBr
This commit is contained in:
2026-10-25 18:11:09 +01:00
co-authored by Claude Opus 5.5
parent 1742f49723
commit 1abb01c94e
20 changed files with 250 additions and 73 deletions
+11 -5
View File
@@ -118,7 +118,7 @@
}
function TxVerifier({base}) {
const {get}=useApi(base);
const {get,getStrict}=useApi(base);
const [txid,setTxid]=useState("");
const [result,setResult]=useState(null);
const [loading,setLoading]=useState(false);
@@ -130,12 +130,18 @@
setLoading(true);setResult(null);setErr(null);
if(!base){ setResult({tx:{...MOCK_TX,txid:q},confs:MOCK_HEIGHT-MOCK_TX.status.block_height+1,height:MOCK_HEIGHT,ejemplo:true}); setLoading(false); return; }
try{
const tx=await get(`/api/tx/${q}`,null);
if(!tx)throw new Error("No encontrada");
// v1.49.3 (auditoría B2): «No encontrada en el nodo: No encontrada».
// Se distingue que el nodo no la conozca de que no conteste.
let tx;
try{ tx=await getStrict(`/api/tx/${q}`); }
catch(e2){ const m=String(e2&&e2.message||""); throw new Error(/HTTP 4\d\d/.test(m)?"desconocida":m||"sin respuesta"); }
if(!tx)throw new Error("desconocida");
const height=await get("/api/blocks/tip/height",MOCK_HEIGHT);
const confs=tx.status?.confirmed?(height-tx.status.block_height+1):0;
setResult({tx,confs,height});
}catch(e){setErr(`No encontrada en el nodo: ${e.message}`);}
}catch(e){setErr(e.message==="desconocida"
? `Tu nodo no conoce esta transacción. Comprueba el txid y que es de esta red (${RED.signet?"signet":"mainnet"}); si se acaba de enviar, puede que aún no le haya llegado.`
: `No se pudo preguntar a tu nodo (${e.message}). Comprueba en ⚙ Ajustes que responde.`);}
setLoading(false);
};
@@ -143,7 +149,7 @@
? result.confs===0 ? C.amber : result.confs<6 ? C.blue : C.green
: C.t2;
const statusLabel = result
? result.confs===0 ? "EN MEMPOOL" : result.confs<6 ? `${result.confs} CONFIRMACIONES` : `${fmt.num(result.confs)} CONFIRMACIONES ✓`
? result.confs===0 ? "SIN CONFIRMAR" : result.confs<6 ? `${result.confs} CONFIRMACI${result.confs===1?"ÓN":"ONES"}` : `${fmt.num(result.confs)} CONFIRMACIONES ✓`
: "";
return (