consensus: add debug event on wrong version check

Adding this check reveals that the WrongVersion errors aren't coming
from the correct WrongVersion check.
This commit is contained in:
Henry de Valence 2020-11-19 19:25:25 -08:00 committed by Deirdre Connolly
parent 25fd52be51
commit b116cfcd76
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ where
tracing::trace!(?tx);
match &*tx {
Transaction::V1 { .. } | Transaction::V2 { .. } | Transaction::V3 { .. } => {
tracing::debug!(?tx, "got transaction with wrong version");
Err(TransactionError::WrongVersion)
}
Transaction::V4 {