File tree 1 file changed +14
-0
lines changed
components/chainhook-event-observer/src/hord/db
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1089,6 +1089,13 @@ pub fn retrieve_satoshi_point_using_local_storage(
1089
1089
local_block_cache. clear ( ) ;
1090
1090
1091
1091
hops += 1 ;
1092
+ if hops as u64 > block_identifier. index {
1093
+ return Err ( format ! (
1094
+ "Unable to process transaction {}, manual investigation required" ,
1095
+ transaction_identifier. hash
1096
+ ) ) ;
1097
+ }
1098
+
1092
1099
let block = match local_block_cache. get ( & ordinal_block_number) {
1093
1100
Some ( block) => block,
1094
1101
None => match find_block_at_block_height ( ordinal_block_number, 3 , & blocks_db) {
@@ -1205,6 +1212,13 @@ pub fn retrieve_satoshi_point_using_local_storage(
1205
1212
break ;
1206
1213
}
1207
1214
}
1215
+
1216
+ if sats_in == 0 {
1217
+ return Err ( format ! (
1218
+ "Transaction {} is originating from a non spending transaction" ,
1219
+ transaction_identifier. hash
1220
+ ) ) ;
1221
+ }
1208
1222
}
1209
1223
}
1210
1224
}
You can’t perform that action at this time.
0 commit comments