Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7e4d87f051
  1. 2
      basilisk/basilisk.h
  2. 2
      basilisk/basilisk_swap.c
  3. 2
      iguana/iguana_msg.c
  4. 3
      includes/iguana_defines.h

2
basilisk/basilisk.h

@ -23,7 +23,7 @@
#define BASILISK_MAXFANOUT 64 #define BASILISK_MAXFANOUT 64
#define BASILISK_DEFAULTDIFF 0x1effffff #define BASILISK_DEFAULTDIFF 0x1effffff
#define BASILISK_MAXRELAYS 64 #define BASILISK_MAXRELAYS 64
#define BASILISK_DEXDURATION 300 #define BASILISK_DEXDURATION 180
#define BASILISK_MAXFUTUREBLOCK 60 #define BASILISK_MAXFUTUREBLOCK 60
//#define BASILISK_MAXBLOCKLAG 600 //#define BASILISK_MAXBLOCKLAG 600

2
basilisk/basilisk_swap.c

@ -271,6 +271,8 @@ int32_t basilisk_rawtx_spendscript(struct supernet_info *myinfo,struct basilisk_
} }
if ( (txobj= bitcoin_data2json(rawtx->coin,&rawtx->signedtxid,&rawtx->msgtx,rawtx->extraspace,sizeof(rawtx->extraspace),rawtx->txbytes,rawtx->datalen)) != 0 ) if ( (txobj= bitcoin_data2json(rawtx->coin,&rawtx->signedtxid,&rawtx->msgtx,rawtx->extraspace,sizeof(rawtx->extraspace),rawtx->txbytes,rawtx->datalen)) != 0 )
{ {
rawtx->actualtxid = rawtx->signedtxid;
char str[65]; printf("got txid.%s\n",bits256_str(str,rawtx->signedtxid));
rawtx->locktime = rawtx->msgtx.lock_time; rawtx->locktime = rawtx->msgtx.lock_time;
if ( (vouts= jarray(&n,txobj,"vout")) != 0 && v < n ) if ( (vouts= jarray(&n,txobj,"vout")) != 0 && v < n )
{ {

2
iguana/iguana_msg.c

@ -311,7 +311,7 @@ int32_t iguana_rwmsgalert(struct iguana_info *coin,int32_t rwflag,uint8_t *seria
void iguana_gotversion(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,struct iguana_msgversion *vers) void iguana_gotversion(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,struct iguana_msgversion *vers)
{ {
uint8_t serialized[sizeof(struct iguana_msghdr)]; char *retstr; uint8_t serialized[sizeof(struct iguana_msghdr)]; char *retstr;
//printf("gotversion from %s: starting height.%d services.%llx proto.%d (%s)\n",addr->ipaddr,vers->nStartingHeight,(long long)vers->nServices,vers->nVersion,vers->strSubVer); printf("gotversion from %s: starting height.%d services.%llx proto.%d (%s)\n",addr->ipaddr,vers->nStartingHeight,(long long)vers->nServices,vers->nVersion,vers->strSubVer);
if ( 0 && strncmp(vers->strSubVer,"/iguana",strlen("/iguana")) == 0 ) if ( 0 && strncmp(vers->strSubVer,"/iguana",strlen("/iguana")) == 0 )
{ {
addr->supernet = 1, addr->basilisk = 0; addr->supernet = 1, addr->basilisk = 0;

3
includes/iguana_defines.h

@ -134,7 +134,6 @@ extern int32_t IGUANA_NUMHELPERS;
#define NODE_GETUTXO (1 << 1) #define NODE_GETUTXO (1 << 1)
#define NODE_BLOOM (1 << 2) #define NODE_BLOOM (1 << 2)
#define PROTOCOL_VERSION 70002
#define INIT_PROTO_VERSION 209 // initial proto version, to be increased after version/verack negotiation #define INIT_PROTO_VERSION 209 // initial proto version, to be increased after version/verack negotiation
#define GETHEADERS_VERSION 31800 // In this version, 'getheaders' was introduced. #define GETHEADERS_VERSION 31800 // In this version, 'getheaders' was introduced.
#define MIN_PEER_PROTO_VERSION GETHEADERS_VERSION // disconnect from peers older than this proto version #define MIN_PEER_PROTO_VERSION GETHEADERS_VERSION // disconnect from peers older than this proto version
@ -148,6 +147,8 @@ extern int32_t IGUANA_NUMHELPERS;
#define MEMPOOL_GD_VERSION 60002 // "mempool" command, enhanced "getdata" behavior starts with this version #define MEMPOOL_GD_VERSION 60002 // "mempool" command, enhanced "getdata" behavior starts with this version
#define NO_BLOOM_VERSION 70011 // "filter*" disabled without NODE_BLOOM after and including this version #define NO_BLOOM_VERSION 70011 // "filter*" disabled without NODE_BLOOM after and including this version
#define PROTOCOL_HEADERS_VERSION 70012 #define PROTOCOL_HEADERS_VERSION 70012
//#define PROTOCOL_VERSION 70002
#define PROTOCOL_VERSION PROTOCOL_HEADERS_VERSION
#define MSG_TX 1 #define MSG_TX 1
#define MSG_BLOCK 2 #define MSG_BLOCK 2

Loading…
Cancel
Save