Skip to content

Commit

Permalink
refactor: AllowEveryoneToBootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Jun 23, 2023
1 parent a2408a4 commit 8f8396b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
38 changes: 19 additions & 19 deletions doc/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ <h2>Table of Contents</h2>
</li>

<li>
<a href="#massa.api.v1.ShutdownNodeRequest"><span class="badge">M</span>ShutdownNodeRequest</a>
<a href="#massa.api.v1.ShutdownGracefullyRequest"><span class="badge">M</span>ShutdownGracefullyRequest</a>
</li>

<li>
<a href="#massa.api.v1.ShutdownNodeResponse"><span class="badge">M</span>ShutdownNodeResponse</a>
<a href="#massa.api.v1.ShutdownGracefullyResponse"><span class="badge">M</span>ShutdownGracefullyResponse</a>
</li>

<li>
Expand All @@ -302,15 +302,15 @@ <h2>Table of Contents</h2>


<li>
<a href="#massa.api.v1.MassaPrivateService"><span class="badge">S</span>MassaPrivateService</a>
<a href="#massa.api.v1.PrivateService"><span class="badge">S</span>PrivateService</a>
</li>

</ul>
</li>


<li>
<a href="#massa%2fapi%2fv1%2fapi.proto">massa/api/v1/api.proto</a>
<a href="#massa%2fapi%2fv1%2fpublic.proto">massa/api/v1/public.proto</a>
<ul>

<li>
Expand Down Expand Up @@ -593,7 +593,7 @@ <h2>Table of Contents</h2>


<li>
<a href="#massa.api.v1.MassaService"><span class="badge">S</span>MassaService</a>
<a href="#massa.api.v1.PublicService"><span class="badge">S</span>PublicService</a>
</li>

</ul>
Expand Down Expand Up @@ -1094,15 +1094,15 @@ <h3 id="massa.api.v1.RemoveStakingAddressesResponse">RemoveStakingAddressesRespo



<h3 id="massa.api.v1.ShutdownNodeRequest">ShutdownNodeRequest</h3>
<p>ShutdownNodeRequest holds the request for ShutdownNode</p>
<h3 id="massa.api.v1.ShutdownGracefullyRequest">ShutdownGracefullyRequest</h3>
<p>ShutdownGracefullyRequest holds the request for ShutdownGracefully</p>





<h3 id="massa.api.v1.ShutdownNodeResponse">ShutdownNodeResponse</h3>
<p>ShutdownNodeResponse holds the response from ShutdownNode</p>
<h3 id="massa.api.v1.ShutdownGracefullyResponse">ShutdownGracefullyResponse</h3>
<p>ShutdownGracefullyResponse holds the response from ShutdownGracefully</p>



Expand Down Expand Up @@ -1183,7 +1183,7 @@ <h3 id="massa.api.v1.SignMessagesResponse">SignMessagesResponse</h3>



<h3 id="massa.api.v1.MassaPrivateService">MassaPrivateService</h3>
<h3 id="massa.api.v1.PrivateService">PrivateService</h3>
<p>Massa private gRPC service</p>
<table class="enum-table">
<thead>
Expand Down Expand Up @@ -1291,10 +1291,10 @@ <h3 id="massa.api.v1.MassaPrivateService">MassaPrivateService</h3>
</tr>

<tr>
<td>ShutdownNode</td>
<td><a href="#massa.api.v1.ShutdownNodeRequest">ShutdownNodeRequest</a></td>
<td><a href="#massa.api.v1.ShutdownNodeResponse">ShutdownNodeResponse</a></td>
<td><p>Shutdown the node</p></td>
<td>ShutdownGracefully</td>
<td><a href="#massa.api.v1.ShutdownGracefullyRequest">ShutdownGracefullyRequest</a></td>
<td><a href="#massa.api.v1.ShutdownGracefullyResponse">ShutdownGracefullyResponse</a></td>
<td><p>Shutdown the node gracefully</p></td>
</tr>

</tbody>
Expand Down Expand Up @@ -1458,9 +1458,9 @@ <h4>Methods with HTTP bindings</h4>


<tr>
<td>ShutdownNode</td>
<td>ShutdownGracefully</td>
<td>POST</td>
<td>/v1/shutdown_node</td>
<td>/v1/shutdown_gracefully</td>
<td>*</td>
</tr>

Expand All @@ -1472,7 +1472,7 @@ <h4>Methods with HTTP bindings</h4>


<div class="file-heading">
<h2 id="massa/api/v1/api.proto">massa/api/v1/api.proto</h2><a href="#title">Top</a>
<h2 id="massa/api/v1/public.proto">massa/api/v1/public.proto</h2><a href="#title">Top</a>
</div>
<p></p>

Expand Down Expand Up @@ -3533,8 +3533,8 @@ <h3 id="massa.api.v1.OpType">OpType</h3>



