Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | public: | ||||
std::string ToString() const; | std::string ToString() const; | ||||
inline CInputCoin GetInputCoin() const { | inline CInputCoin GetInputCoin() const { | ||||
return CInputCoin(tx->tx, i, nInputBytes); | return CInputCoin(tx->tx, i, nInputBytes); | ||||
} | } | ||||
}; | }; | ||||
/** | |||||
* Private key that was serialized by an old wallet (only used for | |||||
* deserialization) */ | |||||
struct OldKey { | |||||
CPrivKey vchPrivKey; | |||||
ADD_SERIALIZE_METHODS; | |||||
template <typename Stream, typename Operation> | |||||
inline void SerializationOp(Stream &s, Operation ser_action) { | |||||
// no longer used by the wallet, thus dropped after deserialization: | |||||
int64_t nTimeCreated; | |||||
int64_t nTimeExpires; | |||||
std::string strComment; | |||||
int nVersion = s.GetVersion(); | |||||
if (!(s.GetType() & SER_GETHASH)) { | |||||
READWRITE(nVersion); | |||||
} | |||||
READWRITE(vchPrivKey); | |||||
READWRITE(nTimeCreated); | |||||
READWRITE(nTimeExpires); | |||||
READWRITE(LIMITED_STRING(strComment, 65536)); | |||||
} | |||||
}; | |||||
struct CoinSelectionParams { | struct CoinSelectionParams { | ||||
bool use_bnb = true; | bool use_bnb = true; | ||||
size_t change_output_size = 0; | size_t change_output_size = 0; | ||||
size_t change_spend_size = 0; | size_t change_spend_size = 0; | ||||
CFeeRate effective_fee = CFeeRate(Amount::zero()); | CFeeRate effective_fee = CFeeRate(Amount::zero()); | ||||
size_t tx_noinputs_size = 0; | size_t tx_noinputs_size = 0; | ||||
CoinSelectionParams(bool use_bnb_, size_t change_output_size_, | CoinSelectionParams(bool use_bnb_, size_t change_output_size_, | ||||
▲ Show 20 Lines • Show All 974 Lines • Show Last 20 Lines |