This commit is contained in:
jl777
2018-07-31 22:13:50 -11:00
parent a1b43551c9
commit 385f6db046

View File

@@ -572,16 +572,6 @@ uint64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbi
if ( funcid == 'E' ) if ( funcid == 'E' )
{ {
if ( GetTransaction(tx.vin[0].prevout.hash,vinTx,hashBlock,false) == 0 || vinTx.vout[1].scriptPubKey != fundingPubKey || tx.vin[0].prevout.n != 0 ) if ( GetTransaction(tx.vin[0].prevout.hash,vinTx,hashBlock,false) == 0 || vinTx.vout[1].scriptPubKey != fundingPubKey || tx.vin[0].prevout.n != 0 )
{
fprintf(stderr,"entropy vin[0] != fundingPubKey\n");
continue;
}
}
entropytxid = txid;
entropyval = tx.vout[0].nValue;
first = 1;
}
else
{ {
uint8_t *ptr0,*ptr1; int32_t i; uint8_t *ptr0,*ptr1; int32_t i;
ptr0 = (uint8_t *)tx.vout[1].scriptPubKey.data(); ptr0 = (uint8_t *)tx.vout[1].scriptPubKey.data();
@@ -591,7 +581,13 @@ uint64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbi
fprintf(stderr," script vs "); fprintf(stderr," script vs ");
for (i=0; i<fundingPubKey.size(); i++) for (i=0; i<fundingPubKey.size(); i++)
fprintf(stderr,"%02x",ptr1[i]); fprintf(stderr,"%02x",ptr1[i]);
fprintf(stderr," (%c) fundingPubKey mismatch\n",funcid); fprintf(stderr," (%c) entropy vin0 fundingPubKey mismatch\n",funcid);
continue;
}
}
entropytxid = txid;
entropyval = tx.vout[0].nValue;
first = 1;
} }
} }
} //else fprintf(stderr,"%c refsbits.%llx sbits.%llx nValue %.8f\n",funcid,(long long)refsbits,(long long)sbits,(double)nValue/COIN); } //else fprintf(stderr,"%c refsbits.%llx sbits.%llx nValue %.8f\n",funcid,(long long)refsbits,(long long)sbits,(double)nValue/COIN);