All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node.services.regtest.proto Maven / Gradle / Ivy

The newest version!
syntax = "proto3";
import "scalapb/scalapb.proto";
import "scalapb/validate.proto";
import "validate/validate.proto";


package org.plasmalabs.node.services;

service RegtestRpc {
  // Instruct the node to make new blocks
  rpc MakeBlocks (MakeBlocksReq) returns (MakeBlocksRes);
  
  rpc SetVoting (SetVotingReq) returns (SetVotingRes);
}

// Instruct the node to make new blocks
message MakeBlocksReq {
  // The number of blocks to make
  uint32 quantity = 1;
}

// Response indicating the node received the command.
// NOTE: This is an async response; the blocks may not be ready yet
message MakeBlocksRes {}

// Instruct the node to vote for specified version or proposal
message SetVotingReq {
   int32 versionVoting = 1;
   int32 proposalVoting = 2;
}

message SetVotingRes {}
option (scalapb.options) = {
  [scalapb.validate.file] {
    validate_at_construction: true
  }
  field_transformations: [
    {
      when: {options: {[validate.rules] {message: {required: true}}}}
      set: {
        [scalapb.field] {
          required: true
        }
      }
    }
  ]
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy