Only commit removed ipld block once and statically define its CID and mh_key #116
No reviewers
Labels
No Label
bug
critical
duplicate
enhancement
epic
help wanted
in progress
invalid
low priority
question
rebase
v1
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/go-ethereum#116
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "only_commit_removed_ipld_once"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #114
And some additional minor cleanup/optimization.
Introduces a new CLI flag: "statediff.db.init" which should be set to true the first time the service is ran on a database, it tells the service to write an IPLD block for a "Removed" node to the public.blocks table at initialization.Rather than requiring a new CLI configuration flag, it just write the "Removed" node block whenever the service is first started- it's okay if we duplicate this effort once at initialization. This block is then referenced by the constant defined CIDs/mh_key for all "Removed" type nodes so that we don't attempt to write an IPLD block to the DB and derive its CID/mh_key for every "Removed" node type.