mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
.
This commit is contained in:
@@ -41,8 +41,8 @@ TER RegularKeySetTransactor::doApply()
|
||||
|
||||
mTxnAccount->setFlag(lsfPasswordSpent);
|
||||
|
||||
uint160 uAuthKeyID=mTxn.getFieldAccount160(sfAuthorizedKey);
|
||||
mTxnAccount->setFieldAccount(sfAuthorizedKey, uAuthKeyID);
|
||||
uint160 uAuthKeyID=mTxn.getFieldAccount160(sfRegularKey);
|
||||
mTxnAccount->setFieldAccount(sfRegularKey, uAuthKeyID);
|
||||
|
||||
|
||||
std::cerr << "doRegularKeySet<" << std::endl;
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
//
|
||||
// XXX Make sure all fields are recognized in transactions.
|
||||
//
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/tuple/tuple_comparison.hpp>
|
||||
#include <queue>
|
||||
|
||||
#include "TransactionEngine.h"
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Config.h"
|
||||
#include "Contract.h"
|
||||
#include "Interpreter.h"
|
||||
#include "Log.h"
|
||||
#include "RippleCalc.h"
|
||||
#include "TransactionFormats.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define RIPPLE_PATHS_MAX 3
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// vim:ts=4
|
||||
@@ -86,7 +86,7 @@ TER Transactor::checkSig()
|
||||
{
|
||||
// Consistency: Check signature
|
||||
// Verify the transaction's signing public key is the key authorized for signing.
|
||||
if (mHasAuthKey && mSigningPubKey.getAccountID() == mTxnAccount->getFieldAccount(sfAuthorizedKey).getAccountID())
|
||||
if (mHasAuthKey && mSigningPubKey.getAccountID() == mTxnAccount->getFieldAccount(sfRegularKey).getAccountID())
|
||||
{
|
||||
// Authorized to continue.
|
||||
nothing();
|
||||
@@ -201,7 +201,7 @@ TER Transactor::apply()
|
||||
else
|
||||
{
|
||||
mSourceBalance = mTxnAccount->getFieldAmount(sfBalance);
|
||||
mHasAuthKey = mTxnAccount->isFieldPresent(sfAuthorizedKey);
|
||||
mHasAuthKey = mTxnAccount->isFieldPresent(sfRegularKey);
|
||||
}
|
||||
|
||||
terResult=payFee();
|
||||
|
||||
@@ -6,7 +6,7 @@ TER WalletAddTransactor::doApply()
|
||||
|
||||
const std::vector<unsigned char> vucPubKey = mTxn.getFieldVL(sfPublicKey);
|
||||
const std::vector<unsigned char> vucSignature = mTxn.getFieldVL(sfSignature);
|
||||
const uint160 uAuthKeyID = mTxn.getFieldAccount160(sfAuthorizedKey);
|
||||
const uint160 uAuthKeyID = mTxn.getFieldAccount160(sfRegularKey);
|
||||
const RippleAddress naMasterPubKey = RippleAddress::createAccountPublic(vucPubKey);
|
||||
const uint160 uDstAccountID = naMasterPubKey.getAccountID();
|
||||
|
||||
@@ -50,7 +50,7 @@ TER WalletAddTransactor::doApply()
|
||||
sleDst->setFieldAccount(sfAccount, uDstAccountID);
|
||||
sleDst->setFieldU32(sfSequence, 1);
|
||||
sleDst->setFieldAmount(sfBalance, saAmount);
|
||||
sleDst->setFieldAccount(sfAuthorizedKey, uAuthKeyID);
|
||||
sleDst->setFieldAccount(sfRegularKey, uAuthKeyID);
|
||||
|
||||
std::cerr << "WalletAdd<" << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user