fixed a HF4-specific bug in is_pos_coinbase() and is_coinbase()

This commit is contained in:
sowle 2024-01-17 13:04:26 +01:00
parent 929d741916
commit 7aaee46d4a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -4041,11 +4041,7 @@ namespace currency
//-----------------------------------------------------------------------
bool is_pos_coinbase(const transaction& tx)
{
bool pos = false;
if (!is_coinbase(tx, pos) || !pos)
return false;
return true;
return is_pos_miner_tx(tx);
}
//-----------------------------------------------------------------------
bool is_coinbase(const transaction& tx, bool& pos_coinbase)
@ -4053,7 +4049,7 @@ namespace currency
if (!is_coinbase(tx))
return false;
pos_coinbase = (tx.vin.size() == 2 && tx.vin[1].type() == typeid(txin_to_key));
pos_coinbase = is_pos_coinbase(tx);
return true;
}
//-----------------------------------------------------------------------