Allow CInputCoin to also be constructed with COutPoint and CTxOut
This commit is contained in:
1 parent
419afa9341
commit
a00eb388e8
1 file changed
+12
@@ -37,6 +37,18 @@ public:
|
|||||||
m_input_bytes = input_bytes;
|
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;
|
COutPoint outpoint;
|
||||||
CTxOut txout;
|
CTxOut txout;
|
||||||
CAmount effective_value;
|
CAmount effective_value;
|
||||||
|
|||||||
Reference in new issue
Block a user