[#34] bootstrap: Remove no longer used SpreadMap

After removing State service from the public API, SpreadMap message became
redundant, so it is deleted.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-05 22:36:14 +03:00 committed by Stanislav Bogatyrev
parent abbf0f7893
commit 4caf9a7258
2 changed files with 0 additions and 20 deletions

View file

@ -10,13 +10,6 @@ option (gogoproto.stable_marshaler_all) = true;
option (gogoproto.stringer_all) = false; option (gogoproto.stringer_all) = false;
option (gogoproto.goproto_stringer_all) = false; option (gogoproto.goproto_stringer_all) = false;
message SpreadMap {
// Epoch is current epoch for netmap
uint64 Epoch = 1;
// NetMap is a set of NodeInfos
repeated NodeInfo NetMap = 2 [(gogoproto.nullable) = false];
}
message NodeInfo { message NodeInfo {
// Address is a node [multi-address](https://github.com/multiformats/multiaddr) // Address is a node [multi-address](https://github.com/multiformats/multiaddr)
string Address = 1 [(gogoproto.jsontag) = "address"]; string Address = 1 [(gogoproto.jsontag) = "address"];

View file

@ -7,7 +7,6 @@
- Messages - Messages
- [NodeInfo](#bootstrap.NodeInfo) - [NodeInfo](#bootstrap.NodeInfo)
- [SpreadMap](#bootstrap.SpreadMap)
- [Scalar Value Types](#scalar-value-types) - [Scalar Value Types](#scalar-value-types)
@ -36,18 +35,6 @@
| Options | [string](#string) | repeated | Options is set of node optional information, such as storage capacity, node location, price and etc | | Options | [string](#string) | repeated | Options is set of node optional information, such as storage capacity, node location, price and etc |
| state | [NodeInfo.State](#bootstrap.NodeInfo.State) | | | | state | [NodeInfo.State](#bootstrap.NodeInfo.State) | | |
<a name="bootstrap.SpreadMap"></a>
### Message SpreadMap
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| Epoch | [uint64](#uint64) | | Epoch is current epoch for netmap |
| NetMap | [NodeInfo](#bootstrap.NodeInfo) | repeated | NetMap is a set of NodeInfos |
<!-- end messages --> <!-- end messages -->