Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,409 Lines • ▼ Show 20 Lines | ~WalletRescanReserver() { | ||||
std::lock_guard<std::mutex> lock(m_wallet->mutexScanning); | std::lock_guard<std::mutex> lock(m_wallet->mutexScanning); | ||||
if (m_could_reserve) { | if (m_could_reserve) { | ||||
m_wallet->fScanningWallet = false; | m_wallet->fScanningWallet = false; | ||||
} | } | ||||
} | } | ||||
}; | }; | ||||
// Calculate the size of the transaction assuming all signatures are max size | // Calculate the size of the transaction assuming all signatures are max size | ||||
// Use DummySignatureCreator, which inserts 72 byte signatures everywhere. | // Use DummySignatureCreator, which inserts 71 byte signatures everywhere. | ||||
// NOTE: this requires that all inputs must be in mapWallet (eg the tx should | // NOTE: this requires that all inputs must be in mapWallet (eg the tx should | ||||
// be IsAllFromMe). | // be IsAllFromMe). | ||||
int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, | int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, | ||||
const CWallet *wallet); | const CWallet *wallet); | ||||
int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, | int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, | ||||
const CWallet *wallet, | const CWallet *wallet, | ||||
const std::vector<CTxOut> &txouts); | const std::vector<CTxOut> &txouts); | ||||
#endif // BITCOIN_WALLET_WALLET_H | #endif // BITCOIN_WALLET_WALLET_H |