diff --git a/contracts/eosio.system/delegate_bandwidth.cpp b/contracts/eosio.system/delegate_bandwidth.cpp index c235d5c8e9d..9e2eedfa4bf 100644 --- a/contracts/eosio.system/delegate_bandwidth.cpp +++ b/contracts/eosio.system/delegate_bandwidth.cpp @@ -47,7 +47,7 @@ namespace eosiosystem { /** * Every user 'from' has a scope/table that uses every receipient 'to' as the primary key. */ - struct delegated_bandwidth { + struct self_delegated_bandwidth { account_name from; account_name to; asset net_weight; @@ -56,7 +56,7 @@ namespace eosiosystem { uint64_t primary_key()const { return to; } // explicit serialization macro is not necessary, used here only to improve compilation time - EOSLIB_SERIALIZE( delegated_bandwidth, (from)(to)(net_weight)(cpu_weight) ) + EOSLIB_SERIALIZE( self_delegated_bandwidth, (from)(to)(net_weight)(cpu_weight) ) }; @@ -77,7 +77,7 @@ namespace eosiosystem { * facilitates simpler API for per-user queries */ typedef eosio::multi_index< N(userres), user_resources> user_resources_table; - typedef eosio::multi_index< N(delband), delegated_bandwidth> del_bandwidth_table; + typedef eosio::multi_index< N(delband), self_delegated_bandwidth> del_bandwidth_table; typedef eosio::multi_index< N(refunds), refund_request> refunds_table; diff --git a/contracts/eosio.system/eosio.system.abi b/contracts/eosio.system/eosio.system.abi index b0a60f087e6..f3ba1350e9e 100644 --- a/contracts/eosio.system/eosio.system.abi +++ b/contracts/eosio.system/eosio.system.abi @@ -391,7 +391,7 @@ ] }, { - "name": "delegated_bandwidth", + "name": "self_delegated_bandwidth", "base": "", "fields": [ { @@ -1123,7 +1123,7 @@ }, { "name": "delband", - "type": "delegated_bandwidth", + "type": "self_delegated_bandwidth", "index_type": "i64", "key_names": [ "to"