Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | struct SendCoinsReturn { | ||||
SendCoinsReturn(StatusCode _status = OK, | SendCoinsReturn(StatusCode _status = OK, | ||||
QString _reasonCommitFailed = "") | QString _reasonCommitFailed = "") | ||||
: status(_status), reasonCommitFailed(_reasonCommitFailed) {} | : status(_status), reasonCommitFailed(_reasonCommitFailed) {} | ||||
StatusCode status; | StatusCode status; | ||||
QString reasonCommitFailed; | QString reasonCommitFailed; | ||||
}; | }; | ||||
// prepare transaction for getting txfee before sending coins | // prepare transaction for getting txfee before sending coins | ||||
SendCoinsReturn | SendCoinsReturn prepareTransaction(WalletModelTransaction &transaction, | ||||
prepareTransaction(WalletModelTransaction &transaction, | const CCoinControl &coinControl); | ||||
const CCoinControl *coinControl = nullptr); | |||||
// Send coins to a list of recipients | // Send coins to a list of recipients | ||||
SendCoinsReturn sendCoins(WalletModelTransaction &transaction); | SendCoinsReturn sendCoins(WalletModelTransaction &transaction); | ||||
// Wallet encryption | // Wallet encryption | ||||
bool setWalletEncrypted(bool encrypted, const SecureString &passphrase); | bool setWalletEncrypted(bool encrypted, const SecureString &passphrase); | ||||
// Passphrase only needed when unlocking | // Passphrase only needed when unlocking | ||||
bool setWalletLocked(bool locked, | bool setWalletLocked(bool locked, | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |