Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/twigpine-node/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,9 @@ pub async fn consume_signature(
}

/// Charge one verified signature against the ledger: the nonce policy, then the
/// atomic insert. Shared by [`consume_signature`] and [`LedgerTicket::spend`] so
/// the two spenders cannot drift on policy, metrics or wire codes.
async fn spend_signature(
/// atomic insert. Shared by [`consume_signature`], [`LedgerTicket::spend`] and
/// the GraphQL handler so every spender uses one policy, metrics and wire-code path.
pub(crate) async fn spend_signature(
state: &AppState,
identity: &SignatureIdentity,
) -> std::result::Result<(), (NodeDenial, String)> {
Expand Down
Loading
Loading