| 1208 | } // anon namespace |
| 1209 | |
| 1210 | PrecomputedTransactionData::PrecomputedTransactionData(const CTransaction& txTo) |
| 1211 | { |
| 1212 | // Cache is calculated only for transactions with witness |
| 1213 | if (txTo.HasWitness()) { |
| 1214 | hashPrevouts = GetPrevoutHash(txTo); |
| 1215 | hashSequence = GetSequenceHash(txTo); |
| 1216 | hashOutputs = GetOutputsHash(txTo); |
| 1217 | ready = true; |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | uint256 SignatureHash(const CScript& scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, const CAmount& amount, SigVersion sigversion, const PrecomputedTransactionData* cache) |
| 1222 | { |
nothing calls this directly
no test coverage detected