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

consensus: Use actual transactions.

parazyd 4 лет назад
Родитель
Сommit
e24c3b00b4
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/consensus2/tx.rs

+ 2 - 3
src/consensus2/tx.rs

@@ -2,15 +2,14 @@ use std::io;
 
 use crate::{
     impl_vec, net,
+    tx::Transaction,
     util::serial::{Decodable, Encodable, SerialDecodable, SerialEncodable, VarInt},
     Result,
 };
 
 /// Temporary transaction representation.
 #[derive(Debug, Clone, PartialEq, SerialEncodable, SerialDecodable)]
-pub struct Tx {
-    pub payload: String,
-}
+pub struct Tx(pub Transaction);
 
 impl net::Message for Tx {
     fn name() -> &'static str {