-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
merkledb
-- nits
#1916
merkledb
-- nits
#1916
Conversation
// batch is a write-only database that commits changes to its host database | ||
// when Write is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is documented on database.Batch
so no need to do it here
type batch struct { | ||
database.BatchOps | ||
|
||
db *merkleDB | ||
} | ||
|
||
// apply all operations in order to the database and write the result to disk | ||
func (b *batch) Write() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is documented on database.Batch
so no need to do it here
// - When the changes in [proof.KeyChanes] are applied, | ||
// the root ID of the database is [expectedEndRootID]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proof.KeyValues
and proof.DeletedKeys
no longer exist
// This is defined on merkleDB instead of ChangeProof | ||
// because it accesses database internals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from ChangeProofer
spec
Why this should be merged
Cleanup
How this works
Comments
How this was tested
N/A