mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Ability to compare serialized types.
This commit is contained in:
@@ -77,6 +77,16 @@ int SerializedTransaction::getTransaction(Serializer& s, bool include_length) co
|
||||
return l;
|
||||
}
|
||||
|
||||
bool SerializedTransaction::isEquivalent(const SerializedType& t) const
|
||||
{ // Signatures are not compared
|
||||
const SerializedTransaction* v=dynamic_cast<const SerializedTransaction*>(&t);
|
||||
if(!v) return false;
|
||||
if(type != v->type) return false;
|
||||
if(mMiddleTxn != v->mMiddleTxn) return false;
|
||||
if(mInnerTxn != v->mInnerTxn) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
uint256 SerializedTransaction::getSigningHash() const
|
||||
{
|
||||
Serializer s;
|
||||
|
||||
Reference in New Issue
Block a user