@@ -826,8 +826,8 @@ impl SignerDb {
826
826
try_deserialize ( result)
827
827
}
828
828
829
- /// Return the count of globally signed blocks in a tenure (identified by its consensus hash)
830
- pub fn get_globally_signed_block_count_in_tenure (
829
+ /// Return the count of globally accepted blocks in a tenure (identified by its consensus hash)
830
+ pub fn get_globally_accepted_block_count_in_tenure (
831
831
& self ,
832
832
tenure : & ConsensusHash ,
833
833
) -> Result < i64 , DBError > {
@@ -2007,7 +2007,7 @@ mod tests {
2007
2007
} ) ;
2008
2008
2009
2009
assert_eq ! (
2010
- db. get_globally_signed_block_count_in_tenure ( & consensus_hash_1)
2010
+ db. get_globally_accepted_block_count_in_tenure ( & consensus_hash_1)
2011
2011
. unwrap( ) ,
2012
2012
0
2013
2013
) ;
@@ -2018,7 +2018,7 @@ mod tests {
2018
2018
db. insert_block ( & block_info) . unwrap ( ) ;
2019
2019
2020
2020
assert_eq ! (
2021
- db. get_globally_signed_block_count_in_tenure ( & consensus_hash_1)
2021
+ db. get_globally_accepted_block_count_in_tenure ( & consensus_hash_1)
2022
2022
. unwrap( ) ,
2023
2023
1
2024
2024
) ;
@@ -2034,7 +2034,7 @@ mod tests {
2034
2034
db. insert_block ( & block_info) . unwrap ( ) ;
2035
2035
2036
2036
assert_eq ! (
2037
- db. get_globally_signed_block_count_in_tenure ( & consensus_hash_1)
2037
+ db. get_globally_accepted_block_count_in_tenure ( & consensus_hash_1)
2038
2038
. unwrap( ) ,
2039
2039
3
2040
2040
) ;
@@ -2046,7 +2046,7 @@ mod tests {
2046
2046
db. insert_block ( & block_info) . unwrap ( ) ;
2047
2047
2048
2048
assert_eq ! (
2049
- db. get_globally_signed_block_count_in_tenure ( & consensus_hash_1)
2049
+ db. get_globally_accepted_block_count_in_tenure ( & consensus_hash_1)
2050
2050
. unwrap( ) ,
2051
2051
4
2052
2052
) ;
@@ -2058,7 +2058,7 @@ mod tests {
2058
2058
db. insert_block ( & block_info) . unwrap ( ) ;
2059
2059
2060
2060
assert_eq ! (
2061
- db. get_globally_signed_block_count_in_tenure ( & consensus_hash_1)
2061
+ db. get_globally_accepted_block_count_in_tenure ( & consensus_hash_1)
2062
2062
. unwrap( ) ,
2063
2063
4
2064
2064
) ;
0 commit comments