Only commit removed ipld block once and statically define its CID and mh_key #116
Merged
telackey
merged 4 commits from 2021-09-22 13:46:42 +00:00
only_commit_removed_ipld_once into v1.10.8-statediff
No Reviewers
Labels
Clear labels
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
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/go-ethereum#116
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.