mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Don't spend anything in the last 100 blocks
This commit is contained in:
parent
58074fc083
commit
fd783846cf
@ -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?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user