PeernetOfficial / core

Core library. Use this to create a new Peernet application.
MIT License
36 stars 5 forks source link

Tag data record leads to problems on delete and update #66

Closed Kleissner closed 3 years ago

Kleissner commented 3 years ago

Referenced tag data records lead to issues when deleting files (#38), tags, or updating files. The use of it may result in orphaned records (#37) or files referencing the wrong tags (#38).

This can be fixed by enforcing a full block decode/encode, instead of just individual records.

The Peernet Browser currently shows a corruption when attempting to edit or delete a file with referenced tag data. image

The main offending function is blockchain.IterateDeleteRecord.