todo comment

Signed-off-by: dzdidi <dzdidi@protonmail.com>
This commit is contained in:
dzdidi 2025-02-03 14:59:36 +01:00
parent af86b0e0cd
commit c006f7de03
No known key found for this signature in database
GPG key ID: 1FFF5A7760BD933D

View file

@ -188,6 +188,7 @@ impl Blockchain {
}
pub fn generate(&mut self, txs: Option<Vec<Transaction>>) -> Block {
// FIXME: replace this magic number with something meaningul
let bits = bitcoin::CompactTarget::from_consensus(553713663);
let prev_block = self.blocks.last().unwrap();