change constructors

This commit is contained in:
Alfredo Garcia 2020-03-12 09:39:19 -03:00
parent 11de2d33e7
commit 3dfcf027e3
1 changed files with 6 additions and 19 deletions

View File

@ -31,12 +31,8 @@ public:
CAmount amount;
std::string memo;
SendManyRecipient(std::string address_, CAmount amount_, std::string memo_ = "")
{
address = address_;
amount = amount_;
memo = memo_;
}
SendManyRecipient(std::string address_, CAmount amount_, std::string memo_ = "") :
address(address_), amount(amount_), memo(memo_) {}
};
class SendManyInputUTXO {
@ -46,13 +42,8 @@ public:
CAmount amount;
bool coinbase;
SendManyInputUTXO(uint256 txid_, int vout_, CAmount amount_, bool coinbase_)
{
txid = txid_;
vout = vout_;
amount = amount_;
coinbase = coinbase_;
}
SendManyInputUTXO(uint256 txid_, int vout_, CAmount amount_, bool coinbase_) :
txid(txid_), vout(vout_), amount(amount_), coinbase(coinbase_) {}
};
class SendManyInputJSOP {
@ -61,12 +52,8 @@ public:
SproutNote note;
CAmount amount;
SendManyInputJSOP(JSOutPoint point_, SproutNote note_, CAmount amount_)
{
point = point_;
note = note_;
amount = amount_;
}
SendManyInputJSOP(JSOutPoint point_, SproutNote note_, CAmount amount_) :
point(point_), note(note_), amount(amount_) {}
};
// Package of info which is passed to perform_joinsplit methods.