]> Untitled Git - bdk/commit
fix(chain): Consider conflicting ancestors in...
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Fri, 29 Sep 2023 14:51:50 +0000 (16:51 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Wed, 4 Oct 2023 12:00:44 +0000 (14:00 +0200)
commit62de55f12d910ac35180cbb3f0e4c4b353c44d11
tree816a8d7990692ac2f9d76886c412f3776f3ec087
parenta3e8480ad9d41190da8de732dc8d00d636a0c911
fix(chain): Consider conflicting ancestors in...
...try_get_chain_pos

In try_get_chain_pos, when we notice that a transaction is not included
in the best chain, we check the transactions in mempool to find
conflicting ones, and decide based on that if our transaction is still
in mempool or has been dropped.
This commit adds a check for transactions conflicting with the
unconfirmed ancestors of our tx.

Co-authored-by: Wei Chen <wzc110@gmail.com>
crates/chain/src/tx_graph.rs