It seems that there is a bug when a node sends coins to an imported P2WSH.
Such transaction does not appear in listtransaction
unlike P2SH.
Note that if node A sends to node B where B imported the P2WSH, things works as expected, and both A and B would see the transaction in listtransaction
.
The stangest thing is that gettransaction
seems to know about the transaction. (but not the details)
Repro:
https://github.com/NicolasDorier/bitcoin/commits/importaddresssegwit
If you switch use_p2wsh
to false, it passes, else, it does not.
Failing on assert(self.nodes[0].listtransactions("*", 1, 0, True)[0]["txid"] == txid)
ping @sipa this is the bug I bumped on TumbleBit that I explained to you.