Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

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

Closed
mgpai22 opened this issue Apr 7, 2022 · 14 comments
Closed

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

mgpai22 opened this issue Apr 7, 2022 · 14 comments

Comments

@mgpai22
Copy link

mgpai22 commented Apr 7, 2022

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
.

@itzmeanjan
Copy link
Owner

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

@itzmeanjan
Copy link
Owner

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

@mgpai22
Copy link
Author

mgpai22 commented Apr 7, 2022

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

@mgpai22
Copy link
Author

mgpai22 commented Apr 7, 2022

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

@itzmeanjan
Copy link
Owner

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

@itzmeanjan
Copy link
Owner

This happens here

block, err := client.BlockByNumber(ctx, number)
if err != nil {
log.Printf("❗️ Failed to fetch block : %d\n", number)
return false
}
, I wonder is the blockchain mining blocks ?

@mgpai22
Copy link
Author

mgpai22 commented Apr 8, 2022

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

@mgpai22
Copy link
Author

mgpai22 commented Apr 9, 2022

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!

@itzmeanjan
Copy link
Owner

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

@mgpai22
Copy link
Author

mgpai22 commented Apr 11, 2022

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

@itzmeanjan
Copy link
Owner

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

@Heinux
Copy link

Heinux commented Apr 30, 2022

I think you should update go eth to v1.10.17

@itzmeanjan
Copy link
Owner

I think you should update go eth to v1.10.17

You're correct. Similar issue was present in ette, which was detected & fixed itzmeanjan/ette#69

@itzmeanjan
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants