Closed zoedberg closed 3 months ago
I think this is related to the problem with detecting mempool tx as Tentative
in some indexers, which we discussed before. Which indexer do you use in the failed test? Does it work with other indexers?
Good hint, I forgot about that. With electrum the test is behaving as expected (showing allocations even if TX has 0 confirmations). I've opened https://github.com/RGB-WG/rgb/pull/241 to make esplora behave the same as electrum.
For unbroadcasted TXs we'll write a custom resolver in RLN. So after merging the PR this issue can be closed.
After recent updates (between beta 5 and 7) the behavior of
accept_transfer
changed.By running
cargo test --test transfers accept_0conf -- --nocapture
on this branch, you'll see that after the receiver wallet accepts a consignment related to a TX in mempool it will not see the new allocations.Without mining (after the broadcast) the receiver will see:
If we instead mine a block the receiver will see:
We noticed this while trying to update RLN to RGB beta 7, where the channel acceptor is unable to create the first pair of commitments (the ones created before the funding gets broadcasted). Therefore the fix for this should not only allow seeing the allocations of a 0-conf TX but also of an unbroadcasted one.