Просмотр исходного кода

[validator/verification] Fix typo in code comment

Change 'version 1' to 'version 2' where the Rust code matches
block_version == 2.
y 2 лет назад
Родитель
Сommit
6461facaaa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/validator/verification.rs

+ 1 - 1
src/validator/verification.rs

@@ -219,7 +219,7 @@ pub async fn verify_producer_transaction(
             }
         }
         2 => {
-            // Version 1 blocks must contain a Consensus::Proposal(0x02) call
+            // Version 2 blocks must contain a Consensus::Proposal(0x02) call
             if call.contract_id != *CONSENSUS_CONTRACT_ID || call.data[0] != 0x02 {
                 return Err(TxVerifyFailed::ErroneousTxs(vec![tx.clone()]).into())
             }