mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Small changes to support new transaction serialization code.
This commit is contained in:
@@ -18,7 +18,7 @@ Transaction::Transaction(const SerializedTransaction::pointer& sit, bool bValida
|
||||
{
|
||||
try
|
||||
{
|
||||
mFromPubKey.setAccountPublic(mTransaction->peekSigningPubKey());
|
||||
mFromPubKey.setAccountPublic(mTransaction->getSigningPubKey());
|
||||
mTransactionID = mTransaction->getTransactionID();
|
||||
mAccountFrom = mTransaction->getSourceAccount();
|
||||
}
|
||||
@@ -92,12 +92,7 @@ bool Transaction::sign(const NewcoinAddress& naAccountPrivate)
|
||||
Log(lsWARNING) << "No private key for signing";
|
||||
bResult = false;
|
||||
}
|
||||
else if (!getSTransaction()->sign(naAccountPrivate))
|
||||
{
|
||||
Log(lsWARNING) << "Failed to make signature";
|
||||
assert(false);
|
||||
bResult = false;
|
||||
}
|
||||
getSTransaction()->sign(naAccountPrivate);
|
||||
|
||||
if (bResult)
|
||||
{
|
||||
|
||||
@@ -105,7 +105,7 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
||||
NewcoinAddress naSigningPubKey;
|
||||
|
||||
if (tesSUCCESS == terResult)
|
||||
naSigningPubKey = NewcoinAddress::createAccountPublic(txn.peekSigningPubKey());
|
||||
naSigningPubKey = NewcoinAddress::createAccountPublic(txn.setSigningPubKey());
|
||||
|
||||
// Consistency: really signed.
|
||||
if ((tesSUCCESS == terResult) && !isSetBit(params, tapNO_CHECK_SIGN) && !txn.checkSign(naSigningPubKey))
|
||||
|
||||
Reference in New Issue
Block a user