Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9a489e3a19
  1. 20
      iguana/confs/BTCD_hdrs.txt
  2. 2
      iguana/iguana777.h
  3. 13
      iguana/iguana_unspents.c
  4. 1
      includes/iguana_apideclares.h

20
iguana/confs/BTCD_hdrs.txt

@ -1,4 +1,4 @@
1013511
1022511
0 0000044966f40703b516c5af180582d53f783bfd319bb045e2dc3e05ea695d46 a5d211145f8e6ba0920b2893d307c5d7c207ae0800a80955299678d1706ea8ac
500 000000000680a9a697eb71155b18a5827e0889fca28afb81fcbb46469ed7877e 79f80a8f54c6762d6408347c6dd7dfd2f8b8c191077c1d7881dfc5b7ec6a408e
1000 0000000000000cf908c887020f8970b7fe952f8b81164d83a87621dfdb581d08 3356ec4296ff2f04281492b0dedbaed80edeb6dd9170b87230ff79f6b0daade7
@ -2027,3 +2027,21 @@
1012500 1fe71ca40d446eef37d4c00d208ecf6f503e180e6f55c68dbb5fcb9e3d2eb746 bb77811625dd920f9ca60331a354187ec62026d596a06f49bf6aae63ed72da2e
1013000 332859dc2b9962c6f20ba5af9d3093ee01d1e034e8c1b2defbd65e81154a7f6e de3d066931f8e54297a44e6e2d44fed5829456960c2f5aab427c460522dba461
1013500 0e4af0f0df0ec61fa3a5af0aec7c4b4987d876be19be280f8a3046c36bb39a5b 90a3e76d69a0556ecfab5ab4ece1960353fe0040732065d2900167415b007ebe
1014000 1355b040605fa16e26640135a12f9ca9643a6ae6020b951f0150898d16b9afb2 c3c21ef46afe97464537f553d7dbff58e4da1057936c6f19709e0aeccae2867c
1014500 d4600ab85513dc5bedd837d88720fc5b336b72f89fd571eda9004ad474d50630 4dde9f778f6948bbc7ea4d4e70cce00089cffca9d9b4fa336f572e51245ddef8
1015000 0a4789562092c0fe5fc900254fa79fcae07c862aaafae8b1f0506d3b7f7b5b7e 6c24cbb320188969fbc359ca4849ff04866668bc7fa36bc07e69e47bcacc616b
1015500 9288fd9c568b760f0038e65bd5d5bbf43bd1a5cef8b4e60dffb190c60a9bcdb8 65ea761df1266f2521e4abb8bd7ffc1728cd2164c2727b79b51ba9d4413c27fa
1016000 a2c07ee8e03f8f4915f90146a752a637be7a64afdc7dca46a2213a0aad16efcb 9589c88e2b047fc4032e6f6bce7e7e6e0782340f6ea73dc82df3f5a48bc1f94b
1016500 c6d0413da86d3ca6e27ec349e8ae3cc63b38c2dbd1b1efb4621852fc55264fb5 be0dc49917392ab1c74967692a8d9539c54fd4d10c08fade661b91578dc8db3b
1017000 dedb9981b4c85b114905c98692a951e73a0620094fc1ec65b584c8cedd18f0eb 99f1b702fef879f7e98549d25c60400ae8537b2726ddf594f0088a54f3a9d230
1017500 34c9ed49379330dc3d1ca58f018ccafe3c706093b428a115a18661040767e145 0e659923c41f79cc6e9f404c36c6891e418cede3f60a0ce2c728ef4872bb0516
1018000 994e4293d08d8da39b62facd7f3fb82ef95605a27acd3ea15e0da47a0bab0f60 c3b7c650c66c351a95c41a309483074d857f80efaa805ab96858e2dd07785c2b
1018500 1dd630cd6391c44c85c78a99e80cbdd55e6f493d2d82181e103d839bac021a70 e9a7e4b7e34da24637fd54223414bb308f2cc443e33e1a39c01a728c2703b12a
1019000 f7d9073afa8d925eb6f8123fb74a00f380f937b0bcf0ff7d95f1f5a42d12b7e5 a90c0e9bb68555164d925194847ddf733da2ed71569ba1b9986b253baae37996
1019500 67c86a37a72ecc42e218914342df752279a75c6116c931d6c6d36e458b423596 3f649db3182c653a3509ca46ba019000c093c5fe6c9b41d4bc92755603af7d5d
1020000 78531e7178c89f87b6b37624e82a60a0e6d6a81c7829de6bf0d96ced1d506487 87a9136f624b5f3e1b13dcd93c2180cdbf636dc03b61d2864e278ac802dba8de
1020500 e97e743b51d2ca155fb58e64a9e5a9fd8b306d844275e6915e2a961bec41edf6 543c25df5f2d5490faf72c95d046e0bad16fd67bacc9080d01905efdf4e491e6
1021000 1c8dc672143d2b0665aaac012d8473eeffbc03593f2bff19e5cd300dc1e3c0d0 ab8255a3a8bda1b1096a78a1f9c25dcc2b2a623a830855da9602b88a4819482c
1021500 19f4073201921beed8c8dcfea23064a5279d458be19dadc71f95d1e6860d2cf2 a41e87950bb93ad5ece366ab3ceebc1730a0ec15f30f4c976410457b31bd72b8
1022000 55346f3b9ad9b8c5b6eaf87ad3e665911ef7e6e2087bc2cac9cf18bb5b47ecc7 ddf42bfcc1383e8135908d3c98f4c0ff30aeae186550b5fd30ff9636f7c18725
1022500 13b87f0b3bccd3df87720f8d1305fea62c7f99eac08518d6ca4ec73f884b48ed 7cb3979d328fbb2f49a8473d2640956e6348e45bb5b84fdfab83f546f4254ab6

