forked from lthn/blockchain
fixed extra_alias_info handling in tx_extra_handler and rpc_tx_payload_handler (+payer and receiver)
This commit is contained in:
parent
b56e7311e2
commit
dee448fe51
1 changed files with 21 additions and 1 deletions
|
|
@ -421,13 +421,16 @@ namespace currency
|
|||
rei.m_attachment_info = ai;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool operator()(const extra_alias_entry& ae) const
|
||||
{
|
||||
ENSURE_ONETIME(was_alias, "alias");
|
||||
rei.m_alias = ae;
|
||||
return true;
|
||||
}
|
||||
bool operator()(const extra_alias_entry_old& ae) const
|
||||
{
|
||||
return operator()(static_cast<const extra_alias_entry&>(ae));
|
||||
}
|
||||
bool operator()(const extra_user_data& ud) const
|
||||
{
|
||||
ENSURE_ONETIME(was_userdata, "userdata");
|
||||
|
|
@ -2181,6 +2184,10 @@ namespace currency
|
|||
|
||||
return true;
|
||||
}
|
||||
bool operator()(const extra_alias_entry_old& ee)
|
||||
{
|
||||
return operator()(static_cast<const extra_alias_entry&>(ee));
|
||||
}
|
||||
bool operator()(const extra_user_data& ee)
|
||||
{
|
||||
tv.type = "user_data";
|
||||
|
|
@ -2214,7 +2221,13 @@ namespace currency
|
|||
|
||||
return true;
|
||||
}
|
||||
bool operator()(const tx_payer_old&)
|
||||
{
|
||||
tv.type = "payer_old";
|
||||
tv.short_view = "(encrypted)";
|
||||
|
||||
return true;
|
||||
}
|
||||
bool operator()(const tx_receiver& ee)
|
||||
{
|
||||
//const tx_payer& ee = boost::get<tx_payer>(extra);
|
||||
|
|
@ -2223,6 +2236,13 @@ namespace currency
|
|||
|
||||
return true;
|
||||
}
|
||||
bool operator()(const tx_receiver_old& ee)
|
||||
{
|
||||
tv.type = "receiver_old";
|
||||
tv.short_view = "(encrypted)";
|
||||
|
||||
return true;
|
||||
}
|
||||
bool operator()(const tx_derivation_hint& ee)
|
||||
{
|
||||
tv.type = "derivation_hint";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue