File tree 1 file changed +2
-2
lines changed
components/hord-cli/src/db
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1370,7 +1370,7 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
1370
1370
// evaluate exit condition: did we reach the **final** coinbase transaction
1371
1371
if coinbase_txid. eq ( & txid) {
1372
1372
let subsidy = Height ( ordinal_block_number. into ( ) ) . subsidy ( ) ;
1373
- if ordinal_offset. lt ( & subsidy) {
1373
+ if ordinal_offset < subsidy {
1374
1374
// Great!
1375
1375
break ;
1376
1376
}
@@ -1400,7 +1400,7 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
1400
1400
for input in tx. inputs . into_iter ( ) {
1401
1401
sats_in += input. txin_value ;
1402
1402
1403
- if sats_in >= total_out {
1403
+ if sats_in > total_out {
1404
1404
ordinal_offset = total_out - ( sats_in - input. txin_value ) ;
1405
1405
ordinal_block_number = input. block_height ;
1406
1406
tx_cursor = ( input. txin . clone ( ) , input. vout as usize ) ;
You can’t perform that action at this time.
0 commit comments