Explorar el Código

[validator/verification] Fix typo in code comment

Change 'version 1' to 'version 2' where the Rust code matches
block_version == 2.
y hace 2 años
padre
commit
6461facaaa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/validator/verification.rs

+ 1 - 1
src/validator/verification.rs

@@ -219,7 +219,7 @@ pub async fn verify_producer_transaction(
             }
             }
         }
         }
         2 => {
         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 {
             if call.contract_id != *CONSENSUS_CONTRACT_ID || call.data[0] != 0x02 {
                 return Err(TxVerifyFailed::ErroneousTxs(vec![tx.clone()]).into())
                 return Err(TxVerifyFailed::ErroneousTxs(vec![tx.clone()]).into())
             }
             }