diff options
| author | Pieter Wuille <[email protected]> | 2014-09-11 19:15:29 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-16 19:14:32 +0200 |
| commit | 0be990ba34110184c8a5a2c04094311dab5cd84c (patch) | |
| tree | 2eb24931c396ae0dc0c57fee42f345c581bd58c6 /src/bitcoin-tx.cpp | |
| parent | Merge pull request #4928 (diff) | |
| download | discoin-0be990ba34110184c8a5a2c04094311dab5cd84c.tar.xz discoin-0be990ba34110184c8a5a2c04094311dab5cd84c.zip | |
Move CTxDestination from script/script to script/standard
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 354d6ba41..6445042f9 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -224,9 +224,8 @@ static void MutateTxAddOutAddr(CMutableTransaction& tx, const string& strInput) if (!addr.IsValid()) throw runtime_error("invalid TX output address"); - // build standard output script via SetDestination() - CScript scriptPubKey; - scriptPubKey.SetDestination(addr.Get()); + // build standard output script via GetScriptForDestination() + CScript scriptPubKey = GetScriptForDestination(addr.Get()); // construct TxOut, append to transaction output list CTxOut txout(value, scriptPubKey); |