@@ -32,17 +32,17 @@ namespace eoscostarica {
32
32
check ( (MINVAL <= development && development <= MAXVAL), " Error development value out of range" );
33
33
check ( (MINVAL <= community && community <= MAXVAL), " Error community value out of range" );
34
34
35
- bool isEden = scope.value == eden_scope.value ;
36
- name stats_ram_payer = isEden ? _self : user;
35
+ bool is_eden = scope.value == eden_scope.value ;
36
+ name stats_ram_payer = is_eden ? _self : user;
37
37
38
38
check ( is_blockproducer (bp), " votes are allowed only for registered block producers" );
39
39
40
40
name proxy_name = get_proxy (user);
41
41
if (proxy_name.length ()) {
42
42
check (is_active_proxy (proxy_name), " votes are allowed only for active proxies" );
43
- if (!isEden ) check ( MIN_VOTERS <= get_voters (proxy_name), " delegated proxy does not have enough voters" );
43
+ if (!is_eden ) check ( MIN_VOTERS <= get_voters (proxy_name), " delegated proxy does not have enough voters" );
44
44
} else {
45
- if (!isEden ) check ( MIN_VOTERS <= get_voters (user), " account does not have enough voters" );
45
+ if (!is_eden ) check ( MIN_VOTERS <= get_voters (user), " account does not have enough voters" );
46
46
}
47
47
48
48
ratings_table_v2 _ratings (_self, scope.value );
@@ -75,7 +75,7 @@ namespace eoscostarica {
75
75
development);
76
76
77
77
if (!comment.empty ()) {
78
- SEND_INLINE_ACTION (*this , logcomment, { {get_self (), name (" active" )} }, { rating_id, comment });
78
+ SEND_INLINE_ACTION (*this , logcomment, { {get_self (), name (" active" )} }, { rating_id, comment, is_eden });
79
79
}
80
80
81
81
} else {
@@ -115,7 +115,7 @@ namespace eoscostarica {
115
115
&bp_average);
116
116
117
117
if (!comment.empty ()) {
118
- SEND_INLINE_ACTION (*this , logcomment, { {get_self (), name (" active" )} }, { existing_rating->id , comment });
118
+ SEND_INLINE_ACTION (*this , logcomment, { {get_self (), name (" active" )} }, { existing_rating->id , comment, is_eden });
119
119
}
120
120
}
121
121
}
@@ -503,7 +503,7 @@ namespace eoscostarica {
503
503
cfg.set (c, c.owner );
504
504
}
505
505
506
- void rateproducer::logcomment (uint64_t rating_id, std::string comment) {
506
+ void rateproducer::logcomment (uint64_t rating_id, std::string comment, bool is_eden ) {
507
507
require_auth (_self);
508
508
check ( comment.length () <= 500 , " comment must be less or equal than 500 characters" );
509
509
}
0 commit comments