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

Reduce provisioner work #12749

Merged
32 commits merged into from
Dec 1, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7b82edf
Move create_inherent_data call to use side
Nov 18, 2022
4512834
Make provide_inherent_data async
Nov 20, 2022
207d38f
Fix tests
Nov 20, 2022
db7da78
Apply suggestions from code review
Nov 20, 2022
b547ac3
Log errors
Nov 20, 2022
2d99f79
Merge branch 'alexg/reduce_provisioner_work_v2' of github.com:parityt…
Nov 20, 2022
9ec8b85
Fix test
Nov 21, 2022
be84136
Fix test
Nov 21, 2022
7afe2db
fix
Nov 21, 2022
ba46adb
Deduplicate test code
Nov 21, 2022
7f02482
fix
Nov 21, 2022
f7d687b
flag
Nov 21, 2022
f374a2f
Update client/consensus/slots/src/lib.rs
Nov 22, 2022
7267c54
Revert "Deduplicate test code"
Nov 22, 2022
38e8c30
Fix test
Nov 22, 2022
63da7f9
Merge branch 'master' into alexg/reduce_provisioner_work_v2
Nov 22, 2022
23af207
remove commented out code
Nov 23, 2022
c09f968
minor to start CI run
Nov 23, 2022
c8b5abd
start CI
Nov 23, 2022
0810c4c
Update client/consensus/slots/src/lib.rs
Nov 23, 2022
f615d60
Apply PR suggestions
Nov 25, 2022
245e0b0
Merge branch 'alexg/reduce_provisioner_work_v2' of github.com:parityt…
Nov 25, 2022
439945d
Apply PR suggestions
Nov 25, 2022
8a69c39
Update client/consensus/slots/src/lib.rs
Nov 25, 2022
ba700bc
minor
Nov 25, 2022
d8a4571
kickoff CI
Nov 26, 2022
c3c168e
PR suggestions
Nov 26, 2022
a4059fb
Compute remaining duration instead of using slot_info.duration
Nov 26, 2022
bc720d8
Don't rely on sub implementation for Instant
Nov 26, 2022
dfe3d29
Apply PR suggestions
Nov 27, 2022
e4b1de1
Use saturating_duration_since
Nov 27, 2022
2673e99
Merge remote-tracking branch 'origin/master' into alexg/reduce_provis…
Nov 29, 2022
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
Next Next commit
fix
  • Loading branch information
alexgparity committed Nov 21, 2022
commit 7afe2db43436504f1b3ebf69dfe1f4936c07ce06
16 changes: 9 additions & 7 deletions bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,14 +692,16 @@ mod tests {
slot += 1;
};

let inherent_data = (
sp_timestamp::InherentDataProvider::new(
std::time::Duration::from_millis(SLOT_DURATION * slot).into(),
),
sp_consensus_babe::inherents::InherentDataProvider::new(slot.into()),
let inherent_data = futures::executor::block_on(
(
sp_timestamp::InherentDataProvider::new(
std::time::Duration::from_millis(SLOT_DURATION * slot).into(),
),
sp_consensus_babe::inherents::InherentDataProvider::new(slot.into()),
)
.create_inherent_data(),
)
.create_inherent_data()
.expect("Creates inherent data");
.expect("Creates inherent data");

digest.push(<DigestItem as CompatibleDigestItem>::babe_pre_digest(babe_pre_digest));

Expand Down