mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Get RPC command account_message_set working.
This commit is contained in:
@@ -122,7 +122,7 @@ Transaction::pointer Transaction::setAccountSet(
|
||||
const uint128& uEmailHash,
|
||||
bool bUnsetWalletLocator,
|
||||
const uint256& uWalletLocator,
|
||||
const std::vector<unsigned char>& vucPubKey)
|
||||
const NewcoinAddress& naMessagePublic)
|
||||
{
|
||||
mTransaction->setITFieldU32(sfFlags,
|
||||
(bUnsetEmailHash ? tfUnsetEmailHash : 0)
|
||||
@@ -134,8 +134,8 @@ Transaction::pointer Transaction::setAccountSet(
|
||||
if (!bUnsetWalletLocator && !!uWalletLocator)
|
||||
mTransaction->setITFieldH256(sfWalletLocator, uWalletLocator);
|
||||
|
||||
if (!vucPubKey.empty())
|
||||
mTransaction->setITFieldVL(sfMessageKey, vucPubKey);
|
||||
if (naMessagePublic.isValid())
|
||||
mTransaction->setITFieldVL(sfMessageKey, naMessagePublic.getAccountPublic());
|
||||
|
||||
sign(naPrivateKey);
|
||||
|
||||
@@ -152,11 +152,11 @@ Transaction::pointer Transaction::sharedAccountSet(
|
||||
const uint128& uEmailHash,
|
||||
bool bUnsetWalletLocator,
|
||||
const uint256& uWalletLocator,
|
||||
const std::vector<unsigned char>& vucPubKey)
|
||||
const NewcoinAddress& naMessagePublic)
|
||||
{
|
||||
pointer tResult = boost::make_shared<Transaction>(ttACCOUNT_SET, naPublicKey, naSourceAccount, uSeq, saFee, uSourceTag);
|
||||
|
||||
return tResult->setAccountSet(naPrivateKey, bUnsetEmailHash, uEmailHash, bUnsetWalletLocator, uWalletLocator, vucPubKey);
|
||||
return tResult->setAccountSet(naPrivateKey, bUnsetEmailHash, uEmailHash, bUnsetWalletLocator, uWalletLocator, naMessagePublic);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user