-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
WIP: Add tx indexing #283
Conversation
modules/coin/handler.go
Outdated
return sdk.DeliverResult{Tags: tags}, nil | ||
} | ||
|
||
func tagInt(key string, val int64) *abci.KVPair { |
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.
oh.. these can go to ABCI
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.
Would be great! And rename them :)
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.
} | ||
txl, ok := tx.Unwrap().(sdk.TxLayer) | ||
for ok { | ||
tx = txl.Next() |
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.
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 |
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.
Are you handling duplicates? No, right? Or it's fine
98aa7fc
to
38fdd7a
Compare
Builds on tendermint/tendermint#835
Trying to expose tx indexes on send tx for the ui to build on
Also see: luniehq/lunie#35