snet-cli icon indicating copy to clipboard operation
snet-cli copied to clipboard

An algorithm for sending transaction on the real Ethereum network

Open astroseger opened this issue 7 years ago • 0 comments

We had the following discussion on slack (https://snet.slack.com/messages/CCDKDJNUU/) sergey: (proposition 3: defining algorithm for sending transaction on "real" blockchain) When we send transaction on real Ethereum network, even setting reasonable gas-price (from gasstation), we cannot be sure that transaction will be accepted in given amount of time, or will be accepted at all. Maybe there is an ICO now, or cryptokitties again. Actually I had such expirience few days ago playing with my ethereum account. So our automatic procedure for sending transaction might be as following:

  • send transaction with reasonable gas price (probably check gasstation before)
  • If transaction has not been accepted in, for example, 5 minutes, increase gas price and send it again (maybe recheck gasstation).
  • Continue increasing gas price till given maximal value.
  • If transaction with maximal gas price has not been accepted in 20 minutes send a warning to the owner with proposition manually increase maximal gas price.
  • Wait and maybe do some predefined actions for suspending the system (on the server side).. Maybe there is a standard procedure already? cassio: On the final proposition: yeah, we should research possible existing solutions, but if we don’t find any we should write our own along the lines of your heuristic.

astroseger avatar Oct 02 '18 12:10 astroseger