Test
This commit is contained in:
@@ -440,6 +440,7 @@ int32_t NSPV_newnotariescount(CTransaction tx,uint8_t elected[64][33])
|
|||||||
{
|
{
|
||||||
pubkeys[j] = buf2pk(elected[j]);
|
pubkeys[j] = buf2pk(elected[j]);
|
||||||
scriptPubKeys[j] = (CScript() << ParseHex(HexStr(pubkeys[j])) << OP_CHECKSIG);
|
scriptPubKeys[j] = (CScript() << ParseHex(HexStr(pubkeys[j])) << OP_CHECKSIG);
|
||||||
|
fprintf(stderr,"%d %s\n",j,HexStr(pubkeys[j]));
|
||||||
}
|
}
|
||||||
fprintf(stderr,"txid %s\n",tx.GetHash().GetHex().c_str());
|
fprintf(stderr,"txid %s\n",tx.GetHash().GetHex().c_str());
|
||||||
for (vini=0; vini<tx.vin.size(); vini++)
|
for (vini=0; vini<tx.vin.size(); vini++)
|
||||||
@@ -451,9 +452,9 @@ int32_t NSPV_newnotariescount(CTransaction tx,uint8_t elected[64][33])
|
|||||||
if ( tx.vin[vini].scriptSig.GetPushedData(pc,vData) != 0 )
|
if ( tx.vin[vini].scriptSig.GetPushedData(pc,vData) != 0 )
|
||||||
{
|
{
|
||||||
vData[0].pop_back();
|
vData[0].pop_back();
|
||||||
for (j=0; j<vData[0].size(); j++)
|
//for (j=0; j<vData[0].size(); j++)
|
||||||
fprintf(stderr,"%02x",vData[0][j]);
|
// fprintf(stderr,"%02x",vData[0][j]);
|
||||||
fprintf(stderr," vData[0]\n");
|
//fprintf(stderr," vData[0]\n");
|
||||||
for (j=0; j<64; j++)
|
for (j=0; j<64; j++)
|
||||||
{
|
{
|
||||||
Getscriptaddress(coinaddr,scriptPubKeys[j]);
|
Getscriptaddress(coinaddr,scriptPubKeys[j]);
|
||||||
|
|||||||
Reference in New Issue
Block a user