historian / transaction updates
This commit is contained in:
parent
f2de486658
commit
02c573986b
|
@ -53,7 +53,7 @@ impl Historian {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn receive(self: &Self) -> Result<Entry, TryRecvError> {
|
pub fn receive(self: &Self) -> Result<Entry, TryRecvError> {
|
||||||
self.output.lock().unwrap().try_recv()
|
self.output.lock().expect("failed 'output' lock in Historian").try_recv()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ impl Transaction {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_sign_data(&self) -> Vec<u8> {
|
fn get_sign_data(&self) -> Vec<u8> {
|
||||||
serialize(&(&self.data)).expect("failed to serialize sign_data")
|
serialize(&(&self.data)).expect("failed on serialize TransactionData")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sign this transaction.
|
/// Sign this transaction.
|
||||||
|
|
Loading…
Reference in New Issue