Allow CInputCoin to also be constructed with COutPoint and CTxOut

This commit is contained in:
Andrew Chow 2019-10-18 14:44:58 -04:00
parent 419afa9341
commit a00eb388e8

View File

@ -37,6 +37,18 @@ public:
m_input_bytes = input_bytes;
}
CInputCoin(const COutPoint& outpoint_in, const CTxOut& txout_in)
{
outpoint = outpoint_in;
txout = txout_in;
effective_value = txout.nValue;
}
CInputCoin(const COutPoint& outpoint_in, const CTxOut& txout_in, int input_bytes) : CInputCoin(outpoint_in, txout_in)
{
m_input_bytes = input_bytes;
}
COutPoint outpoint;
CTxOut txout;
CAmount effective_value;