harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Failed to publish tx ... pool : connection already teared down

Open mgpai22 opened this issue 3 years ago • 14 comments

Got this error in the console while running the program. The subscription feature also does not work, it just endlessly loads. I assume these issues are connected. The pub0 has been configured with default settings and is running in the background. The log starts by saying listening on xyz. Then it constantly switches from connected to disconnected

harmony console

pub0 logs .

mgpai22 avatar Apr 07 '22 03:04 mgpai22

Looks like this is an issue of pub0sub dependency, not behaving as it should be.

itzmeanjan avatar Apr 07 '22 11:04 itzmeanjan

Probably you can try with https://github.com/itzmeanjan/harmony/releases/tag/v0.9.2, which uses Redis.

itzmeanjan avatar Apr 07 '22 11:04 itzmeanjan

It nearly worked! I now get a block fetching error. Could this be due to the node itself? fetch error

mgpai22 avatar Apr 07 '22 12:04 mgpai22

It does not appear to be a node problem unless there is a flag I am not running geth with.

mgpai22 avatar Apr 07 '22 15:04 mgpai22

Though as far as I understand it looks like Ethereum Node's RPC related issue.

itzmeanjan avatar Apr 08 '22 13:04 itzmeanjan

This happens here https://github.com/itzmeanjan/harmony/blob/4572d3712321cdaeb20e3313067f71ad3b3268dd/app/listen/header.go#L110-L116, I wonder is the blockchain mining blocks ?

itzmeanjan avatar Apr 08 '22 13:04 itzmeanjan

Depends on how mining is defined. I am running harmony on goerli testnet.

mgpai22 avatar Apr 08 '22 15:04 mgpai22

Used the most recent version with Ropsten (POW testnet) and it worked flawlessly!

Is it possible to modify harmony so it can be used with other EVM clones such as BSC?

Thanks!

mgpai22 avatar Apr 09 '22 03:04 mgpai22

I myself used harmony with Polygon PoS chain. As long as BSC nodes implement the txpool RPC methods which harmony uses, it should work.

itzmeanjan avatar Apr 11 '22 14:04 itzmeanjan

Interesting. It is weird that this did not work with the goerli geth node.

mgpai22 avatar Apr 11 '22 23:04 mgpai22

To be more specific https://geth.ethereum.org/docs/rpc/ns-txpool is what exactly is required by harmony.

itzmeanjan avatar Apr 13 '22 03:04 itzmeanjan

I think you should update go eth to v1.10.17

Heinux avatar Apr 30 '22 19:04 Heinux

I think you should update go eth to v1.10.17

You're correct. Similar issue was present in ette, which was detected & fixed https://github.com/itzmeanjan/ette/pull/69

itzmeanjan avatar May 02 '22 04:05 itzmeanjan

If one has time, feel free to send PR or I'll raise one sometime this week.

itzmeanjan avatar May 02 '22 04:05 itzmeanjan