mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
Run RustFmt as part of the CI (#37)
* Run RustFmt as part of the CI * Format repo * Run RustFmt before the default Travis build step Apparently if you override `script` you also need to make sure to `build` and `test` the code yourself. * Format repo
This commit is contained in:
committed by
Bastian Köcher
parent
d904a282c8
commit
e5f998d7d9
@@ -100,7 +100,13 @@ fn prepare_votes<S: Storage>(
|
||||
header: &Header,
|
||||
submitter: Option<&S::Submitter>,
|
||||
two_thirds_majority_transition: u64,
|
||||
) -> Result<(BTreeMap<Address, u64>, VecDeque<(H256, u64, Option<S::Submitter>, BTreeSet<Address>)>), Error> {
|
||||
) -> Result<
|
||||
(
|
||||
BTreeMap<Address, u64>,
|
||||
VecDeque<(H256, u64, Option<S::Submitter>, BTreeSet<Address>)>,
|
||||
),
|
||||
Error,
|
||||
> {
|
||||
// this fn can only work with single validators set
|
||||
if !validators.contains(&header.author) {
|
||||
return Err(Error::NotValidator);
|
||||
|
||||
Reference in New Issue
Block a user