MCPcopy Create free account
hub / github.com/ElementsProject/elements / findSighashFlags

Function findSighashFlags

src/bitcoin-tx.cpp:577–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575};
576
577static 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
591static CAmount AmountFromValue(const UniValue& value)
592{

Callers 1

MutateTxSignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected