Skip to content

Commit 9f65899

Browse files
committed
fix: decrease the need for sendPacket delay (almost fixed)
1 parent 6653937 commit 9f65899

File tree

1 file changed

+8
-9
lines changed
  • packages/cosmic-swingset/lib/ag-solo/vats

1 file changed

+8
-9
lines changed

packages/cosmic-swingset/lib/ag-solo/vats/ibc.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ const DEFAULT_PACKET_TIMEOUT = 1000;
1919
// only way to create channels.
2020
const FIXME_ALLOW_NAIVE_RELAYS = true;
2121

22-
// FIXME: We need to delay to a later block to work around
23-
// a relayer race condition (no sendPacket too soon after
24-
// a channelOpenAck).
22+
// We need to delay to a later block because packets
23+
// cannot be sent before the channel ack is complete
24+
// (no sendPacket within a channelOpenAck).
2525
//
26-
// I[2020-05-01|15:32:43.721] - listening to tx events from ibc0...
27-
// I[2020-05-01|15:32:43.721] - listening to block events from ibc0...
28-
// Error: no transactions returned with query
29-
// no transactions returned with query
30-
// [exits]
31-
const FIXME_SENDPACKET_DELAY_S = 10; // fail <=3, work >=4
26+
// FIXME: We might be fix within the relayer, which currently
27+
// fails with:
28+
// cannot update client with ID ibczeroclient: header blocktime
29+
// ≤ latest client state block time (X ≤ X): invalid block header
30+
const FIXME_SENDPACKET_DELAY_S = 1;
3231

3332
/**
3433
* @typedef {import('@agoric/swingset-vat/src/vats/network').ProtocolHandler} ProtocolHandler

0 commit comments

Comments
 (0)