feat(daemon): enrich get_tx_details with blob_size, extra, timestamp
Adds missing fields the explorer expects in transaction detail views. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
37108819df
commit
94d76339ca
1 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue