mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Allow CInputCoin to also be constructed with COutPoint and CTxOut
This commit is contained in:
parent
419afa9341
commit
a00eb388e8
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue