Skip to content

Commit

Permalink
payment stream support
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 29, 2024
1 parent c8402bd commit 385e7d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions proto/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ message RpcGetJob {
string jobId = 1;
optional uint32 wait = 99; // max time to wait in ms , 0 or unset means no wait
optional uint32 nResultsToWait = 100; // max number of results to wait for
optional uint64 streamPayment = 2;// millisats to pay
optional string streamPaymentCurrency = 3; // currency to pay
optional string streamPaymentProtocol = 4; // protocol to pay
}

message RpcGetPendingJobs {
Expand Down Expand Up @@ -293,6 +296,14 @@ message RpcJobRequest {
optional bool encrypted=3;
}


message RpcPayJobRequest {
string jobId = 1;
uint64 amount = 2;
string currency = 3;
string protocol = 4;
}

service PoolConnector {
// job management
rpc requestJob (RpcRequestJob) returns (Job);
Expand All @@ -305,6 +316,7 @@ service PoolConnector {
rpc outputForJob(RpcJobOutput) returns (Job);
rpc completeJob(RpcJobComplete) returns (Job);
rpc logForJob(RpcJobLog) returns (Job);
rpc payJob(RpcPayJobRequest) returns (Job);


// discovery
Expand Down

0 comments on commit 385e7d7

Please sign in to comment.