소스 검색

Missing comment added

aggstam 4 년 전
부모
커밋
4ba9bf4c3d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      script/research/streamlet/3.2-blocks-and-blockchain.py

+ 3 - 3
script/research/streamlet/3.2-blocks-and-blockchain.py

@@ -45,11 +45,11 @@ genesis_block = Block("⊥", 0, '⊥')
 chain = Blockchain(genesis_block)
 chain = Blockchain(genesis_block)
 
 
 # A new block is generated and appended to the blockchain, since its valid.
 # A new block is generated and appended to the blockchain, since its valid.
-block1 = Block(hash(genesis_block), 1, "'tx1','tx2','tx3'")
+block1 = Block(hash(genesis_block), 1, "tx1, tx2, tx3")
 chain.add_block(block1)
 chain.add_block(block1)
 
 
 # A new block is generated and appended to the blockchain, since its valid.
 # A new block is generated and appended to the blockchain, since its valid.
-block2 = Block(hash(block1), 2, "tx4,tx5,tx6")
+block2 = Block(hash(block1), 2, "tx4, tx5, tx6")
 chain.add_block(block2)
 chain.add_block(block2)
 
 
 # We check entire blockchain validity.
 # We check entire blockchain validity.
@@ -59,5 +59,5 @@ chain.check_chain_validity()
 # wrong_block = Block(hash(block1), 3, "tx4,tx5,tx6")
 # wrong_block = Block(hash(block1), 3, "tx4,tx5,tx6")
 # chain.add_block(wrong_block)
 # chain.add_block(wrong_block)
 
 
-# wrong_block = Block(hash(block1), 1, "tx4,tx5,tx6") # 
+# wrong_block = Block(hash(block1), 1, "tx4,tx5,tx6") # Epoch not incremental
 # chain.add_block(wrong_block)
 # chain.add_block(wrong_block)