mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Remove old DB entry from the scanner
We read from it but never writ to it. It was used to check we didn't flag a block as notable after reporting it, but it was called by the scan task as it scanned a block. We only batch/report blocks after the scan task after scanning them, so it was very redundant.
This commit is contained in:
@@ -81,8 +81,6 @@ create_db!(
|
||||
ActiveKeys: <K: Borshy>() -> Vec<SeraiKeyDbEntry<K>>,
|
||||
RetireAt: <K: Encode>(key: K) -> u64,
|
||||
|
||||
// The next block to potentially report
|
||||
NextToPotentiallyReportBlock: () -> u64,
|
||||
// Highest acknowledged block
|
||||
HighestAcknowledgedBlock: () -> u64,
|
||||
|
||||
@@ -277,10 +275,6 @@ impl<S: ScannerFeed> ScannerGlobalDb<S> {
|
||||
blocks in which we receive outputs is notable).
|
||||
*/
|
||||
pub(crate) fn flag_notable_due_to_non_external_output(txn: &mut impl DbTxn, block_number: u64) {
|
||||
assert!(
|
||||
NextToPotentiallyReportBlock::get(txn).unwrap() <= block_number,
|
||||
"already potentially reported a block we're only now flagging as notable"
|
||||
);
|
||||
NotableBlock::set(txn, block_number, &());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user