mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix mishandling of signing account.
Fix failure to set transaction type.
This commit is contained in:
@@ -15,11 +15,14 @@ public:
|
||||
typedef boost::shared_ptr<SerializedTransaction> pointer;
|
||||
|
||||
protected:
|
||||
TransactionType type;
|
||||
uint160 mSigningAccount;
|
||||
TransactionType mType;
|
||||
STVariableLength mSignature;
|
||||
STObject mMiddleTxn, mInnerTxn;
|
||||
TransactionFormat* mFormat;
|
||||
|
||||
void updateSigningAccount();
|
||||
|
||||
public:
|
||||
SerializedTransaction(SerializerIterator& sit, int length); // -1=all remaining, 0=get from sit
|
||||
SerializedTransaction(TransactionType type);
|
||||
@@ -42,12 +45,13 @@ public:
|
||||
// middle transaction functions
|
||||
uint32 getVersion() const;
|
||||
void setVersion(uint32);
|
||||
TransactionType getTxnType() const { return type; }
|
||||
TransactionType getTxnType() const { return mType; }
|
||||
uint64 getTransactionFee() const;
|
||||
void setTransactionFee(uint64);
|
||||
std::vector<unsigned char> getSigningAccount() const;
|
||||
const std::vector<unsigned char>& peekSigningAccount() const;
|
||||
std::vector<unsigned char>& peekSigningAccount();
|
||||
uint160 getSigningAccount() const;
|
||||
std::vector<unsigned char> getRawSigningAccount() const;
|
||||
const std::vector<unsigned char>& peekRawSigningAccount() const;
|
||||
std::vector<unsigned char>& peekRawSigningAccount();
|
||||
void setSigningAccount(const std::vector<unsigned char>& s);
|
||||
std::string getTransactionType() const { return mFormat->t_name; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user