From 61b59007d757925a966ce1042ccb33970459722b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 19 Nov 2016 13:07:32 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 3 ++- src/komodo_globals.h | 2 +- src/komodo_notary.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index cdf398631..b5b0e3dbd 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -561,6 +561,7 @@ void komodo_passport_iteration() { static long lastpos[33]; FILE *fp; int32_t baseid,refid; struct komodo_state *sp; char fname[512],*base,symbol[16],dest[16]; + printf("PASSPORT\n"); if ( ASSETCHAINS_SYMBOL[0] == 0 ) refid = 32; else refid = komodo_baseid(ASSETCHAINS_SYMBOL); @@ -587,7 +588,7 @@ void komodo_passport_iteration() } else printf("fname.(%s) cant open\n",fname); } } - } + } else printf("passport disabled for refid.%d (%s)\n",refid,ASSETCHAINS_SYMBOL); } #endif diff --git a/src/komodo_globals.h b/src/komodo_globals.h index db4b55be4..b63b59c07 100644 --- a/src/komodo_globals.h +++ b/src/komodo_globals.h @@ -35,7 +35,7 @@ struct komodo_state KOMODO_STATES[33]; int COINBASE_MATURITY = 100; -int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND; +int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND,KOMODO_EXTERNAL_NOTARIES; std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES; uint8_t NOTARY_PUBKEY33[33]; diff --git a/src/komodo_notary.h b/src/komodo_notary.h index b362aa017..f8ae0fe39 100644 --- a/src/komodo_notary.h +++ b/src/komodo_notary.h @@ -268,6 +268,7 @@ void komodo_assetchain_pubkeys(char *jsonstr) { komodo_init(-1); komodo_notarysinit(0,pubkeys,n); + KOMODO_EXTERNAL_NOTARIES = 1; //printf("initialize pubkeys[%d]\n",n); } else fprintf(stderr,"komodo_assetchain_pubkeys i.%d vs n.%d\n",i,n); } else fprintf(stderr,"assetchain pubkeys n.%d\n",n);