@@ -1026,7 +1026,7 @@ impl State {
10261026 . db
10271027 . select_account_header_at_block ( account_id, block_num)
10281028 . await ?
1029- . ok_or_else ( || DatabaseError :: AccountNotPublic ( account_id) ) ?;
1029+ . ok_or ( DatabaseError :: AccountAtBlockHeightNotFoundInDb ( account_id, block_num ) ) ?;
10301030
10311031 let account_code = match code_commitment {
10321032 Some ( commitment) if commitment == account_header. code_commitment ( ) => None ,
@@ -1138,19 +1138,6 @@ impl State {
11381138 ) -> Result < ( BlockNumber , Vec < AccountVaultValue > ) , DatabaseError > {
11391139 self . db . get_account_vault_sync ( account_id, block_range) . await
11401140 }
1141-
1142- /// Returns the unprocessed network notes, along with the next pagination token.
1143- pub async fn get_unconsumed_network_notes (
1144- & self ,
1145- network_account_id_prefix : NetworkAccountPrefix ,
1146- block_num : BlockNumber ,
1147- page : Page ,
1148- ) -> Result < ( Vec < NoteRecord > , Page ) , DatabaseError > {
1149- self . db
1150- . select_unconsumed_network_notes ( network_account_id_prefix, block_num, page)
1151- . await
1152- }
1153-
11541141 /// Returns the network notes for an account that are unconsumed by a specified block number,
11551142 /// along with the next pagination token.
11561143 pub async fn get_unconsumed_network_notes_for_account (
0 commit comments