Skip to content
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

Merged
merged 8 commits into from
Jun 18, 2019

Conversation

elizabethengelman
Copy link

@elizabethengelman elizabethengelman commented Jun 13, 2019

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.

@elizabethengelman elizabethengelman changed the title [WIP] Vdb 696 remove unused repo methods Vdb 696 remove unused repo methods Jun 13, 2019
@elizabethengelman elizabethengelman requested review from m0ar, rmulhol, i-norden, yaoandrew and Gslaughl and removed request for m0ar June 13, 2019 20:32
Copy link
Contributor

@rmulhol rmulhol left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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 🤔

Copy link
Author

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) {
Copy link
Contributor

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?

@elizabethengelman elizabethengelman force-pushed the VDB-696-remove-unused-repo-methods branch from 8fa68e1 to 41313f0 Compare June 17, 2019 22:00
@elizabethengelman
Copy link
Author

removing rechecked headers int tests in #130

@elizabethengelman elizabethengelman force-pushed the VDB-696-remove-unused-repo-methods branch from 41313f0 to 6cb0beb Compare June 18, 2019 14:35
@m0ar m0ar mentioned this pull request Jun 18, 2019
@elizabethengelman elizabethengelman force-pushed the VDB-696-remove-unused-repo-methods branch from 6cb0beb to 62c9c09 Compare June 18, 2019 16:54
@elizabethengelman elizabethengelman force-pushed the VDB-696-remove-unused-repo-methods branch from 62c9c09 to 9ab313b Compare June 18, 2019 17:15
@elizabethengelman elizabethengelman merged commit 66d18cf into staging Jun 18, 2019
@elizabethengelman elizabethengelman deleted the VDB-696-remove-unused-repo-methods branch June 18, 2019 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants