|
|
@ -1869,16 +1869,24 @@ void dpow_notarize_update(struct supernet_info *myinfo,struct dpow_info *dp,stru |
|
|
|
return; |
|
|
|
if ( bp->isratify == 0 && bp->state != 0xffffffff && senderind >= 0 && senderind < bp->numnotaries && bits256_nonz(srcutxo) != 0 && bits256_nonz(destutxo) != 0 ) |
|
|
|
{ |
|
|
|
if ( bits256_nonz(srcutxo) != 0 ) |
|
|
|
if ( bp->myind != senderind ) |
|
|
|
{ |
|
|
|
bp->notaries[senderind].src.prev_hash = srcutxo; |
|
|
|
bp->notaries[senderind].src.prev_vout = srcvout; |
|
|
|
//char str[65]; printf("%s senderind.%d <- %s/v%d\n",dp->symbol,senderind,bits256_str(str,srcutxo),srcvout);
|
|
|
|
if ( bits256_nonz(srcutxo) != 0 ) |
|
|
|
{ |
|
|
|
bp->notaries[senderind].src.prev_hash = srcutxo; |
|
|
|
bp->notaries[senderind].src.prev_vout = srcvout; |
|
|
|
//char str[65]; printf("%s senderind.%d <- %s/v%d\n",dp->symbol,senderind,bits256_str(str,srcutxo),srcvout);
|
|
|
|
} |
|
|
|
if ( bits256_nonz(destutxo) != 0 ) |
|
|
|
{ |
|
|
|
bp->notaries[senderind].dest.prev_hash = destutxo; |
|
|
|
bp->notaries[senderind].dest.prev_vout = destvout; |
|
|
|
} |
|
|
|
} |
|
|
|
if ( bits256_nonz(destutxo) != 0 ) |
|
|
|
else |
|
|
|
{ |
|
|
|
bp->notaries[senderind].dest.prev_hash = destutxo; |
|
|
|
bp->notaries[senderind].dest.prev_vout = destvout; |
|
|
|
bp->notaries[bp->myind].src.prev_hash = bp->mysrcutxo; |
|
|
|
bp->notaries[bp->myind].dest.prev_hash = bp->mydestutxo; |
|
|
|
} |
|
|
|
if ( bestmask != 0 ) |
|
|
|
bp->notaries[senderind].bestmask = bestmask; |
|
|
|