Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | CMerkleTx() { | ||||
Init(); | Init(); | ||||
} | } | ||||
explicit CMerkleTx(CTransactionRef arg) { | explicit CMerkleTx(CTransactionRef arg) { | ||||
SetTx(std::move(arg)); | SetTx(std::move(arg)); | ||||
Init(); | Init(); | ||||
} | } | ||||
/** | |||||
* Helper conversion operator to allow passing CMerkleTx where CTransaction | |||||
* is expected. | |||||
* TODO: adapt callers and remove this operator. | |||||
*/ | |||||
operator const CTransaction &() const { return *tx; } | |||||
void Init() { | void Init() { | ||||
hashBlock = uint256(); | hashBlock = uint256(); | ||||
nIndex = -1; | nIndex = -1; | ||||
} | } | ||||
void SetTx(CTransactionRef arg) { tx = std::move(arg); } | void SetTx(CTransactionRef arg) { tx = std::move(arg); } | ||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
▲ Show 20 Lines • Show All 1,060 Lines • Show Last 20 Lines |