Browse Source

Return early for unknown txs and log unconfirmed

pull/102/head
Duke Leto 4 years ago
parent
commit
848b78f848
  1. 2
      src/komodo_bitcoind.h

2
src/komodo_bitcoind.h

@ -71,6 +71,7 @@ int tx_height( const uint256 &hash ){
uint256 hashBlock;
if (!GetTransaction(hash, tx, hashBlock, true)) {
fprintf(stderr,"tx hash %s does not exist!\n", hash.ToString().c_str() );
return nHeight;
}
BlockMap::const_iterator it = mapBlockIndex.find(hashBlock);
@ -79,6 +80,7 @@ int tx_height( const uint256 &hash ){
//fprintf(stderr,"blockHash %s height %d\n",hashBlock.ToString().c_str(), nHeight);
} else {
// Unconfirmed xtns
fprintf(stderr,"tx %s is unconfirmed\n", hash.ToString().c_str() );
//fprintf(stderr,"block hash %s does not exist!\n", hashBlock.ToString().c_str() );
}
return nHeight;

Loading…
Cancel
Save