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

Refactor: extract most aura logic out to standalone module, make use of these #13764

Merged
merged 5 commits into from
Mar 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
".git/.scripts/commands/fmt/fmt.sh"
  • Loading branch information
command-bot committed Mar 31, 2023
commit b5e42710f45c54223b816118fb03eaf6b303bfec
5 changes: 1 addition & 4 deletions client/consensus/aura/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ where
C: AuxStore + ProvideRuntimeApi<B>,
C::Api: AuraApi<B, A>,
{
client
.runtime_api()
.slot_duration(block_hash)
.map_err(|err| err.into())
client.runtime_api().slot_duration(block_hash).map_err(|err| err.into())
}

/// Get the slot author for given block along with authorities.
Expand Down