jl777 8 years ago
parent
commit
819619af2e
  1. 32
      basilisk/basilisk.c
  2. 2
      iguana/notaries.h
  3. BIN
      iguana/tests/.addnotarys_7776.swp

32
basilisk/basilisk.c

@ -903,45 +903,21 @@ int32_t basilisk_issued_purge(struct supernet_info *myinfo,int32_t timepad)
return(n); return(n);
} }
void basilisk_iteration(struct supernet_info *myinfo)
{
struct iguana_info *notary; uint32_t now;
now = (uint32_t)time(NULL);
notary = iguana_coinfind("NOTARY");
if ( myinfo->NOTARY.RELAYID >= 0 )
{
basilisk_ping_send(myinfo,notary);
/*if ( notary != 0 )
{
struct iguana_info *virt,*tmpcoin; int32_t maxmillis;
maxmillis = (1000 / (myinfo->allcoins_numvirts + 1)) + 1;
HASH_ITER(hh,myinfo->allcoins,virt,tmpcoin)
{
if ( virt->started != 0 && virt->active != 0 && virt->virtualchain != 0 )
gecko_iteration(myinfo,notary,virt,maxmillis), flag++;
}
}*/
}
/*else
{
if ( myinfo->expiration != 0 && (myinfo->IAMLP != 0 || myinfo->DEXactive > now) )
basilisk_requests_poll(myinfo);
}*/
}
void basilisks_loop(void *arg) void basilisks_loop(void *arg)
{ {
static uint32_t counter; static uint32_t counter;
struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct iguana_info *notary; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli;
iter = 0; iter = 0;
notary = iguana_coinfind("NOTARY");
while ( 1 ) while ( 1 )
{ {
startmilli = OS_milliseconds(); startmilli = OS_milliseconds();
basilisk_issued_purge(myinfo,600000); basilisk_issued_purge(myinfo,600000);
basilisk_iteration(myinfo);
basilisk_p2pQ_process(myinfo,777); basilisk_p2pQ_process(myinfo,777);
if ( myinfo->NOTARY.RELAYID >= 0 ) if ( myinfo->NOTARY.RELAYID >= 0 )
{ {
if ( notary != 0 )
basilisk_ping_send(myinfo,notary);
if ( (counter++ % 10) == 0 ) if ( (counter++ % 10) == 0 )
iguana_dPoWupdate(myinfo); iguana_dPoWupdate(myinfo);
endmilli = startmilli + 500; endmilli = startmilli + 500;

2
iguana/notaries.h

@ -20,10 +20,10 @@ char *Notaries[][2] =
{ {
{ "jl777_testA", "03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828" }, { "jl777_testA", "03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828" },
{ "jl777_testB", "02ebfc784a4ba768aad88d44d1045d240d47b26e248cafaf1c5169a42d7a61d344" }, { "jl777_testB", "02ebfc784a4ba768aad88d44d1045d240d47b26e248cafaf1c5169a42d7a61d344" },
{ "jl777_testC", "020e0f6fe6e0fcdcac541eb728d6fe538a12adff20412b3c8a7fa892b223a47c2f" },
//{ "locomb_EU", "025c6d26649b9d397e63323d96db42a9d3caad82e1d6076970efe5056c00c0779b" }, //{ "locomb_EU", "025c6d26649b9d397e63323d96db42a9d3caad82e1d6076970efe5056c00c0779b" },
//{ "movecrypto_EU", "021ab53bc6cf2c46b8a5456759f9d608966eff87384c2b52c0ac4cc8dd51e9cc42" }, //{ "movecrypto_EU", "021ab53bc6cf2c46b8a5456759f9d608966eff87384c2b52c0ac4cc8dd51e9cc42" },
//{ "pondsea_SH", "02209073bc0943451498de57f802650311b1f12aa6deffcd893da198a544c04f36" }, //{ "pondsea_SH", "02209073bc0943451498de57f802650311b1f12aa6deffcd893da198a544c04f36" },
//{ "jl777_testC", "020e0f6fe6e0fcdcac541eb728d6fe538a12adff20412b3c8a7fa892b223a47c2f" },
/*{ "badass_EU", "02fef1aedce576f1b9b01c60dae2dc6530fd8f13e984b324bb12002b5f3933c397" }, /*{ "badass_EU", "02fef1aedce576f1b9b01c60dae2dc6530fd8f13e984b324bb12002b5f3933c397" },
{ "crackers_NA", "029e1c01131974f4cd3f564cc0c00eb87a0f9721043fbc1ca60f9bd0a1f73f64a1" }, { "crackers_NA", "029e1c01131974f4cd3f564cc0c00eb87a0f9721043fbc1ca60f9bd0a1f73f64a1" },
{ "proto_EU", "03681ffdf17c8f4f0008cefb7fa0779c5e888339cdf932f0974483787a4d6747c1" }, { "proto_EU", "03681ffdf17c8f4f0008cefb7fa0779c5e888339cdf932f0974483787a4d6747c1" },

BIN
iguana/tests/.addnotarys_7776.swp

Binary file not shown.
Loading…
Cancel
Save