Skip to content

Commit 7339c7a

Browse files
committed
Fallback to default fee parameters in case of error
1 parent 504cc68 commit 7339c7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ func (b *BlockChainAPI) SendRawTransaction(
184184

185185
feeParams, err := b.feeParameters.Get()
186186
if err != nil {
187-
return common.Hash{}, err
187+
b.logger.Warn().Err(err).Msg("fee parameters unavailable; falling back to base gas price")
188+
feeParams = models.DefaultFeeParameters()
188189
}
189190

190191
id, err := b.evm.SendRawTransaction(ctx, input, feeParams)

0 commit comments

Comments
 (0)