coordinator/src/db.rs db macro implimentation (#431)

* coordinator/src/db.rs db macro implimentation

* fixed fmt errors

* converted txn functions to get/set counterparts

* use take_signed_transaction function

* fix for two fo the tests

* Misc tweaks

* Minor tweaks

---------

Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
econsta
2023-12-07 18:30:11 +04:00
committed by GitHub
parent c511a54d18
commit 91a024e119
4 changed files with 119 additions and 183 deletions

View File

@@ -232,7 +232,7 @@ pub(crate) async fn scan_tributaries_task<
let mut tributary_db = raw_db.clone();
loop {
// Check if the set was retired, and if so, don't further operate
if crate::MainDb::<D>::is_tributary_retired(&raw_db, spec.set()) {
if crate::db::RetiredTributaryDb::get(&raw_db, spec.set()).is_some() {
break;
}