Skip to content

Commit 766f293

Browse files
committed
Stub function to link
1 parent 3d0b76b commit 766f293

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

privatebet/bet.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)