mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
A revoke raised the kept generation past the one the grants file carried. The file can be edited, so a file carrying the largest generation made every revoke fail, and one just below it left the kept generation at the limit, so later grants could not be kept. The generation is now read from the key store only. A raise went to the generation after the kept one, which is the generation a signed write whose keep failed had used, so a copy of that write put back after a revoke granted again. A raise now goes two past the kept generation, and each signed write raises first and is written at the generation after the raised one. Every signed write is at a generation no file was signed at before. When the file can't be written, the earlier generation is put back. When the generation can't be raised without passing the largest 64-bit value, the change is refused with a log record.