2
iguana/iguana777.h

@ -576,7 +576,7 @@ struct iguana_block *iguana_blockhashset(struct iguana_info *coin,int32_t height
uint32_t iguana_syncs(struct iguana_info *coin);
void iguana_gotdata(struct iguana_info *coin,struct iguana_peer *addr,int32_t height);
int64_t iguana_balance(struct iguana_info *coin,uint64_t *creditsp,uint64_t *debitsp,int32_t *nump,uint32_t *unspents,long max,struct iguana_pkhash *P,uint32_t pkind);
//int64_t iguana_getbalance(struct iguana_info *coin,uint64_t *creditsp,uint64_t *debitsp,int32_t *nump,uint32_t *unspents,long max,struct iguana_pkhash *P,uint32_t pkind);
int32_t iguana_queueblock(struct iguana_info *coin,int32_t height,bits256 hash2,int32_t priority);
int32_t iguana_updatewaiting(struct iguana_info *coin,int32_t starti,int32_t max);

13
iguana/iguana_unspents.c

@ -1286,4 +1286,15 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp)
//printf("VALIDATE.%d %u\n",bp->bundleheight,bp->validated);
}
return(0);
}
}
#include "../includes/iguana_apidefs.h"
#include "../includes/iguana_apideclares.h"
TWOSTRINGS_AND_INT(iguana,balance,activecoin,address,height)
{
cJSON *retjson = cJSON_CreateObject();
return(jprint(retjson,1));
}
#include "../includes/iguana_apiundefs.h"

1
includes/iguana_apideclares.h

@ -143,6 +143,7 @@ TWO_STRINGS(iguana,persistent,activecoin,ipaddr);
TWO_STRINGS(iguana,removenode,activecoin,ipaddr);
TWO_STRINGS(iguana,oneshot,activecoin,ipaddr);
TWO_STRINGS(iguana,nodestatus,activecoin,ipaddr);
TWOSTRINGS_AND_INT(iguana,balance,activecoin,address,height);
ZERO_ARGS(bitcoinrpc,getinfo);
ZERO_ARGS(bitcoinrpc,getbestblockhash);

Loading…
Cancel
Save