mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-26 21:45:50 +00:00
Remove conditionals for featureMultiSign enabled 27Jun2016
This commit is contained in:
committed by
Manoj doshi
parent
c48be14f4f
commit
6e4945c56b
@@ -177,24 +177,16 @@ void STTx::sign (
|
||||
tid_ = getHash(HashPrefix::transactionID);
|
||||
}
|
||||
|
||||
std::pair<bool, std::string> STTx::checkSign(bool allowMultiSign) const
|
||||
std::pair<bool, std::string> STTx::checkSign() const
|
||||
{
|
||||
std::pair<bool, std::string> ret {false, ""};
|
||||
try
|
||||
{
|
||||
if (allowMultiSign)
|
||||
{
|
||||
// Determine whether we're single- or multi-signing by looking
|
||||
// at the SigningPubKey. It it's empty we must be
|
||||
// multi-signing. Otherwise we're single-signing.
|
||||
Blob const& signingPubKey = getFieldVL (sfSigningPubKey);
|
||||
ret = signingPubKey.empty () ?
|
||||
checkMultiSign () : checkSingleSign ();
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = checkSingleSign ();
|
||||
}
|
||||
// Determine whether we're single- or multi-signing by looking
|
||||
// at the SigningPubKey. It it's empty we must be
|
||||
// multi-signing. Otherwise we're single-signing.
|
||||
Blob const& signingPubKey = getFieldVL (sfSigningPubKey);
|
||||
ret = signingPubKey.empty () ? checkMultiSign () : checkSingleSign ();
|
||||
}
|
||||
catch (std::exception const&)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user