Don't spend anything in the last 100 blocks

This commit is contained in:
Thomas Eizinger 2021-05-12 20:29:47 +10:00
parent 58074fc083
commit fd783846cf
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -43,7 +43,7 @@ impl MonerodClientExt for monerod::Client {
/// possible.
async fn calculate_key_offset_boundaries(&self) -> Result<(VarInt, VarInt)> {
let latest_block = self.get_block_count().await?;
let latest_spendable_block = latest_block.count - 50;
let latest_spendable_block = latest_block.count - 100;
let block: GetBlockResponse = self.get_block(latest_spendable_block).await?;