neoneo-go/docs
Roman Khimov 423c7883b8 core: implement basic GC for value-based storage scheme
The key idea here is that even though we can't ensure MPT code won't make the
node active again we can order the changes made to the persistent store in
such a way that it practically doesn't matter. What happens is:
 * after persist if it's time to collect our garbage we do it synchronously
   right in the same thread working the underlying persistent store directly
 * all the other node code doesn't see much of it, it works with bc.dao or
   layers above it
 * if MPT doesn't find some stale deactivated node in the storage it's OK,
   it'll recreate it in bc.dao
 * if MPT finds it and activates it, it's OK too, bc.dao will store it
 * while GC is being performed nothing else changes the persistent store
 * all subsequent bc.dao persists only happen after the GC is completed which
   means that any changes to the (potentially) deleted nodes have a priority,
   it's OK for GC to delete something that'll be recreated with the next
   persist cycle

Otherwise it's a simple scheme with node status/last active height stored in
the value. Preliminary tests show that it works ~18% worse than the simple
KeepOnlyLatest scheme, but this seems to be the best result so far.

Fixes #2095.
2022-02-11 14:19:54 +03:00
..
cli.md cli/wallet: allow to read wallet from stdin where it's possible 2021-12-08 10:36:17 +03:00
compiler.md docs/compiler.md: update initialization info 2022-01-21 10:25:21 +03:00
consensus.md docs: refactor documentation 2021-09-08 17:52:46 +03:00
conventions.md docs: refactor documentation 2021-09-08 17:52:46 +03:00
node-configuration.md core: implement basic GC for value-based storage scheme 2022-02-11 14:19:54 +03:00
notary.md services: allow non-empty inv scripts for contract-based notary witness 2021-10-25 17:23:29 +03:00
notifications.md subscriptions: add container hash to notification event 2021-09-24 17:42:02 +03:00
oracle.md docs,config: add Oracle.AllowedContentTypes option 2021-07-13 11:11:37 +03:00
release-instruction.md circleci/workflows: drop vet run 2021-05-13 00:08:42 +03:00
rpc.md rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00
stateroots.md docs: add a note on state validation, fix #1847 2021-04-07 21:42:26 +03:00
vm.md vm CLI: allow to dump slots 2021-09-09 13:45:10 +03:00