This commit is contained in:
Nadav Ivgi 2026-08-04 02:30:04 -07:00 committed by GitHub
commit 94f978ee8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -536,5 +536,14 @@ class IssuanceTest(BitcoinTestFramework):
signed_tx = self.nodes[0].signrawtransactionwithwallet(blind_tx)
self.nodes[0].sendrawtransaction(signed_tx["hex"])
# Test reissuing with a reissuance token spent from an unblinded output
# https://github.com/ElementsProject/elements/issues/259
issued = self.nodes[0].issueasset(0, Decimal('0.00000001'), False)
# Get a non-confidential address and send the (only) reissuance token to it
uc_addr = self.nodes[0].validateaddress(self.nodes[0].getnewaddress())["unconfidential"]
self.nodes[0].sendtoaddress(uc_addr, Decimal('0.00000001'), "", "", False, False, 1, "UNSET", False, issued["token"])
# This currently fails with 'JSONRPCException: Unable to blind the transaction properly. This should not happen. (-4)'
self.nodes[0].reissueasset(issued["asset"], 1)
if __name__ == '__main__':
IssuanceTest(__file__).main()