Specialize transaction assets to i64

Proof-of-history is generic, but now that we're using it entirely
for tokens, we can specialize the type and start doing more interesting
things than just Eq and Serialize operations.
This commit is contained in:
Greg Fitzgerald
2018-03-17 14:42:50 -06:00
parent e7da083c31
commit e5bae0604b
6 changed files with 35 additions and 40 deletions

View File

@ -26,7 +26,7 @@ impl AccountantStub {
}
}
pub fn transfer_signed(&self, tr: Transaction<i64>) -> io::Result<usize> {
pub fn transfer_signed(&self, tr: Transaction) -> io::Result<usize> {
let req = Request::Transaction(tr);
let data = serialize(&req).unwrap();
self.socket.send_to(&data, &self.addr)