| 521 | }; |
| 522 | |
| 523 | static bool findSighashFlags(int& flags, const std::string& flagStr) |
| 524 | { |
| 525 | flags = 0; |
| 526 | |
| 527 | for (unsigned int i = 0; i < N_SIGHASH_OPTS; i++) { |
| 528 | if (flagStr == sighashOptions[i].flagStr) { |
| 529 | flags = sighashOptions[i].flags; |
| 530 | return true; |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | return false; |
| 535 | } |
| 536 | |
| 537 | static CAmount AmountFromValue(const UniValue& value) |
| 538 | { |