My present strategy is to verify the next:
fn is_orphaned(..) {
let res = get_raw_transaction(txid)
return confirmations == 0 && blockhash != null
}
Is the above means appropriate? And is there a extra direct means of checking whether or not a transaction is re-orged? I’m operating bitcoin core with txindex = 1