mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-03-02 11:39:15 -05: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.
|
/// possible.
|
||||||
async fn calculate_key_offset_boundaries(&self) -> Result<(VarInt, VarInt)> {
|
async fn calculate_key_offset_boundaries(&self) -> Result<(VarInt, VarInt)> {
|
||||||
let latest_block = self.get_block_count().await?;
|
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?;
|
let block: GetBlockResponse = self.get_block(latest_spendable_block).await?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user