Skip to content

Instantly share code, notes, and snippets.

@harsh-98
Last active April 29, 2020 09:02
Show Gist options
  • Save harsh-98/9c9f75f34fb617e8f953820383886637 to your computer and use it in GitHub Desktop.
Save harsh-98/9c9f75f34fb617e8f953820383886637 to your computer and use it in GitHub Desktop.
Other weird issue a tx is combination of two tx . How?

Other weird issue that , I found is below packet has two txs and the second tx in array has two is itself a combination of two tx

  • one( from pylon to my chain in pylon )
  • second ( from pyloon to everstake in evertake ).

How can be a tx combination of 2 txs. Because of this, i can not relay all the packets in my channel from pylonchain to setanchain(my chain). While relay the packets i got error at this line. https://github.com/iqlusioninc/relayer/blob/master/relayer/naive-strategy.go#L242

For getting that packet.

rly q txs pylonchain "send_packet.packet_src_channel=heyjusbiqh&send_packet.packet_sequence=11"

I am also pasting that packet. Checkout the second tx https://gist.github.com/harsh-98/9c9f75f34fb617e8f953820383886637#file-packet-json-L149.

{
"total_count":"2",
"count":"2",
"page_number":"1",
"page_total":"1",
"limit":"100",
"txs":[
{
"height":"65804",
"txhash":"219C3161B007564FA5ED19B99D8ABDC06C425F3658D178F9B1B1173210FA5387",
"logs":[
{
"msg_index":0,
"log":"",
"events":[
{
"type":"message",
"attributes":[
{
"key":"action",
"value":"transfer"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"module",
"value":"ibc_transfer"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"receiver",
"value":"cosmos136gmp0akugcdmx9srcrmc066f78a7k8cu2xzn3"
}
]
},
{
"type":"send_packet",
"attributes":[
{
"key":"packet_data",
"value":"{\"type\":\"ibc/transfer/PacketDataTransfer\",\"value\":{\"amount\":[{\"amount\":\"10\",\"denom\":\"transfer/mrjppjtebg/pylon\"}],\"receiver\":\"cosmos136gmp0akugcdmx9srcrmc066f78a7k8cu2xzn3\",\"sender\":\"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf\"}}"
},
{
"key":"packet_timeout_height",
"value":"50334"
},
{
"key":"packet_timeout_timestamp",
"value":"0"
},
{
"key":"packet_sequence",
"value":"11"
},
{
"key":"packet_src_port",
"value":"transfer"
},
{
"key":"packet_src_channel",
"value":"heyjusbiqh"
},
{
"key":"packet_dst_port",
"value":"transfer"
},
{
"key":"packet_dst_channel",
"value":"mrjppjtebg"
}
]
},
{
"type":"transfer",
"attributes":[
{
"key":"recipient",
"value":"cosmos17xpfvakm2amg962yls6f84z3kell8c5lserqta"
},
{
"key":"amount",
"value":"5000pylon"
},
{
"key":"recipient",
"value":"cosmos1rmuuadtkgsx3n6jr6hqyasvqv5h0ryg3zggl0r"
},
{
"key":"amount",
"value":"10pylon"
}
]
}
]
}
],
"gas_wanted":"200000",
"gas_used":"71171",
"tx":{
"type":"cosmos-sdk/StdTx",
"value":{
"msg":[
{
"type":"ibc/transfer/MsgTransfer",
"value":{
"source_port":"transfer",
"source_channel":"heyjusbiqh",
"dest_height":"49334",
"amount":[
{
"denom":"transfer/mrjppjtebg/pylon",
"amount":"10"
}
],
"sender":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf",
"receiver":"cosmos136gmp0akugcdmx9srcrmc066f78a7k8cu2xzn3"
}
}
],
"fee":{
"amount":[
{
"denom":"pylon",
"amount":"5000"
}
],
"gas":"200000"
},
"signatures":[
{
"pub_key":"61rphyED8dqw/xd5HVRucDxXeTWG37W/0yPwhdc0O3wHqcCyIT4=",
"signature":"aEqRCPcRkB28h7MhCXJeQvI77FysptYplDyq2wbxJNQOjayr4d1BPlHUeq50o2BbE3wkTDB5XQ9I4VXMdE2ZyQ=="
}
],
"memo":""
}
},
"timestamp":"2020-04-28T11:33:58Z"
},
{
"height":"65804",
"txhash":"717227247B23D0D7A3316C6317B010949E4D624E62B52FF436E4E20AC7495A0F",
"logs":[
{
"msg_index":0,
"log":"",
"events":[
{
"type":"message",
"attributes":[
{
"key":"action",
"value":"transfer"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"module",
"value":"ibc_transfer"
},
{
"key":"sender",
"value":"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf"
},
{
"key":"receiver",
"value":"cosmos136gmp0akugcdmx9srcrmc066f78a7k8cu2xzn3"
},
{
"key":"sender",
"value":"cosmos1tj5650xqxhyukhjq4t080dephzc7uy6la0ccd8"
},
{
"key":"sender",
"value":"cosmos1tj5650xqxhyukhjq4t080dephzc7uy6la0ccd8"
},
{
"key":"module",
"value":"ibc_transfer"
},
{
"key":"sender",
"value":"cosmos1tj5650xqxhyukhjq4t080dephzc7uy6la0ccd8"
},
{
"key":"receiver",
"value":"cosmos1zt902wvvf2340qpq3uxtmst8a5cpgww95s6rv9"
}
]
},
{
"type":"send_packet",
"attributes":[
{
"key":"packet_data",
"value":"{\"type\":\"ibc/transfer/PacketDataTransfer\",\"value\":{\"amount\":[{\"amount\":\"10\",\"denom\":\"transfer/mrjppjtebg/pylon\"}],\"receiver\":\"cosmos136gmp0akugcdmx9srcrmc066f78a7k8cu2xzn3\",\"sender\":\"cosmos1aketw4rzk4k9dfwyf6pwvjg5yle70u45du39uf\"}}"
},
{
"key":"packet_timeout_height",
"value":"50334"
},
{
"key":"packet_timeout_timestamp",
"value":"0"
},
{
"key":"packet_sequence",
"value":"11"
},
{
"key":"packet_src_port",
"value":"transfer"
},
{
"key":"packet_src_channel",
"value":"heyjusbiqh"
},
{
"key":"packet_dst_port",
"value":"transfer"
},
{
"key":"packet_dst_channel",
"value":"mrjppjtebg"
},
{
"key":"packet_data",
"value":"{\"type\":\"ibc/transfer/PacketDataTransfer\",\"value\":{\"amount\":[{\"amount\":\"1000\",\"denom\":\"transfer/gethqdursi/everstake\"}],\"receiver\":\"cosmos1zt902wvvf2340qpq3uxtmst8a5cpgww95s6rv9\",\"sender\":\"cosmos1tj5650xqxhyukhjq4t080dephzc7uy6la0ccd8\"}}"
},
{
"key":"packet_timeout_height",
"value":"38280"
},
{
"key":"packet_timeout_timestamp",
"value":"0"
},
{
"key":"packet_sequence",
"value":"100"
},
{
"key":"packet_src_port",
"value":"transfer"
},
{
"key":"packet_src_channel",
"value":"gethqdursi"
},
{
"key":"packet_dst_port",
"value":"transfer"
},
{
"key":"packet_dst_channel",
"value":"nfhgcuvxza"
}
]
},
{
"type":"transfer",
"attributes":[
{
"key":"recipient",
"value":"cosmos17xpfvakm2amg962yls6f84z3kell8c5lserqta"
},
{
"key":"amount",
"value":"5000pylon"
},
{
"key":"recipient",
"value":"cosmos1rmuuadtkgsx3n6jr6hqyasvqv5h0ryg3zggl0r"
},
{
"key":"amount",
"value":"10pylon"
},
{
"key":"recipient",
"value":"cosmos17xpfvakm2amg962yls6f84z3kell8c5lserqta"
},
{
"key":"amount",
"value":"5000pylon"
},
{
"key":"recipient",
"value":"cosmos1xpxukh94rtcr8763hc6g6yustfpee5y9dxqa26"
},
{
"key":"amount",
"value":"1000transfer/gethqdursi/everstake"
}
]
}
]
}
],
"gas_wanted":"200000",
"gas_used":"107192",
"tx":{
"type":"cosmos-sdk/StdTx",
"value":{
"msg":[
{
"type":"ibc/transfer/MsgTransfer",
"value":{
"source_port":"transfer",
"source_channel":"gethqdursi",
"dest_height":"37280",
"amount":[
{
"denom":"transfer/gethqdursi/everstake",
"amount":"1000"
}
],
"sender":"cosmos1tj5650xqxhyukhjq4t080dephzc7uy6la0ccd8",
"receiver":"cosmos1zt902wvvf2340qpq3uxtmst8a5cpgww95s6rv9"
}
}
],
"fee":{
"amount":[
{
"denom":"pylon",
"amount":"5000"
}
],
"gas":"200000"
},
"signatures":[
{
"pub_key":"61rphyECkuoyQHgTn8IqhOLie6yHBlS5hUFldbkThjVnYnSx0U8=",
"signature":"7bEnrZOaZnGmrANS3+8uTGvCEU3yTc+XxvbT5f/5/T85Wo/+WRkIh7Mtm+MuQX+ET0sQDxPxt+RL3nQm+plKVA=="
}
],
"memo":""
}
},
"timestamp":"2020-04-28T11:33:58Z"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment