Explorar el Código

research/pow: Actually push transactions into the block

parazyd hace 3 años
padre
commit
6867eab442
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      script/research/pow/src/main.rs

+ 1 - 0
script/research/pow/src/main.rs

@@ -87,6 +87,7 @@ impl Block {
         buf[..HASH_LEN].copy_from_slice(tx.hash()?.as_bytes());
         let leaf = pallas::Base::from_uniform_bytes(&buf);
         self.header.txtree.append(leaf.into());
+        self.transactions.push(tx.clone());
         Ok(())
     }
 }