Convert coordinator/tributary/nonce_decider to use create_db macro (#423)

* chore: convert nonce_deicer to use create_db macro

* Restore pub NonceDecider

* Remove extraneous comma

I forgot to run git commit --amend on the prior commit :/

---------

Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
David Bell
2023-11-12 21:04:34 +04:00
committed by GitHub
parent 995734c960
commit c328e5ea68
5 changed files with 50 additions and 71 deletions

View File

@@ -740,7 +740,7 @@ async fn handle_processor_message<D: Db, P: P2p>(
let nonce = loop {
let Some(nonce) =
NonceDecider::<D>::nonce(&txn, genesis, &tx).expect("signed TX didn't have nonce")
NonceDecider::nonce(&txn, genesis, &tx).expect("signed TX didn't have nonce")
else {
// This can be None if the following events occur, in order:
// 1) We scanned the relevant transaction(s) in a Tributary block