Skip to content

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎rpc/core/mempool.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/tendermint/tendermint/types"
1414
)
1515

16+
var ErrTimedOutWaitingForTx = errors.New("timed out waiting for tx to be included in a block")
17+
1618
//-----------------------------------------------------------------------------
1719
// NOTE: tx should be signed, but this is only checked at the app level (not by CometBFT!)
1820

@@ -137,7 +139,7 @@ func BroadcastTxCommit(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadc
137139
Hash: tx.Hash(),
138140
}, err
139141
case <-time.After(env.Config.TimeoutBroadcastTxCommit):
140-
err = errors.New("timed out waiting for tx to be included in a block")
142+
err = ErrTimedOutWaitingForTx
141143
env.Logger.Error("Error on broadcastTxCommit", "err", err)
142144
return &ctypes.ResultBroadcastTxCommit{
143145
CheckTx: *checkTxRes,

0 commit comments

Comments
 (0)
Please sign in to comment.