<h3 id="massa.api.v1.MassaService">MassaService</h3>
<p>Massa gRPC service</p>
<h3 id="massa.api.v1.PublicService">PublicService</h3>
<p>Massa public gRPC service</p>
<table class="enum-table">
<thead>
<tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>
Expand Down
38 changes: 19 additions & 19 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
- [RemoveFromPeersWhitelistResponse](#massa-api-v1-RemoveFromPeersWhitelistResponse)
- [RemoveStakingAddressesRequest](#massa-api-v1-RemoveStakingAddressesRequest)
- [RemoveStakingAddressesResponse](#massa-api-v1-RemoveStakingAddressesResponse)
- [ShutdownNodeRequest](#massa-api-v1-ShutdownNodeRequest)
- [ShutdownNodeResponse](#massa-api-v1-ShutdownNodeResponse)
- [ShutdownGracefullyRequest](#massa-api-v1-ShutdownGracefullyRequest)
- [ShutdownGracefullyResponse](#massa-api-v1-ShutdownGracefullyResponse)
- [SignMessagesRequest](#massa-api-v1-SignMessagesRequest)
- [SignMessagesResponse](#massa-api-v1-SignMessagesResponse)

- [MassaPrivateService](#massa-api-v1-MassaPrivateService)
- [PrivateService](#massa-api-v1-PrivateService)

- [massa/api/v1/api.proto](#massa_api_v1_api-proto)
- [massa/api/v1/public.proto](#massa_api_v1_public-proto)
- [BlockParent](#massa-api-v1-BlockParent)
- [BlockResult](#massa-api-v1-BlockResult)
- [BlocksContext](#massa-api-v1-BlocksContext)
Expand Down Expand Up @@ -109,7 +109,7 @@

- [OpType](#massa-api-v1-OpType)

- [MassaService](#massa-api-v1-MassaService)
- [PublicService](#massa-api-v1-PublicService)

- [Scalar Value Types](#scalar-value-types)

Expand Down Expand Up @@ -466,20 +466,20 @@ RemoveStakingAddressesResponse holds the response from RemoveStakingAddresses



<a name="massa-api-v1-ShutdownNodeRequest"></a>
<a name="massa-api-v1-ShutdownGracefullyRequest"></a>

### ShutdownNodeRequest
ShutdownNodeRequest holds the request for ShutdownNode
### ShutdownGracefullyRequest
ShutdownGracefullyRequest holds the request for ShutdownGracefully






<a name="massa-api-v1-ShutdownNodeResponse"></a>
<a name="massa-api-v1-ShutdownGracefullyResponse"></a>

### ShutdownNodeResponse
ShutdownNodeResponse holds the response from ShutdownNode
### ShutdownGracefullyResponse
ShutdownGracefullyResponse holds the response from ShutdownGracefully



Expand Down Expand Up @@ -525,9 +525,9 @@ SignMessagesResponse holds the response from SignMessages



<a name="massa-api-v1-MassaPrivateService"></a>
<a name="massa-api-v1-PrivateService"></a>

### MassaPrivateService
### PrivateService
Massa private gRPC service

| Method Name | Request Type | Response Type | Description |
Expand All @@ -546,16 +546,16 @@ Massa private gRPC service
| RemoveFromPeersWhitelist | [RemoveFromPeersWhitelistRequest](#massa-api-v1-RemoveFromPeersWhitelistRequest) | [RemoveFromPeersWhitelistResponse](#massa-api-v1-RemoveFromPeersWhitelistResponse) | Remove from peers whitelist given IP addresses |
| RemoveStakingAddresses | [RemoveStakingAddressesRequest](#massa-api-v1-RemoveStakingAddressesRequest) | [RemoveStakingAddressesResponse](#massa-api-v1-RemoveStakingAddressesResponse) | Remove addresses from staking |
| SignMessages | [SignMessagesRequest](#massa-api-v1-SignMessagesRequest) | [SignMessagesResponse](#massa-api-v1-SignMessagesResponse) | Sign messages with node&#39;s key |
| ShutdownNode | [ShutdownNodeRequest](#massa-api-v1-ShutdownNodeRequest) | [ShutdownNodeResponse](#massa-api-v1-ShutdownNodeResponse) | Shutdown the node |
| ShutdownGracefully | [ShutdownGracefullyRequest](#massa-api-v1-ShutdownGracefullyRequest) | [ShutdownGracefullyResponse](#massa-api-v1-ShutdownGracefullyResponse) | Shutdown the node gracefully |





<a name="massa_api_v1_api-proto"></a>
<a name="massa_api_v1_public-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## massa/api/v1/api.proto
## massa/api/v1/public.proto



Expand Down Expand Up @@ -1654,10 +1654,10 @@ Operation type enum



<a name="massa-api-v1-MassaService"></a>
<a name="massa-api-v1-PublicService"></a>

### MassaService
Massa gRPC service
### PublicService
Massa public gRPC service

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
Expand Down
2 changes: 1 addition & 1 deletion proto/apis/massa/api/v1/private.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ option ruby_package = "Com::Massa::Api::V1";
option swift_prefix = "MAPI";

// Massa private gRPC service
service MassaPrivateService {
service PrivateService {
// Add IP addresses to node bootstrap blacklist
rpc AddToBootstrapBlacklist(AddToBootstrapBlacklistRequest) returns (AddToBootstrapBlacklistResponse) {
option (google.api.http) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ option php_namespace = "Com\\Massa\\Api\\V1";
option ruby_package = "Com::Massa::Api::V1";
option swift_prefix = "MAPI";

// Massa gRPC service
service MassaService {
// Massa public gRPC service
service PublicService {
// Get blocks by ids
rpc GetBlocks(GetBlocksRequest) returns (GetBlocksResponse) {
option (google.api.http) = {
Expand Down

0 comments on commit 8f8396b

Please sign in to comment.