浏览代码

[validator/verification] Fix typo in code comment

Change 'version 1' to 'version 2' where the Rust code matches
block_version == 2.
y 2 年之前
父节点
当前提交
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())
             }