feat(daemon): enrich get_tx_details with blob_size, extra, timestamp
Some checks failed
Security Scan / security (push) Successful in 13s
Test / Test (push) Failing after 43s

Adds missing fields the explorer expects in transaction detail views.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 05:37:10 +01:00
parent 37108819df
commit 94d76339ca
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -635,11 +635,14 @@ func (s *Server) rpcGetTxDetails(w http.ResponseWriter, req jsonRPCRequest) {
"tx_info": map[string]interface{}{
"id": params.TxHash,
"keeper_block": txMeta.KeeperBlock,
"amount": 0,
"fee": 0,
"amount": uint64(0),
"fee": uint64(0),
"blob_size": uint64(0),
"extra": []interface{}{},
"ins": len(tx.Vin),
"outs": len(tx.Vout),
"version": tx.Version,
"timestamp": uint64(0),
},
"status": "OK",
})