File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,25 @@ void LP_millistats_update(struct LP_millistats *mp)
133133 }
134134}
135135
136+ int64_t LP_outpoint_amount (char * symbol ,bits256 txid ,int32_t vout )
137+ {
138+ int64_t amount = 0 ; int32_t numvouts ; char coinaddr [64 ]; cJSON * vouts ,* txjson ;
139+ printf ("need to fix the missing code to link to before using LP_outpoint_amount in LP_bitcoin.c\n" );
140+ exit (0 );
141+ /*if ( (amount= LP_txvalue(coinaddr,symbol,txid,vout)) != 0 )
142+ return(amount);
143+ else
144+ {
145+ if ( (txjson= LP_gettx(symbol,txid,1)) != 0 )
146+ {
147+ if ( (vouts= jarray(&numvouts,txjson,"vout")) != 0 && vout < numvouts )
148+ amount = LP_value_extract(jitem(vouts,vout),0);
149+ free_json(txjson);
150+ }
151+ }*/
152+ return (amount );
153+ }
154+
136155#include "../../SuperNET/iguana/exchanges/LP_network.c"
137156#include "../../SuperNET/iguana/exchanges/LP_secp.c"
138157#include "../../SuperNET/iguana/exchanges/LP_bitcoin.c"
You can’t perform that action at this time.
0 commit comments