mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Final non-breaking changes to serializer classes. Extra set helper functions.
This commit is contained in:
@@ -16,7 +16,8 @@ SerializedTransaction::SerializedTransaction(TransactionType type)
|
||||
|
||||
SerializedTransaction::SerializedTransaction(SerializerIterator& sit, int length)
|
||||
{
|
||||
if(length==0) length=sit.get32();
|
||||
if(length==-1) length=sit.getBytesLeft();
|
||||
else if(length==0) length=sit.get32();
|
||||
if( (length<TransactionMinLen) || (length>TransactionMaxLen) )
|
||||
throw(std::runtime_error("Transaction length invalid"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user