danicoin/src/WalletLegacy/WalletSendTransactionContext.h

37 lines
1 KiB
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-06-25 17:21:42 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <list>
#include <vector>
2015-07-30 15:22:07 +00:00
#include "CryptoNoteCore/CryptoNoteBasic.h"
#include "IWalletLegacy.h"
#include "ITransfersContainer.h"
2014-06-25 17:21:42 +00:00
namespace CryptoNote {
struct TxDustPolicy
{
uint64_t dustThreshold;
bool addToFee;
2015-05-27 12:08:46 +00:00
CryptoNote::AccountPublicAddress addrForDust;
2014-06-25 17:21:42 +00:00
2015-05-27 12:08:46 +00:00
TxDustPolicy(uint64_t a_dust_threshold = 0, bool an_add_to_fee = true, CryptoNote::AccountPublicAddress an_addr_for_dust = CryptoNote::AccountPublicAddress())
: dustThreshold(a_dust_threshold), addToFee(an_add_to_fee), addrForDust(an_addr_for_dust) {}
2014-06-25 17:21:42 +00:00
};
struct SendTransactionContext
{
TransactionId transactionId;
2015-05-27 12:08:46 +00:00
std::vector<CryptoNote::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::outs_for_amount> outs;
2014-06-25 17:21:42 +00:00
uint64_t foundMoney;
std::list<TransactionOutputInformation> selectedTransfers;
2014-06-25 17:21:42 +00:00
TxDustPolicy dustPolicy;
uint64_t mixIn;
};
} //namespace CryptoNote