forked from lthn/blockchain
tx pool: allow incoming txs to register alias to address, that already has associated alias
This commit is contained in:
parent
7f7b99ed7e
commit
ed7597e6b9
1 changed files with 10 additions and 10 deletions
|
|
@ -389,16 +389,16 @@ namespace currency
|
|||
return false; // stop handling
|
||||
}
|
||||
|
||||
std::string prev_alias = m_blockchain.get_alias_by_address(eai.m_address);
|
||||
if (!is_in_block && !eai.m_sign.size() &&
|
||||
prev_alias.size())
|
||||
{
|
||||
LOG_PRINT_L0("Address \"" << get_account_address_as_str(eai.m_address)
|
||||
<< "\" already registered with \""<< prev_alias
|
||||
<< "\" alias in blockchain (new alias: \"" << eai.m_alias << "\"), transaction rejected");
|
||||
r = false;
|
||||
return false; // stop handling
|
||||
}
|
||||
//std::string prev_alias = m_blockchain.get_alias_by_address(eai.m_address);
|
||||
//if (!is_in_block && !eai.m_sign.size() &&
|
||||
// prev_alias.size())
|
||||
//{
|
||||
// LOG_PRINT_L0("Address \"" << get_account_address_as_str(eai.m_address)
|
||||
// << "\" already registered with \""<< prev_alias
|
||||
// << "\" alias in blockchain (new alias: \"" << eai.m_alias << "\"), transaction rejected");
|
||||
// r = false;
|
||||
// return false; // stop handling
|
||||
//}
|
||||
|
||||
if (!is_in_block)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue