omgnetwork/elixir-omg

Handle "transaction underpriced" error response from Ethereum client

sentry-io opened this issue · 0 comments

Under some high gas price conditions, the Ethereum client could return %{"code" => -32000, "message" => "transaction underpriced"} which is currently not handled by BlockSubmission.process_result/3


Sentry Issue: ELIXIR-OMG-4H

FunctionClauseError: no function clause matching in OMG.ChildChain.BlockQueue.Core.process_submit_result/3
  File "lib/omg_child_chain/block_queue/core.ex", line 247, in OMG.ChildChain.BlockQueue.Core.process_submit_result/3
  File "lib/omg_child_chain/block_queue.ex", line 212, in OMG.ChildChain.BlockQueue.submit/1
  File "lib/enum.ex", line 783, in Enum."-each/2-lists^foreach/1-0-"/2
  File "lib/enum.ex", line 783, in Enum.each/2
  File "lib/omg_child_chain/block_queue.ex", line 180, in OMG.ChildChain.BlockQueue.handle_info/2
...
(3 additional frame(s) were not displayed)

(FunctionClauseError) no function clause matching in OMG.ChildChain.BlockQueue.Core.process_submit_result/3

TODOs: