| 561 | } |
| 562 | |
| 563 | void SignTransaction(CMutableTransaction& mtx, const SigningProvider* keystore, const std::map<COutPoint, Coin>& coins, const UniValue& hashType, UniValue& result, const CBlockIndex* active_chain_tip) |
| 564 | { |
| 565 | int nHashType = ParseSighashString(hashType); |
| 566 | |
| 567 | // Script verification errors |
| 568 | std::map<int, bilingual_str> input_errors; |
| 569 | |
| 570 | bool immature_pegin = ValidateTransactionPeginInputs(mtx, active_chain_tip, input_errors); |
| 571 | bool complete = SignTransaction(mtx, keystore, coins, nHashType, Params().HashGenesisBlock(), input_errors); |
| 572 | SignTransactionResultToJSON(mtx, complete, coins, input_errors, immature_pegin, result); |
| 573 | } |
| 574 | |
| 575 | void SignTransactionResultToJSON(CMutableTransaction& mtx, bool complete, const std::map<COutPoint, Coin>& coins, const std::map<int, bilingual_str>& input_errors, bool immature_pegin, UniValue& result) |
| 576 | { |
no test coverage detected