|
@ -667,7 +667,7 @@ return(clonestr("{\"error\":\"basilisk disabled\"}")); |
|
|
} |
|
|
} |
|
|
else if ( dexreq.func == 'S' ) |
|
|
else if ( dexreq.func == 'S' ) |
|
|
{ |
|
|
{ |
|
|
retstr = dpow_sendrawtransaction(myinfo,coin,(char *)&dexp->packet[datalen]); |
|
|
retstr = dpow_sendrawtransaction(myinfo,coin,(char *)&dexp->packet[datalen],0); |
|
|
} |
|
|
} |
|
|
else if ( dexreq.func == '*' ) |
|
|
else if ( dexreq.func == '*' ) |
|
|
{ |
|
|
{ |
|
@ -1999,6 +1999,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
bp->recvmask |= (1LL << senderind) | (1LL << bp->myind); |
|
|
bp->recvmask |= (1LL << senderind) | (1LL << bp->myind); |
|
|
bp->bestmask = dpow_maskmin(bp->recvmask,bp,&bp->bestk); |
|
|
bp->bestmask = dpow_maskmin(bp->recvmask,bp,&bp->bestk); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
dpow_bestconsensus(dp,bp); |
|
|
dpow_bestconsensus(dp,bp); |
|
|
if ( bp->bestk >= 0 ) |
|
|
if ( bp->bestk >= 0 ) |
|
|
bp->notaries[bp->myind].bestk = bp->bestk; |
|
|
bp->notaries[bp->myind].bestk = bp->bestk; |
|
@ -2065,6 +2066,7 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
} |
|
|
} |
|
|
if ( 1 && strcmp("KMD",dp->symbol) == 0 && bp->myind == 0 ) |
|
|
if ( 1 && strcmp("KMD",dp->symbol) == 0 && bp->myind == 0 ) |
|
|
printf("%s recv.%llx best.(%d %llx) m.%d p.%d:%d b.%d state.%d minsigs.%d pend.%d\n",dp->symbol,(long long)bp->recvmask,bp->bestk,(long long)bp->bestmask,matches,paxmatches,paxbestmatches,bestmatches,bp->state,bp->minsigs,bp->pendingbestk); |
|
|
printf("%s recv.%llx best.(%d %llx) m.%d p.%d:%d b.%d state.%d minsigs.%d pend.%d\n",dp->symbol,(long long)bp->recvmask,bp->bestk,(long long)bp->bestmask,matches,paxmatches,paxbestmatches,bestmatches,bp->state,bp->minsigs,bp->pendingbestk); |
|
|
|
|
|
|
|
|
if ( bestmatches == bp->minsigs && paxbestmatches == bp->minsigs && bp->bestk >= 0 && bp->bestmask != 0 ) |
|
|
if ( bestmatches == bp->minsigs && paxbestmatches == bp->minsigs && bp->bestk >= 0 && bp->bestmask != 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( bp->pendingbestk < 0 )//bp->pendingbestk != bp->bestk || bp->pendingbestmask != bp->bestmask )
|
|
|
if ( bp->pendingbestk < 0 )//bp->pendingbestk != bp->bestk || bp->pendingbestmask != bp->bestmask )
|
|
|