Skip to content

Commit

Permalink
Deprecate reward_cancelled in favor of rewardable_bytes (#375)
Browse files Browse the repository at this point in the history
* Deprecate reward_cancelled in favor of rewardable_bytes

* fix formatting

* Update ValidDataTransferSession to contain rewardable_bytes
  • Loading branch information
bbalser authored Nov 6, 2023
1 parent d94ed4b commit 5ab7f9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/service/packet_verifier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ message valid_data_transfer_session {
// Timestamp in millis of the last ingest file we found a data transfer
// session in
uint64 last_timestamp = 7;
uint64 rewardable_bytes = 8;
}
3 changes: 2 additions & 1 deletion src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ message data_transfer_session_req_v1 {
/// it is securely created and signed by hotspot
data_transfer_event data_transfer_usage = 1;
/// this decision is done by OCS like system
bool reward_cancelled = 2;
bool reward_cancelled = 2 [ deprecated = true ];
/// Online Charging System is part of teleco stack which is able
/// to make a decision about data transfer and reward
bytes pub_key = 3;
bytes signature = 4;
uint64 rewardable_bytes = 5;
}

message data_transfer_event {
Expand Down

0 comments on commit 5ab7f9b

Please sign in to comment.