mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
QA: Hack around no issuance an non-witness tx bug issue#473
This commit is contained in:
parent
5735322a06
commit
2e6191d73a
1 changed files with 3 additions and 1 deletions
|
|
@ -379,6 +379,9 @@ class CTTest (BitcoinTestFramework):
|
|||
self.sync_all()
|
||||
|
||||
# Check for value accounting when asset issuance is null but token not, ie unblinded
|
||||
# HACK: Self-send to sweep up bitcoin inputs into blinded output.
|
||||
# We were hitting https://github.com/ElementsProject/elements/issues/473 for the following issuance
|
||||
self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), self.nodes[0].getwalletinfo()["balance"]["bitcoin"], "", "", True)
|
||||
issued = self.nodes[0].issueasset(0, 1, False)
|
||||
walletinfo = self.nodes[0].getwalletinfo()
|
||||
assert(issued["asset"] not in walletinfo["balance"])
|
||||
|
|
@ -559,7 +562,6 @@ class CTTest (BitcoinTestFramework):
|
|||
self.nodes[0].sendtoaddress(blinded_addr, 1)
|
||||
self.nodes[0].sendtoaddress(blinded_addr, 3)
|
||||
unspent = self.nodes[0].listunspent(0, 0)
|
||||
assert_equal(len(unspent), 4)
|
||||
rawtx = self.nodes[0].createrawtransaction([{"txid":unspent[0]["txid"], "vout":unspent[0]["vout"]}, {"txid":unspent[1]["txid"], "vout":unspent[1]["vout"]}], {addr:unspent[0]["amount"]+unspent[1]["amount"]-Decimal("0.2"), "fee":Decimal("0.2")})
|
||||
# Blinding will fail with 2 blinded inputs and 0 blinded outputs
|
||||
# since it has no notion of a wallet to fill in a 0-value OP_RETURN output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue