Skip to content

Commit

Permalink
Replace: CScript::mscore_getHex() by inline function
Browse files Browse the repository at this point in the history
There was exactly one use of CScript::mscore_getHex(), so it was replaced
to reduce the impact on Bitcoin Core.
  • Loading branch information
dexX7 committed Dec 29, 2014
1 parent 2abfd28 commit 1f78743
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/mastercore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ uint64_t txFee = 0;
int nRequired;

// CScript is a std::vector
if (msc_debug_script) file_log("scriptPubKey: %s\n", wtx.vout[i].scriptPubKey.mscore_getHex().c_str());
if (msc_debug_script) file_log("scriptPubKey: %s\n", HexStr(wtx.vout[i].scriptPubKey));

if (ExtractDestinations(wtx.vout[i].scriptPubKey, type, vDest, nRequired))
{
Expand Down
1 change: 0 additions & 1 deletion src/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,6 @@ class CScript : public std::vector<unsigned char>
}

std::string mscore_parse(std::vector<std::string>&msc_parsed, bool bNoBypass = true) const;
std::string mscore_getHex() const { return HexStr(begin(), end(), false).c_str(); }
};

/** Compact serializer for scripts.
Expand Down

0 comments on commit 1f78743

Please sign in to comment.