mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Resolve #335
This commit is contained in:
@@ -163,6 +163,11 @@ impl TransactionTrait<Bitcoin> for Transaction {
|
||||
self.consensus_encode(&mut buf).unwrap();
|
||||
buf
|
||||
}
|
||||
fn read<R: io::Read>(reader: &mut R) -> io::Result<Self> {
|
||||
Transaction::consensus_decode(reader)
|
||||
.map_err(|e| io::Error::new(io::ErrorKind::Other, format!("{e}")))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
async fn fee(&self, network: &Bitcoin) -> u64 {
|
||||
let mut value = 0;
|
||||
|
||||
Reference in New Issue
Block a user