From 24a5e172b5ac888349f93d6327d6c166252edb60 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 12 Feb 2017 08:26:25 +0200 Subject: [PATCH] test --- iguana/kmd_lookup.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index 45ca2914e..1e1024127 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -320,10 +320,12 @@ cJSON *kmd_spentjson(struct kmd_transaction *tx,int32_t vout,struct kmd_transact { cJSON *item = cJSON_CreateObject(); jaddstr(item,"type","sent"); + jaddnum(item,"height",tx->height); + jaddnum(item,"timestamp",tx->timestamp); jaddbits256(item,"txid",tx->txid); jaddnum(item,"vout",vout); jaddnum(item,"amount",dstr(tx->vouts[vout].amount)); - jaddbits256(item,"spentdtxid",tx->vouts[vout].spendtxid); + jaddbits256(item,"spendtxid",tx->vouts[vout].spendtxid); jaddnum(item,"vin",tx->vouts[vout].spendvini); if ( spent != 0 ) {