fix
This commit is contained in:
@@ -1778,7 +1778,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
|
|||||||
char Raddress[64];
|
char Raddress[64];
|
||||||
pubkey2addr((char *)Raddress,(uint8_t *)NOTARY_PUBKEY33);
|
pubkey2addr((char *)Raddress,(uint8_t *)NOTARY_PUBKEY33);
|
||||||
NotaryAddress.assign(Raddress);
|
NotaryAddress.assign(Raddress);
|
||||||
fprintf(stderr, "1 notary address.%s\n", NotaryAddress.c_str());
|
fprintf(stderr, "notary address set to %s\n", NotaryAddress.c_str());
|
||||||
}
|
}
|
||||||
if (fExisted || IsMine(tx) || IsFromMe(tx) || sproutNoteData.size() > 0 || saplingNoteData.size() > 0)
|
if (fExisted || IsMine(tx) || IsFromMe(tx) || sproutNoteData.size() > 0 || saplingNoteData.size() > 0)
|
||||||
{
|
{
|
||||||
@@ -1791,14 +1791,12 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pbl
|
|||||||
uint256 hash; CTransaction txin; CTxDestination address;
|
uint256 hash; CTransaction txin; CTxDestination address;
|
||||||
if ( GetTransaction(tx.vin[i].prevout.hash,txin,hash,false) && ExtractDestination(txin.vout[tx.vin[i].prevout.n].scriptPubKey, address) )
|
if ( GetTransaction(tx.vin[i].prevout.hash,txin,hash,false) && ExtractDestination(txin.vout[tx.vin[i].prevout.n].scriptPubKey, address) )
|
||||||
{
|
{
|
||||||
fprintf(stderr, "2 notary address.%s address.%s\n", NotaryAddress.c_str(), CBitcoinAddress(address).ToString().c_str());
|
|
||||||
if ( CBitcoinAddress(address).ToString() == NotaryAddress )
|
if ( CBitcoinAddress(address).ToString() == NotaryAddress )
|
||||||
numvinIsOurs++;
|
numvinIsOurs++;
|
||||||
if ( !WHITELIST_ADDRESS.empty() && CBitcoinAddress(address).ToString() == WHITELIST_ADDRESS )
|
if ( !WHITELIST_ADDRESS.empty() && CBitcoinAddress(address).ToString() == WHITELIST_ADDRESS )
|
||||||
numvinIsWhiteList++;
|
numvinIsWhiteList++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stderr, "3 notary address.%s\n", NotaryAddress.c_str());
|
|
||||||
// Now we know if it was a tx sent to us, that wasnt from ourself or the whitelist address if set..
|
// Now we know if it was a tx sent to us, that wasnt from ourself or the whitelist address if set..
|
||||||
if ( numvinIsOurs != 0 )
|
if ( numvinIsOurs != 0 )
|
||||||
fprintf(stderr, "We sent from address: %s vins: %d\n",NotaryAddress.c_str(),numvinIsOurs);
|
fprintf(stderr, "We sent from address: %s vins: %d\n",NotaryAddress.c_str(),numvinIsOurs);
|
||||||
|
|||||||
Reference in New Issue
Block a user