Browse Source

test

etomic
jl777 8 years ago
parent
commit
66e3125809
  1. 1
      iguana/kmd_lookup.h

1
iguana/kmd_lookup.h

@ -307,6 +307,7 @@ cJSON *kmd_transactionjson(struct kmd_transactionhh *ptr,char *typestr)
cJSON *kmd_unspentjson(struct kmd_transaction *tx,int32_t vout) cJSON *kmd_unspentjson(struct kmd_transaction *tx,int32_t vout)
{ {
cJSON *item = cJSON_CreateObject(); cJSON *item = cJSON_CreateObject();
jaddstr(item,"type","received");
jaddbits256(item,"txid",tx->txid); jaddbits256(item,"txid",tx->txid);
jaddnum(item,"vout",vout); jaddnum(item,"vout",vout);
jaddnum(item,"amount",dstr(tx->vouts[vout].amount)); jaddnum(item,"amount",dstr(tx->vouts[vout].amount));

Loading…
Cancel
Save