QuarkChain / go-ethereum

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
5 stars 2 forks source link

fix relayer bug #92

Closed ping-ke closed 2 years ago

ping-ke commented 2 years ago

after relayer.SubmitHeaderToContract(header) submit success, we need to wait for it to be packed to block, and also need to wait for the block to be confirmed. otherwise, relayer.GetNextEpochHeight(curNumber - comfirmCount) will still get Expired next epoch height and cause the relayer to submit the expired header multi times and failed. So we need to wait until the block with TX has been confirmed.