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