-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vdb 696 remove unused repo methods #126
Vdb 696 remove unused repo methods #126
Conversation
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.
🎉 ✂️
will probably come up in the rebase but just to flag - think these functions are still hanging around in the new spot_file
repos
@@ -90,10 +90,6 @@ func (repository JugInitRepository) MissingHeaders(startingBlockNumber, endingBl | |||
return repo.MissingHeaders(startingBlockNumber, endingBlockNumber, repository.db, constants.JugInitChecked) |
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.
We should remove this too, right?
@@ -93,10 +93,6 @@ func (repository VatForkRepository) MissingHeaders(startingBlockNumber, endingBl | |||
return repo.MissingHeaders(startingBlockNumber, endingBlockNumber, repository.db, constants.VatForkChecked) |
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.
ditto
@@ -79,10 +79,6 @@ func (repository VatSuckRepository) MissingHeaders(startingBlock, endingBlock in | |||
return repo.MissingHeaders(startingBlock, endingBlock, repository.db, constants.VatSuckChecked) |
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.
here too
Expect(err).NotTo(HaveOccurred()) | ||
|
||
err = transformer.Execute(logs, header, constants.HeaderRecheck) | ||
err = transformer.Execute(logs, header) |
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.
Wondering if we should remove the integration tests about rechecking headers, if that's not a responsibility of the event transformer anymore 🤔
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.
Yeah, that is a good point. I kind of want to think on that a bit more, so I may put up a separate PR for removing those tests.
func (repository *MockRepository) SetMissingHeadersError(e error) { | ||
repository.missingHeadersError = e | ||
} | ||
|
||
func (repository *MockRepository) SetAllHeaders(headers []core.Header) { |
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.
Can we delete this as well?
8fa68e1
to
41313f0
Compare
removing rechecked headers int tests in #130 |
41313f0
to
6cb0beb
Compare
6cb0beb
to
62c9c09
Compare
62c9c09
to
9ab313b
Compare
Before merging this in, I think it may be nice to merge in vulcanize/vulcanizedb#101 and then cut a new VDB release so we can target the release in the Gopkg instead of a version.