Skip to content

Commit

Permalink
Fix variable name (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort authored Nov 6, 2024
1 parent 499818e commit 47fea20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/eureka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,17 @@ function sendPacket(
assert(timeoutHeight === 0 || latestClientHeight < timeoutHeight)
// if the sequence doesn't already exist, this call initializes the sequence to 0
sequence = channelStore.get(nextSequenceSendPath(commitPort, sourceChannel))
sequence = channelStore.get(nextSequenceSendPath(sourcePort, sourceChannel))
// store commitment to the packet data & packet timeout
channelStore.set(
packetCommitmentPath(commitPort, sourceChannel, sequence),
packetCommitmentPath(sourcePort, sourceChannel, sequence),
hash(hash(data), timeoutHeight, timeoutTimestamp)
)
// increment the sequence. Thus there are monotonically increasing sequences for packet flow
// from sourcePort, sourceChannel pair
channelStore.set(nextSequenceSendPath(commitPort, sourceChannel), sequence+1)
channelStore.set(nextSequenceSendPath(sourcePort, sourceChannel), sequence+1)
// log that a packet can be safely sent
emitLogEntry("sendPacket", {
Expand Down

0 comments on commit 47fea20

Please sign in to comment.