Skip to content

Commit 9b4f6ec

Browse files
committed
Revert "reject creation of aliases with valid syscoin addresses as a name, and reject any aliasactivate transactions in checktransaction"
This reverts commit 10dcb68.
1 parent ffba47f commit 9b4f6ec

File tree

4 files changed

+0
-86
lines changed

4 files changed

+0
-86
lines changed

.cproject

Lines changed: 0 additions & 52 deletions
This file was deleted.

.project

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/alias.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,10 +1347,6 @@ Value aliasnew(const Array& params, bool fHelp) {
13471347
if (vchName.size() > 255)
13481348
throw runtime_error("alias name > 255 bytes!\n");
13491349

1350-
CBitcoinAddress myAddress = CBitcoinAddress(stringFromVch(vchName));
1351-
if(myAddress.IsValid())
1352-
throw runtime_error("alias name cannot be a syscoin address!\n");
1353-
13541350
CWalletTx wtx;
13551351
wtx.nVersion = SYSCOIN_TX_VERSION;
13561352

src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,6 @@ bool CTransaction::CheckTransaction(CValidationState &state) const {
690690
ret[iter] = error("aliasactivate tx with rand too big");
691691
if (vvch[2].size() > MAX_VALUE_LENGTH)
692692
ret[iter] = error("aliasactivate tx with value too long");
693-
CBitcoinAddress myAddress = CBitcoinAddress(stringFromVch(vvch[0]));
694-
if(myAddress.IsValid())
695-
ret[iter] = error("alias name cannot be a syscoin address");
696693
break;
697694
case OP_ALIAS_UPDATE:
698695
if (vvch[1].size() > MAX_VALUE_LENGTH)

0 commit comments

Comments
 (0)