Skip to content

Commit 354db07

Browse files
committed
Remove old name OP code in script and wallet
1 parent 238c2e8 commit 354db07

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

src/script/sign.cpp

+1-10
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ static bool SignStep(const BaseSignatureCreator& creator, const CScript& scriptP
101101
switch (whichTypeRet)
102102
{
103103
case TX_NONSTANDARD:
104-
case TX_NULL_DATA:
105-
case TX_NAME:
106-
return false;
104+
case TX_NULL_DATA:;
107105
case TX_PUBKEY:
108106
keyID = CPubKey(vSolutions[0]).GetID();
109107
return Sign1(keyID, creator, scriptPubKey, scriptSigRet);
@@ -245,11 +243,6 @@ static CScript CombineSignatures(const CScript& scriptPubKey, const BaseSignatur
245243
{
246244
case TX_NONSTANDARD:
247245
case TX_NULL_DATA:
248-
case TX_NAME:
249-
// Don't know anything about this, assume bigger one is correct:
250-
if (sigs1.size() >= sigs2.size())
251-
return PushAll(sigs1);
252-
return PushAll(sigs2);
253246
case TX_PUBKEY:
254247
case TX_PUBKEYHASH:
255248
// Signatures are bigger than placeholders or empty scripts:
@@ -361,8 +354,6 @@ bool Solver(const CKeyStore& keystore, const CScript& scriptPubKey, uint256 hash
361354
{
362355
case TX_NONSTANDARD:
363356
case TX_NULL_DATA:
364-
case TX_NAME:
365-
return false;
366357
case TX_PUBKEY:
367358
keyID = CPubKey(vSolutions[0]).GetID();
368359
return Sign1(keyID, keystore, hash, nHashType, scriptSigRet);

src/script/standard.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const char* GetTxnOutputType(txnouttype t)
2929
case TX_SCRIPTHASH: return "scripthash";
3030
case TX_MULTISIG: return "multisig";
3131
case TX_NULL_DATA: return "nulldata";
32-
case TX_NAME: return "name";
3332
}
3433
return NULL;
3534
}

src/script/standard.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ enum txnouttype
5050
TX_PUBKEYHASH,
5151
TX_SCRIPTHASH,
5252
TX_MULTISIG,
53-
TX_NULL_DATA,
54-
TX_NAME, //DDNS
53+
TX_NULL_DATA
5554
};
5655

5756
class CNoDestination {

src/wallet/wallet_ismine.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
6262
return ISMINE_SPENDABLE;
6363
break;
6464
case TX_SCRIPTHASH:
65-
case TX_NAME:
6665
{
6766
CScriptID scriptID = CScriptID(uint160(vSolutions[0]));
6867
CScript subscript;

0 commit comments

Comments
 (0)