mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Merge remote branch 'upstream/master'
Conflicts: src/bitcoinrpc.cpp
This commit is contained in:
@@ -66,9 +66,8 @@ void WalletModel::update()
|
||||
|
||||
bool WalletModel::validateAddress(const QString &address)
|
||||
{
|
||||
uint160 hash160 = 0;
|
||||
|
||||
return AddressToHash160(address.toStdString(), hash160);
|
||||
CBitcoinAddress addressParsed(address.toStdString());
|
||||
return addressParsed.IsValid();
|
||||
}
|
||||
|
||||
WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipient> &recipients)
|
||||
@@ -87,7 +86,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList<SendCoinsRecipie
|
||||
{
|
||||
uint160 hash160 = 0;
|
||||
|
||||
if(!AddressToHash160(rcp.address.toUtf8().constData(), hash160))
|
||||
if(!validateAddress(rcp.address))
|
||||
{
|
||||
return InvalidAddress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user