mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge e607d69f39 into 7110a84bb1
This commit is contained in:
commit
94f978ee8c
1 changed files with 9 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue