This commit is contained in:
Luke Parker
2023-04-16 01:03:32 -04:00
parent 79655672ef
commit 9676584ffe
4 changed files with 23 additions and 1 deletions

View File

@@ -197,6 +197,13 @@ impl BlockTrait<Bitcoin> for Block {
hash.reverse();
hash
}
fn parent(&self) -> Self::Id {
let mut hash = *self.header.prev_blockhash.as_raw_hash().as_byte_array();
hash.reverse();
hash
}
fn median_fee(&self) -> Fee {
// TODO
Fee(20)