-
Notifications
You must be signed in to change notification settings - Fork 133
Use Tendermint transaction tagging #118
Comments
@mappum It is interesting. My step is:
{
"jsonrpc": "2.0",
"id": "",
"result": {
"hash": "0276C145AED6B9F89551B348D5E9CD678205CE3B",
"height": "5",
"index": 0,
"tx_result": {
"data": "test120=",
"tags": [
{}
]
},
"tx": "AAAAC3siY291bnQiOjF9AAAfcg=="
}
} You can see the empty object in result.tx_result.tags' array Do you have an idea for this? Thanks. |
I seem to have debugged half of the issue. The Tendermint node was rejecting the tag as was shown in the debug output with logTendermint set to true: I[11-01|00:38:10.491] Got tag with an empty key (skipping) I replaced: The Tendermint node now accepts the tag, or at least it seems to because the error message goes away. Still can't query with tx_search however.. |
@fumecow Thank you for your finding Please take a look at this tendermint/tendermint#2051 so just replace Try tx_search |
@kin021360 wow - thanks for finding that - working here now too! |
@kin021360 May I ask you how to make a rpc broadcast_tx_commit request to tendermint? I found types.Tx is []byte format from tendermint source code as below. But, I am not too sure if there is any method in this lotion library that creates the appropriate types.Tx format.
|
@jaybkim1 https://godoc.org/github.com/tendermint/tendermint/rpc/core#BroadcastTxCommit https://github.com/keppel/lotion#global-chain-identifiers-and-light-clients |
@kin021360 I tried it like below and I successfully sent a simple transaction, but now I am wondering how to make a real transaction that involves with
I took a look at the codes inside the send-tx.js file that is in the lotion-connect module.
|
I open an issue #159 regarding the height and the nonce parameters in lotion-connect module |
Tendermint has support for tagging transactions, which lets us do two things: index them so we can look up all past transactions for a given tag, or filter incoming transactions so e.g. light clients can receive only the transactions they care about.
It would be nice to have a way to tag and filter transactions from Lotion, and possibly a default tagging behavior so developers don't have to think about this (e.g. tag by each mutated key in the state, so counter transactions would be tagged with
root.count
because they mutatedcount
).The text was updated successfully, but these errors were encountered: