This commit is contained in:
Luke Parker
2023-10-23 05:07:38 -04:00
parent fbf51e53ec
commit 0d23964762
5 changed files with 114 additions and 26 deletions

View File

@@ -119,6 +119,7 @@ pub trait Transaction<N: Network>: Send + Sync + Sized + Clone + Debug {
type Id: 'static + Id;
fn id(&self) -> Self::Id;
fn serialize(&self) -> Vec<u8>;
fn read<R: io::Read>(reader: &mut R) -> io::Result<Self>;
#[cfg(test)]
async fn fee(&self, network: &N) -> u64;