celer-network / cBridge-node

Celer cBridge relay node implementation in Golang
GNU General Public License v3.0
62 stars 17 forks source link

Arbitrum bridge transaction stuck #11

Open KryptoKingz opened 3 years ago

KryptoKingz commented 3 years ago

https://etherscan.io/tx/0xbad46726522f44e1646f67c6d8455a1522662dde96aefd26eaf7f816f9e19a1c

This transaction went through

I then got a request to release funds

This transaction is stuck even after lifting gas to 250k and funds are nowhere to be seen

https://etherscan.io/tx/0xfe28c4abf47877a633978985deef43ab4962356fc4a3e8a830c8c18b0bd654e9

liuxiaobleach commented 3 years ago

Can you send some error in your log? BTW, for Arbitrum, the gas estimation may be unstable so some manual setting might be required. https://github.com/celer-network/cBridge-node/blob/0975e3739ff34bd8400cffd8e2d18c1755f09d7e/server/server.go#L542 https://github.com/celer-network/cBridge-node/blob/0975e3739ff34bd8400cffd8e2d18c1755f09d7e/server/server.go#L560 https://github.com/celer-network/cBridge-node/blob/0975e3739ff34bd8400cffd8e2d18c1755f09d7e/server/server.go#L578

You can set the gas limit manually. eth.WithGasLimit(3200000)

Example:

if bc.chainId.Uint64() == 42161 {
    _, err := bc.trans.Transact(
        logTransactionStateHandler(fmt.Sprintf("receipt transferIn, transferId: %x", transferId)),
        func(ctr bind.ContractTransactor, opts *bind.TransactOpts) (*ethtypes.Transaction, error) {
            cbt, err2 := contracts.NewCBridgeTransactor(bc.contractChain.GetAddr(), ctr)
        if err2 != nil {
                return nil, err2
        }
            return cbt.TransferIn(opts, dstAddr, token, amount, hashLock, timeLock, srcChainId, srcTransferId)
        },
        eth.WithTimeout(transactorWaitTimeout),
        eth.WithGasLimit(3200000)
    )
    return err
}
Dominator008 commented 3 years ago

Looks like your transaction did go through eventually. It was probably sent when the Ethereum mainnet was a bit congested and the average gas price was higher than the number specified. Currently we don't have a mechanism to bump the gas price and retry the transaction, but we will consider adding it.

shahid1956 commented 2 years ago

My transaction on Arbitrum network is stuck since hours and didn't reach destination wallet. Need support to resolve this issue. thanks

Txid: 0x72e7e3702a064e3e461820b3ac9acb11e3b35d62604c5ddfd7ad88df6a7492f7 https://arbiscan.io/tx/0x72e7e3702a064e3e461820b3ac9acb11e3b35d62604c5ddfd7ad88df6a7492f7

cryptorueda commented 1 year ago

HI someone could help with this https://arbiscan.io/tx/0x3f209c373fe319c366a5b9468852fe63aa97982cb3bff70d2331b5498d2b59b5 This transaction looks stuck since 2021... and no one was able to help me.. what I can do?

Thanks