Add support for creating AccountSet transactions.

This commit is contained in:
Arthur Britto
2012-06-02 14:25:08 -07:00
parent 3332bf474f
commit da20c80697
2 changed files with 73 additions and 15 deletions

View File

@@ -46,6 +46,14 @@ private:
SerializedTransaction::pointer mTransaction;
Transaction::pointer setAccountSet(
const NewcoinAddress& naPrivateKey,
bool bUnsetEmailHash,
const uint128& uEmailHash,
bool bUnsetWalletLocator,
const uint256& uWalletLocator,
const std::vector<unsigned char>& vucPubKey);
Transaction::pointer setClaim(
const NewcoinAddress& naPrivateKey,
const std::vector<unsigned char>& vucGenerator,
@@ -96,6 +104,19 @@ public:
const STAmount& saFee, // Transaction fee.
uint32 uSourceTag); // User call back value.
// Change account settings.
static Transaction::pointer sharedAccountSet(
const NewcoinAddress& naPublicKey, const NewcoinAddress& naPrivateKey,
const NewcoinAddress& naSourceAccount,
uint32 uSeq,
const STAmount& saFee,
uint32 uSourceTag,
bool bUnsetEmailHash,
const uint128& uEmailHash,
bool bUnsetWalletLocator,
const uint256& uWalletLocator,
const std::vector<unsigned char>& vucPubKey);
// Claim a wallet.
static Transaction::pointer sharedClaim(
const NewcoinAddress& naPublicKey, const NewcoinAddress& naPrivateKey,