Skip to content

Commit 3f35872

Browse files
committed
proto: Extend PerformanceService with relative power/hashrate target
1 parent bf68f81 commit 3f35872

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* `UpdateAutoUpgradeConfigResponse` - response message containing enabled status and next execution timestamp
1616
* `GetAutoUpgradeStatusRequest` - request message to get AutoUpgrade status
1717
* `GetAutoUpgradeStatusResponse` - response message containing enabled status, schedule, next execution, and last execution timestamps
18+
* Introduced new enumeration `RelativeTargetReference` with `NOMINAL`, `MIN`, `MAX` and `CURRENT` variants.
19+
* Introduced new message `SetRelativeTargetRequest` with `save_action`, `percentage` and `reference` fields.
20+
* Introduced new methods `SetRelativePowerTarget` and `SetRelativeHashrateTarget`. User can now set power and hashrate targets relative to a reference value
1821

1922
## [1.7.0] - 2025-08-10
2023
Version **1.7.0** introduces changes to `braiins.bos.v1.PoolGroupConfiguration` and `braiins.bos.v1.PoolConfiguration`.

proto/bos/v1/performance.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,30 @@ message SetPowerTargetResponse {
232232
braiins.bos.v1.Power power_target = 1;
233233
}
234234

235+
// Enum to specify the reference point for a relative power/hashrate target.
236+
enum RelativeTargetReference {
237+
// Unspecified
238+
RELATIVE_TARGET_REFERENCE_UNSPECIFIED = 0;
239+
// Use nominal (sticker) power/hashrate target as the reference
240+
RELATIVE_TARGET_REFERENCE_NOMINAL = 1;
241+
// Use minimal power/hashrate target as the reference
242+
RELATIVE_TARGET_REFERENCE_MIN = 2;
243+
// Use maximal power/hashrate target as the reference
244+
RELATIVE_TARGET_REFERENCE_MAX = 3;
245+
// Use current power/hashrate target as the reference
246+
RELATIVE_TARGET_REFERENCE_CURRENT = 4;
247+
}
248+
249+
// Request for setting power/hashrate target relative to a reference value
250+
message SetRelativeTargetRequest {
251+
// Save action
252+
braiins.bos.v1.SaveAction save_action = 1;
253+
// Percentage value to set (e.g., 85.5 for 85.5%)
254+
double percentage = 2;
255+
// Reference point from which the percentage is calculated
256+
RelativeTargetReference reference = 3;
257+
}
258+
235259
// Request for set default hashrate target action.
236260
message SetDefaultHashrateTargetRequest {
237261
// Save action
@@ -422,6 +446,8 @@ service PerformanceService {
422446
rpc IncrementPowerTarget(IncrementPowerTargetRequest) returns (SetPowerTargetResponse);
423447
// Method to decrement power target for tuner
424448
rpc DecrementPowerTarget(DecrementPowerTargetRequest) returns (SetPowerTargetResponse);
449+
// Method to set power target relative to a reference value
450+
rpc SetRelativePowerTarget(SetRelativeTargetRequest) returns (SetPowerTargetResponse);
425451
// Method to set default hashrate target for tuner
426452
rpc SetDefaultHashrateTarget(SetDefaultHashrateTargetRequest) returns (SetHashrateTargetResponse);
427453
// Method to set absolute hashrate target for tuner
@@ -430,6 +456,8 @@ service PerformanceService {
430456
rpc IncrementHashrateTarget(IncrementHashrateTargetRequest) returns (SetHashrateTargetResponse);
431457
// Method to decrement hashrate target for tuner
432458
rpc DecrementHashrateTarget(DecrementHashrateTargetRequest) returns (SetHashrateTargetResponse);
459+
// Method to set hashrate target relative to a reference value
460+
rpc SetRelativeHashrateTarget(SetRelativeTargetRequest) returns (SetHashrateTargetResponse);
433461
// Method to set Dynamic Performance Scaling
434462
rpc SetDPS(SetDPSRequest) returns (SetDPSResponse);
435463
// Method to set performance mode

0 commit comments

Comments
 (0)