|
17 | 17 |
|
18 | 18 | typedef std::vector<unsigned char> valtype; |
19 | 19 |
|
20 | | -MutableTransactionSignatureCreator::MutableTransactionSignatureCreator(const CMutableTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, int nHashTypeIn) |
21 | | - : txTo(txToIn), nIn(nInIn), nHashType(nHashTypeIn), amount(amountIn), checker(txTo, nIn, amountIn, MissingDataBehavior::FAIL), |
| 20 | +MutableTransactionSignatureCreator::MutableTransactionSignatureCreator(const CMutableTransaction* tx, unsigned int input_idx, const CAmount& amount, int hash_type) |
| 21 | + : txTo{tx}, nIn{input_idx}, nHashType{hash_type}, amount{amount}, checker{txTo, nIn, amount, MissingDataBehavior::FAIL}, |
22 | 22 | m_txdata(nullptr) |
23 | 23 | { |
24 | 24 | } |
25 | 25 |
|
26 | | -MutableTransactionSignatureCreator::MutableTransactionSignatureCreator(const CMutableTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, const PrecomputedTransactionData* txdata, int nHashTypeIn) |
27 | | - : txTo(txToIn), nIn(nInIn), nHashType(nHashTypeIn), amount(amountIn), |
28 | | - checker(txdata ? MutableTransactionSignatureChecker(txTo, nIn, amount, *txdata, MissingDataBehavior::FAIL) : |
29 | | - MutableTransactionSignatureChecker(txTo, nIn, amount, MissingDataBehavior::FAIL)), |
| 26 | +MutableTransactionSignatureCreator::MutableTransactionSignatureCreator(const CMutableTransaction* tx, unsigned int input_idx, const CAmount& amount, const PrecomputedTransactionData* txdata, int hash_type) |
| 27 | + : txTo{tx}, nIn{input_idx}, nHashType{hash_type}, amount{amount}, |
| 28 | + checker{txdata ? MutableTransactionSignatureChecker{txTo, nIn, amount, *txdata, MissingDataBehavior::FAIL} : |
| 29 | + MutableTransactionSignatureChecker{txTo, nIn, amount, MissingDataBehavior::FAIL}}, |
30 | 30 | m_txdata(txdata) |
31 | 31 | { |
32 | 32 | } |
|
0 commit comments