From d065d6205328b1a22c5e94fc75de6e5832e5b189 Mon Sep 17 00:00:00 2001 From: marston Date: Mon, 16 Sep 2024 17:12:51 -0400 Subject: [PATCH] never show 0 more blocks --- relay/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/app.go b/relay/app.go index d363041..1bb3b13 100644 --- a/relay/app.go +++ b/relay/app.go @@ -268,7 +268,7 @@ func waitForReceipt(client *ethclient.Client, txHash common.Hash, finality int64 txBlock := receipt.BlockNumber.Int64() blockDiff := latest - txBlock - if blockDiff > finality { + if blockDiff >= finality { callBack(receipt) return nil } else {