Move CTxDestination from script/script to script/standard
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "init.h"
|
||||
#include "main.h"
|
||||
#include "protocol.h"
|
||||
#include "script/script.h"
|
||||
#include "script/standard.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifdef WIN32
|
||||
@@ -222,7 +224,7 @@ QString formatBitcoinURI(const SendCoinsRecipient &info)
|
||||
bool isDust(const QString& address, qint64 amount)
|
||||
{
|
||||
CTxDestination dest = CBitcoinAddress(address.toStdString()).Get();
|
||||
CScript script; script.SetDestination(dest);
|
||||
CScript script = GetScriptForDestination(dest);
|
||||
CTxOut txOut(amount, script);
|
||||
return txOut.IsDust(::minRelayTxFee);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user