This commit is contained in:
@@ -158,6 +158,11 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
|||||||
{
|
{
|
||||||
if ( KOMODO_NSPV == 0 )
|
if ( KOMODO_NSPV == 0 )
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
char addr[64];
|
||||||
|
Getscriptaddress(addr,vintx.vout[utxovout].scriptPubKey);
|
||||||
|
fprintf(stderr,"vout[%d] %.8f -> %s\n",utxovout,dstr(vintx.vout[utxovout].nValue),addr);
|
||||||
|
}
|
||||||
if ( SignTx(mtx,i,vintx.vout[utxovout].nValue,vintx.vout[utxovout].scriptPubKey) == 0 )
|
if ( SignTx(mtx,i,vintx.vout[utxovout].nValue,vintx.vout[utxovout].scriptPubKey) == 0 )
|
||||||
fprintf(stderr,"signing error for vini.%d of %llx\n",i,(long long)vinimask);
|
fprintf(stderr,"signing error for vini.%d of %llx\n",i,(long long)vinimask);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ int32_t NSPV_validatehdrs(struct NSPV_ntzsproofresp *ptr)
|
|||||||
int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int32_t height,CTransaction &tx,int64_t extradata,uint32_t tiptime,int64_t &rewardsum)
|
int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int32_t height,CTransaction &tx,int64_t extradata,uint32_t tiptime,int64_t &rewardsum)
|
||||||
{
|
{
|
||||||
struct NSPV_txproof *ptr; int32_t i,offset,retval = 0; int64_t rewards = 0; uint32_t nLockTime; std::vector<uint8_t> proof;
|
struct NSPV_txproof *ptr; int32_t i,offset,retval = 0; int64_t rewards = 0; uint32_t nLockTime; std::vector<uint8_t> proof;
|
||||||
if ( (ptr= NSPV_txproof_find(txid)) == 0 || ptr->txprooflen != 0 )
|
if ( (ptr= NSPV_txproof_find(txid)) == 0 )
|
||||||
{
|
{
|
||||||
NSPV_txproof(vout,txid,height);
|
NSPV_txproof(vout,txid,height);
|
||||||
ptr = &NSPV_txproofresult;
|
ptr = &NSPV_txproofresult;
|
||||||
@@ -86,7 +86,7 @@ int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int
|
|||||||
}
|
}
|
||||||
char coinaddr[64];
|
char coinaddr[64];
|
||||||
Getscriptaddress(coinaddr,tx.vout[0].scriptPubKey);
|
Getscriptaddress(coinaddr,tx.vout[0].scriptPubKey);
|
||||||
fprintf(stderr,"%s txid.%s vs hash.%s\n",coinaddr,txid.GetHex().c_str(),tx.GetHash().GetHex().c_str());
|
//fprintf(stderr,"%s txid.%s vs hash.%s\n",coinaddr,txid.GetHex().c_str(),tx.GetHash().GetHex().c_str());
|
||||||
|
|
||||||
if ( skipvalidation == 0 )
|
if ( skipvalidation == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user