participate in disputes only if haven't voted already (#3796)

* participate in disputes only if haven't voted already

* Add tests for dispute participation on local import.

* Fixes.

* cargo fmt

* Get rid of redundant dependency.

Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at>
15 jobs for master
in 20 minutes and 9 seconds, using 0.0 compute credits, and was queued for 9 seconds