mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
BIP144: Serialization, hashes, relay (sender side)
Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
This commit is contained in:
@@ -231,3 +231,15 @@ bool CScript::IsPushOnly() const
|
||||
{
|
||||
return this->IsPushOnly(begin());
|
||||
}
|
||||
|
||||
std::string CScriptWitness::ToString() const
|
||||
{
|
||||
std::string ret = "CScriptWitness(";
|
||||
for (unsigned int i = 0; i < stack.size(); i++) {
|
||||
if (i) {
|
||||
ret += ", ";
|
||||
}
|
||||
ret += HexStr(stack[i]);
|
||||
}
|
||||
return ret + ")";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user