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

multi: Remove index previous script snapshots. #2989

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Aug 12, 2022

Now that the address index has been removed, there are no longer any indexers that require access to previous scripts. Therefore, this removes all of the code related to taking previous script snapshots and feeding them through to the indexers via the notifications.

It is split into several commits to ease the review process and ensure the code continues to build and pass all tests each step of the way.

The following is an overview of the changes:

  • Removes PrevScripts field from the indexers.IndexNtfn index notification
  • Removes indexers.indexNeedsInputs function
  • Removes indexers.NeedsInputser interface
  • Removes blockchain.PrevScripts field from blockchain.BlockConnectedNtfnsData and blockchain.BlockDisconnectedNtfnsData and associated code that takes the snapshots to populate those fields
  • Removes code related to taking and housing previous script snapshots from blockchain
  • Removes PrevScripts method from the indexers.ChainQueryer interface and associated implementations
  • Removes blockchain.stxosToScriptSource function
  • Removes indexers.PrevScripter interface

@davecgh davecgh added this to the 1.8.0 milestone Aug 12, 2022
@davecgh davecgh force-pushed the blockchain_remove_unused_prevscript_snapshots branch from 2db5def to c30f553 Compare August 12, 2022 06:07
This removes the no longer used PrevScripts field from the index
notification.

This is part of an overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers since there are no longer any indexers that need access to it.
This removes the no longer used indexNeedsInputs function.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the no longer used NeedsInputser interface.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the no longer used PrevScripts field from the
NTBlockConnected and NTBlockDisconnected notifications as well as the
code that takes a snapshot populates the fields.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the code related to taking and housing previous script
snapshots since it is no longer used.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the no longer used PrevScripts method from the ChainQueryer
interface as well as the methods that implemented it from the tests and
the blockchain query adapator.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the no longer used stxosToScriptSource function.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
This removes the no longer used PrevScripter interface.

This is part of the overall effort to remove all of the code related to
taking previous script snapshots and feeding them through to the
indexers.
@davecgh davecgh force-pushed the blockchain_remove_unused_prevscript_snapshots branch from c30f553 to 12873a1 Compare August 19, 2022 18:47
@davecgh davecgh merged commit 12873a1 into decred:master Aug 19, 2022
@davecgh davecgh deleted the blockchain_remove_unused_prevscript_snapshots branch August 19, 2022 18:58
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.

None yet

3 participants