switch from LP to credits
As part of open sourcing the software product, we should consider that loyalty points are not the best language. Switching to "credits" makes sense from a lot of points of view. At the same time, this change allows an achitectural change towards slots. Slots allow daemon resources to get booked based on the HW ratio configured in the daemon config.
This commit is contained in:
parent
b8db315af9
commit
633377c112
@ -83,7 +83,11 @@ message AppNodeListResp {
|
||||
string region = 4;
|
||||
string city = 5;
|
||||
string ip = 6; // required for latency test
|
||||
uint64 price = 7; // nanoLP per unit per minute
|
||||
// TODO: understand slot size for apps
|
||||
// Since apps allow granular tweaking of resources (half a CPU),
|
||||
// the slot size will be a float, not an int. This makes calculations more complex.
|
||||
// We should discuss this when we have time.
|
||||
uint64 price = 7; // nanocredits per slot per month
|
||||
repeated string reports = 8; // TODO: this will become an enum
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ message KickReq {
|
||||
}
|
||||
|
||||
message KickResp {
|
||||
uint64 nano_lp = 1;
|
||||
uint64 nano_credits = 1;
|
||||
}
|
||||
|
||||
message BanUserReq {
|
||||
|
@ -22,7 +22,7 @@ message VmContract {
|
||||
string dtrfs_sha = 14;
|
||||
string created_at = 15;
|
||||
string updated_at = 16;
|
||||
// total nanoLP cost per minute (for all units)
|
||||
// total nanocredits cost per minute (for all units)
|
||||
uint64 nano_per_minute = 17;
|
||||
uint64 locked_nano = 18;
|
||||
string collected_at = 19;
|
||||
@ -54,7 +54,7 @@ message RegisterVmNodeReq {
|
||||
string country = 4;
|
||||
string region = 5;
|
||||
string city = 6;
|
||||
// nanoLP per unit per minute
|
||||
// nanocredits per slot per month
|
||||
uint64 price = 7;
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ message VmNodeListResp {
|
||||
string city = 5;
|
||||
string ip = 6; // required for latency test
|
||||
repeated string reports = 7; // TODO: this will become an enum
|
||||
uint64 price = 8; // nanoLP per unit per minute
|
||||
uint64 price = 8; // nanocredits per month per slot
|
||||
}
|
||||
|
||||
message ExtendVmReq {
|
||||
|
Loading…
Reference in New Issue
Block a user