Skip to content

Commit

Permalink
Fix: get_mainchain_size (#75)
Browse files Browse the repository at this point in the history
* fix mainchain size

* update wasm
  • Loading branch information
olga24912 authored Sep 16, 2024
1 parent 019754b commit 058be84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl BtcLightClient {
.headers_pool
.get(&self.mainchain_tip_blockhash)
.unwrap_or_else(|| env::panic_str(ERR_KEY_NOT_EXIST));
tip.block_height - tail.block_height
tip.block_height - tail.block_height + 1
}

/// This method return n last blocks from the mainchain
Expand Down
Binary file modified res/btc_light_client_mainnet.wasm
Binary file not shown.
Binary file modified res/btc_light_client_testnet.wasm
Binary file not shown.

0 comments on commit 058be84

Please sign in to comment.