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

WIP: Add tx indexing #283

Merged
merged 16 commits into from
Dec 1, 2017
Merged

WIP: Add tx indexing #283

merged 16 commits into from
Dec 1, 2017

Conversation

ethanfrey
Copy link
Contributor

Builds on tendermint/tendermint#835

Trying to expose tx indexes on send tx for the ui to build on

Also see: luniehq/lunie#35

return sdk.DeliverResult{Tags: tags}, nil
}

func tagInt(key string, val int64) *abci.KVPair {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh.. these can go to ABCI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great! And rename them :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
txl, ok := tx.Unwrap().(sdk.TxLayer)
for ok {
tx = txl.Next()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't know the context, but a comment would be nice. are we getting the last tx in the list?

}

// FindAnyTx search all of the strings sequentionally and
// returns combined result
Copy link
Contributor

@melekes melekes Dec 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you handling duplicates? No, right? Or it's fine

@ethanfrey ethanfrey merged commit 32dec47 into develop Dec 1, 2017
@ethanfrey ethanfrey deleted the feature/indexing branch December 1, 2017 17:00
alexanderbez pushed a commit that referenced this pull request Jul 18, 2022
brendan-kelly referenced this pull request in figment-networks/cosmos-sdk Aug 3, 2022
(cherry picked from commit d49b3e7)

Co-authored-by: Adam Tucker <adam@osmosis.team>
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