holochain / holochain

The current, performant & industrial strength version of Holochain on Rust.
https://holochain.org
Other
1.13k stars 137 forks source link

Redesign the DB schema more thoughtfully to accommodate Warrants #4029

Open maackle opened 1 week ago

maackle commented 1 week ago

Right now the Actions table has been coopted so that Warrants are stored alongside Actions. We do funny things like storing the action hash of the warrant in the prev_hash field of the Action table, and we allow the hash to be either an ActionHash or a WarrantHash accordingly.

We should either put Warrants in their own table, or at least rename the existing table and fields to make it clearer that it contains two disparate data types.