nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

Replay attack for containers #377

Closed roman-khimov closed 2 weeks ago

roman-khimov commented 7 months ago

Is your feature request related to a problem? Please describe.

I'm always frustrated when I realize that deleted containers can be recreated with the same IDs. This can lead to many many problems with inconsistent data.

Describe the solution you'd like

Mark deleted containers in the contract DB, don't allow recreating them.

Describe alternatives you've considered

None.

Additional context

A bit reminiscent of https://github.com/nspcc-dev/neo-go/pull/2462