Skip to content

Commit b6ec00c

Browse files
committed
add todos for #381
1 parent f345f6a commit b6ec00c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

sentry/src/routes/channel.rs

+5
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ pub async fn insert_events<A: Adapter + 'static>(
201201
.remove("events")
202202
.ok_or_else(|| ResponseError::BadRequest("invalid request".to_string()))?;
203203

204+
//
205+
// TODO #381: AIP#61 Spender Aggregator should be called
206+
//
207+
208+
204209
app.event_aggregator
205210
.record(app, &channel_id, session, auth, events)
206211
.await?;

validator_worker/src/core/events.rs

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ use primitives::{BalancesMap, BigNum, Channel, DomainError};
66

77
use crate::core::fees::get_balances_after_fees_tree;
88

9+
10+
//
11+
// TODO #381: AIP#61 Remove the fees and use the new Spender Aggregates
12+
//
913
pub(crate) fn merge_aggrs(
1014
accounting: &Accounting,
1115
aggregates: &[EventAggregate],

validator_worker/src/producer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ pub async fn tick<A: Adapter + 'static>(
3535
balances: Default::default(),
3636
},
3737
};
38+
39+
//
40+
// TODO #381: AIP#61 Merge all Spender Aggregates and create a new Accounting
41+
//
3842

3943
let aggrs = iface
4044
.get_event_aggregates(accounting.last_event_aggregate)

0 commit comments

Comments
 (0)