| 575 | }; |
| 576 | |
| 577 | static bool findSighashFlags(int& flags, const std::string& flagStr) |
| 578 | { |
| 579 | flags = 0; |
| 580 | |
| 581 | for (unsigned int i = 0; i < N_SIGHASH_OPTS; i++) { |
| 582 | if (flagStr == sighashOptions[i].flagStr) { |
| 583 | flags = sighashOptions[i].flags; |
| 584 | return true; |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | return false; |
| 589 | } |
| 590 | |
| 591 | static CAmount AmountFromValue(const UniValue& value) |
| 592 | { |