Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop old events #341

Merged
merged 2 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog for NeoFS Contract
### Updated

### Removed
- old unused (notary-disabled) events

### Fixed
- migration of non-notary network to notarized one with stale votes
Expand Down
28 changes: 0 additions & 28 deletions container/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,16 @@ permissions:
- methods: ["update", "addKey", "transferX",
"register", "addRecord", "deleteRecords"]
events:
- name: containerPut
parameters:
- name: container
type: ByteArray
- name: signature
type: Signature
- name: publicKey
type: PublicKey
- name: token
type: ByteArray
- name: PutSuccess
parameters:
- name: containerID
type: Hash256
- name: publicKey
type: PublicKey
- name: containerDelete
parameters:
- name: containerID
type: ByteArray
- name: signature
type: Signature
- name: token
type: ByteArray
- name: DeleteSuccess
parameters:
- name: containerID
type: ByteArray
- name: setEACL
parameters:
- name: eACL
type: ByteArray
- name: signature
type: Signature
- name: publicKey
type: PublicKey
- name: token
type: ByteArray
- name: SetEACLSuccess
parameters:
- name: containerID
Expand Down
10 changes: 0 additions & 10 deletions netmap/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@ safemethods: ["innerRingList", "epoch", "netmap", "netmapCandidates", "snapshot"
permissions:
- methods: ["update", "newEpoch"]
events:
- name: AddPeer
parameters:
- name: nodeInfo
type: ByteArray
- name: AddPeerSuccess
parameters:
- name: publicKey
type: PublicKey
- name: UpdateState
parameters:
- name: state
type: Integer
- name: publicKey
type: PublicKey
- name: UpdateStateSuccess
parameters:
- name: publicKey
Expand Down
8 changes: 0 additions & 8 deletions reputation/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ safemethods: ["get", "getByID", "listByEpoch"]
permissions:
- methods: ["update"]
events:
- name: reputationPut
parameters:
- name: epoch
type: Integer
- name: peerID
type: ByteArray
- name: value
type: ByteArray
9 changes: 2 additions & 7 deletions reputation/reputation_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func Update(script []byte, manifest []byte, data interface{}) {
}

// Put method saves DataAuditResult in contract storage. It can be invoked only by
// Inner Ring nodes. It does not require multisignature invocations.
// storage nodes with Alphabet assistance (multisignature witness).
//
// Epoch is the epoch number when DataAuditResult structure was generated.
// PeerID contains public keys of the Inner Ring node that has produced DataAuditResult.
Expand All @@ -94,12 +94,7 @@ func Put(epoch int, peerID []byte, value []byte) {
ctx := storage.GetContext()

multiaddr := common.AlphabetAddress()
alphabetCall := runtime.CheckWitness(multiaddr)

if !alphabetCall {
runtime.Notify("reputationPut", epoch, peerID, value)
return
}
common.CheckAlphabetWitness(multiaddr)
AnnaShaleva marked this conversation as resolved.
Show resolved Hide resolved

id := storageID(epoch, peerID)

Expand Down
8 changes: 0 additions & 8 deletions subnet/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ safemethods: ["version"]
permissions:
- methods: ["update"]
events:
- name: Put
parameters:
- name: id
type: ByteArray
- name: ownerKey
type: PublicKey
- name: info
type: ByteArray
- name: Delete
parameters:
- name: id
Expand Down
Loading