Browse Source

disable kvupdate

etomic
jl777 8 years ago
parent
commit
1a8d207613
  1. 4
      iguana/iguana_notary.c
  2. 2
      iguana/tests/dexkvsearch
  3. 2
      iguana/tests/dexkvupdate
  4. 2
      includes/iguana_apideclares.h

4
iguana/iguana_notary.c

@ -674,10 +674,12 @@ TWO_STRINGS(dex,kvsearch,symbol,key)
return(_dex_kvsearch(myinfo,symbol,key));
}
THREE_STRINGS_AND_THREE_INTS(dex,kvupdate,symbol,key,value,flags,unused,unusedb)
/*THREE_STRINGS_AND_THREE_INTS(dex,kvupdate,symbol,key,value,flags,unused,unusedb)
{
return(_dex_kvupdate(myinfo,symbol,key,value,flags));
}
need to have some micropayments between client/server, otherwise receiving server incurs costs
*/
#include "../includes/iguana_apiundefs.h"

2
iguana/tests/dexkvsearch

@ -0,0 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"key\":\"foo\",\"symbol\":\"KMD\"}"

2
iguana/tests/dexkvupdate

@ -0,0 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvupdate\",\"key\":\"foo\",\"value\":\"$1\",\"flags\":0,\"symbol\":\"KMD\"}"

2
includes/iguana_apideclares.h

@ -40,7 +40,7 @@ TWO_STRINGS(dex,validateaddress,symbol,address);
TWO_STRINGS(dex,listunspent,symbol,address);
TWO_STRINGS_AND_TWO_DOUBLES(dex,listtransactions,symbol,address,count,skip);
TWO_STRINGS(dex,kvsearch,symbol,key);
THREE_STRINGS_AND_THREE_INTS(dex,kvupdate,symbol,key,value,flags,unused,unusedb);
//THREE_STRINGS_AND_THREE_INTS(dex,kvupdate,symbol,key,value,flags,unused,unusedb);
TWO_STRINGS(zcash,passthru,function,hex);
TWO_STRINGS(komodo,passthru,function,hex);

Loading…
Cancel
Save