Skip to content

Commit

Permalink
Merge pull request EOSIO#31 from EOSBIXIN/dev-1.0.2
Browse files Browse the repository at this point in the history
finish the delegated_bandwidth->self_delegated_bandwidth
  • Loading branch information
jchung00 authored Jun 9, 2018
2 parents 1c560d2 + 63f6a87 commit 2d44208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/eosio.system/delegate_bandwidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) )

};

Expand All @@ -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;


Expand Down
4 changes: 2 additions & 2 deletions contracts/eosio.system/eosio.system.abi
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
]
},
{
"name": "delegated_bandwidth",
"name": "self_delegated_bandwidth",
"base": "",
"fields": [
{
Expand Down Expand Up @@ -1123,7 +1123,7 @@
},
{
"name": "delband",
"type": "delegated_bandwidth",
"type": "self_delegated_bandwidth",
"index_type": "i64",
"key_names": [
"to"
Expand Down

0 comments on commit 2d44208

Please sign in to comment.