Skip to content
This repository was archived by the owner on Jan 23, 2022. It is now read-only.

offline-election block in get_candidates and then loop print ws closed error #29

Open
yrong opened this issue Dec 3, 2020 · 3 comments

Comments

@yrong
Copy link

yrong commented Dec 3, 2020

run this command

run --package offline-election --bin offline-election -- --uri wss://cc1.darwinia.network --network darwinia staking

and blocked here for 10 secs and then loop print error as following

[2020-12-03T08:53:48Z ERROR] Client Error: Inner(Ws(Closed))
[2020-12-03T08:53:48Z ERROR] Client Error: Inner(Ws(Closed))
....
@yrong
Copy link
Author

yrong commented Dec 3, 2020

notice issue and seems similar

@AurevoirXavier @hackfisher

will this hack work?

darwinia-network/bridger@d70d76c

@yrong yrong changed the title block in get_candidates and then loop print ws closed error offline-election block in get_candidates and then loop print ws closed error Dec 3, 2020
@aurexav
Copy link

aurexav commented Dec 3, 2020

Yes, works. But that hack kind dirty & ugly.

@yrong
Copy link
Author

yrong commented Dec 3, 2020

@AurevoirXavier
notice that this lib use state_getPairs to get all validators

storage::enumerate_map::<AccountId, ValidatorPrefs>(MODULE, b"Validators", client, at)
and take too long to timeout, will it better to use state_getKeysPaged instead?

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

2 participants