1
0
Fork 0
forked from lthn/blockchain

wallet: minor fixes

This commit is contained in:
sowle 2023-10-25 21:32:47 +02:00
parent f9ca8f52c5
commit e2da6a1f51
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 3 additions and 16 deletions

View file

@ -954,21 +954,6 @@ namespace currency
END_BOOST_SERIALIZATION()
};
//TODO: @val, should we call it something like schnorr_sig ?
struct simple_sig
{
crypto::signature s;
BEGIN_SERIALIZE_OBJECT()
FIELD(s)
END_SERIALIZE()
BEGIN_BOOST_SERIALIZATION()
BOOST_SERIALIZE(s)
END_BOOST_SERIALIZATION()
};
struct void_sig
{
//TODO:

View file

@ -3478,7 +3478,9 @@ bool wallet2::get_asset_id_info(const crypto::public_key& asset_id, currency::as
{
if (asset_id == currency::native_coin_asset_id)
{
return CURRENCY_NAME_ABR;
asset_info = currency::get_native_coin_asset_descriptor();
whitelist_ = true;
return true;
}
//check if asset is whitelisted or customly added
whitelist_ = false;