Make the state usage clearer in script::Verifier (#1733)

This commit is contained in:
teor 2021-02-16 05:53:12 +10:00 committed by GitHub
parent e85441c914
commit 9056435942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ where
transparent::Input::PrevOut { outpoint, .. } => {
let outpoint = *outpoint;
// Avoid calling the state service if the utxo is already known
let span = tracing::trace_span!("script", ?outpoint);
let query =
span.in_scope(|| self.state.call(zebra_state::Request::AwaitUtxo(outpoint)));