[cmd] support SendTx to other chains via IBC

This commit is contained in:
Ethan Buchman
2017-05-22 07:35:23 -04:00
parent 444b96dfe7
commit 7f2d25c593
3 changed files with 27 additions and 2 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ func NewPacket(src, dst string, seq uint64, payload Payload) Packet {
}
}
// GetSequenceNumber gets the sequence number for packets being sent from the src chain to the dst chain
// GetSequenceNumber gets the sequence number for packets being sent from the src chain to the dst chain.
// The sequence number counts how many packets have been sent.
// The next packet must include the latest sequence number.
func GetSequenceNumber(store types.KVStore, src, dst string) uint64 {
sequenceKey := toKey(_IBC, _EGRESS, src, dst)
seqBytes := store.Get(sequenceKey)