[TrueCloudLab#3] netmap: Rename neofs to frostfs
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
9c004cab2e
commit
e1cd043248
3 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
name: "NeoFS Netmap"
|
||||
name: "FrostFS Netmap"
|
||||
safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot", "snapshotByEpoch", "config", "listConfig", "version"]
|
||||
permissions:
|
||||
- methods: ["update", "newEpoch"]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Netmap contract is a contract deployed in NeoFS sidechain.
|
||||
Netmap contract is a contract deployed in FrostFS sidechain.
|
||||
|
||||
Netmap contract stores and manages NeoFS network map, Storage node candidates
|
||||
Netmap contract stores and manages FrostFS network map, Storage node candidates
|
||||
and epoch number counter. In notary disabled environment, contract also stores
|
||||
a list of Inner Ring node keys.
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@ const (
|
|||
NodeStateMaintenance
|
||||
)
|
||||
|
||||
// Node groups data related to NeoFS storage nodes registered in the NeoFS
|
||||
// Node groups data related to FrostFS storage nodes registered in the FrostFS
|
||||
// network. The information is stored in the current contract.
|
||||
type Node struct {
|
||||
// Information about the node encoded according to the NeoFS binary
|
||||
// Information about the node encoded according to the FrostFS binary
|
||||
// protocol.
|
||||
BLOB []byte
|
||||
|
||||
|
@ -216,7 +216,7 @@ func AddPeerIR(nodeInfo []byte) {
|
|||
})
|
||||
}
|
||||
|
||||
// AddPeer accepts information about the network map candidate in the NeoFS
|
||||
// AddPeer accepts information about the network map candidate in the FrostFS
|
||||
// binary protocol format, identifies the caller and behaves depending on different
|
||||
// conditions listed below.
|
||||
//
|
||||
|
@ -623,14 +623,14 @@ func SnapshotByEpoch(epoch int) []Node {
|
|||
return Snapshot(currentEpoch - epoch)
|
||||
}
|
||||
|
||||
// Config returns configuration value of NeoFS configuration. If key does
|
||||
// Config returns configuration value of FrostFS configuration. If key does
|
||||
// not exists, returns nil.
|
||||
func Config(key []byte) interface{} {
|
||||
ctx := storage.GetReadOnlyContext()
|
||||
return getConfig(ctx, key)
|
||||
}
|
||||
|
||||
// SetConfig key-value pair as a NeoFS runtime configuration value. It can be invoked
|
||||
// SetConfig key-value pair as a FrostFS runtime configuration value. It can be invoked
|
||||
// only by Alphabet nodes.
|
||||
func SetConfig(id, key, val []byte) {
|
||||
ctx := storage.GetContext()
|
||||
|
@ -674,7 +674,7 @@ type record struct {
|
|||
}
|
||||
|
||||
// ListConfig returns an array of structures that contain key and value of all
|
||||
// NeoFS configuration records. Key and value are both byte arrays.
|
||||
// FrostFS configuration records. Key and value are both byte arrays.
|
||||
func ListConfig() []record {
|
||||
ctx := storage.GetReadOnlyContext()
|
||||
|
||||
|
|
Loading…
Reference in a new issue