Remove transaction processing from RPU and request processing from TVU

This commit is contained in:
Greg Fitzgerald
2018-05-15 12:15:29 -06:00
parent 6d4defdf96
commit f7083e0923
8 changed files with 46 additions and 253 deletions

View File

@ -4,6 +4,7 @@
//! unstable and may change in future releases.
use bincode::{deserialize, serialize};
use event::Event;
use futures::future::{ok, FutureResult};
use hash::Hash;
use request::{Request, Response};
@ -67,8 +68,8 @@ impl ThinClient {
/// Send a signed Transaction to the server for processing. This method
/// does not wait for a response.
pub fn transfer_signed(&self, tr: Transaction) -> io::Result<usize> {
let req = Request::Transaction(tr);
let data = serialize(&req).expect("serialize Transaction in pub fn transfer_signed");
let event = Event::Transaction(tr);
let data = serialize(&event).expect("serialize Transaction in pub fn transfer_signed");
self.events_socket.send_to(&data, &self.addr)
}