mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 16:47:57 +00:00
more approval voting instrumentation (#2663)
* more approval voting instrumentation * fix `unapproved_candidates` * Update node/core/approval-voting/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bbc3ad3cfc
commit
a80b2bbf13
@@ -1523,7 +1523,8 @@ fn approved_ancestor_all_approved() {
|
||||
|
||||
let test_fut = Box::pin(async move {
|
||||
assert_eq!(
|
||||
handle_approved_ancestor(&mut ctx, &state.db, block_hash_4, 0).await.unwrap(),
|
||||
handle_approved_ancestor(&mut ctx, &state.db, block_hash_4, 0, &Default::default())
|
||||
.await.unwrap(),
|
||||
Some((block_hash_4, 4)),
|
||||
)
|
||||
});
|
||||
@@ -1605,7 +1606,8 @@ fn approved_ancestor_missing_approval() {
|
||||
|
||||
let test_fut = Box::pin(async move {
|
||||
assert_eq!(
|
||||
handle_approved_ancestor(&mut ctx, &state.db, block_hash_4, 0).await.unwrap(),
|
||||
handle_approved_ancestor(&mut ctx, &state.db, block_hash_4, 0, &Default::default())
|
||||
.await.unwrap(),
|
||||
Some((block_hash_2, 2)),
|
||||
)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user