Skip to content

Commit

Permalink
Check rune minimum at height before sending (ordinals#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Apr 19, 2024
1 parent d062a99 commit 8a15488
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ impl Wallet {
if let Some(transaction) = transaction {
if u32::try_from(transaction.info.confirmations).unwrap() + 1
>= Runestone::COMMIT_CONFIRMATIONS.into()
&& rune
>= Rune::minimum_at_height(
self.chain().network(),
Height(u32::try_from(self.bitcoin_client().get_block_count()? + 1).unwrap()),
)
{
let tx_out = self
.bitcoin_client()
Expand Down

0 comments on commit 8a15488

Please sign in to comment.