Commit 616578a3 authored by QM's avatar QM

update

parent 92dde129
...@@ -81,7 +81,7 @@ func checkTxStatus(client *ethclient.Client, txhash, txName string) bool { ...@@ -81,7 +81,7 @@ func checkTxStatus(client *ethclient.Client, txhash, txName string) bool {
case <-checkticket.C: case <-checkticket.C:
receipt, err := client.TransactionReceipt(context.Background(), common.HexToHash(txhash)) receipt, err := client.TransactionReceipt(context.Background(), common.HexToHash(txhash))
if err == ethereum.NotFound { if err == ethereum.NotFound {
fmt.Println("\n No receipt received yet for "+txName, " tx and continue to wait") //fmt.Println("\n No receipt received yet for "+txName, " tx and continue to wait")
continue continue
} else if err != nil { } else if err != nil {
panic("failed due to" + err.Error()) panic("failed due to" + err.Error())
......
...@@ -196,7 +196,7 @@ func DeployAndInit(client ethinterface.EthClientSpec, para *DeployPara) (*X2EthC ...@@ -196,7 +196,7 @@ func DeployAndInit(client ethinterface.EthClientSpec, para *DeployPara) (*X2EthC
case <-oneSecondtimeout.C: case <-oneSecondtimeout.C:
_, err := client.TransactionReceipt(context.Background(), common.HexToHash(deployInfo.Valset.TxHash)) _, err := client.TransactionReceipt(context.Background(), common.HexToHash(deployInfo.Valset.TxHash))
if err == ethereum.NotFound { if err == ethereum.NotFound {
fmt.Println("\n No receipt received yet for DeployValset tx and continue to wait") //fmt.Println("\n No receipt received yet for DeployValset tx and continue to wait")
continue continue
} else if err != nil { } else if err != nil {
panic("DeployValset failed due to" + err.Error()) panic("DeployValset failed due to" + err.Error())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment