mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Fix confidential test to not assume fee output will be last of 3
This commit is contained in:
parent
cf854f1135
commit
3059856019
1 changed files with 6 additions and 7 deletions
|
|
@ -167,14 +167,13 @@ class CTTest (BitcoinTestFramework):
|
|||
self.nodes[0].generate(101)
|
||||
self.sync_all()
|
||||
|
||||
txout0 = self.nodes[0].gettxout(txid, 0)
|
||||
txout1 = self.nodes[0].gettxout(txid, 1)
|
||||
unblindfound = False
|
||||
for i in range(len(decodedtx["vout"])):
|
||||
txout = self.nodes[0].gettxout(txid, i)
|
||||
if txout is not None and "asset" in txout:
|
||||
unblindfound = True
|
||||
|
||||
if "asset" in txout0:
|
||||
assert_equal(txout0["asset"], decodedtx["vout"][0]["asset"])
|
||||
elif "asset" in txout1:
|
||||
assert_equal(txout1["asset"], decodedtx["vout"][1]["asset"])
|
||||
else:
|
||||
if unblindfound == False:
|
||||
raise Exception("No unconfidential output detected when one should exist")
|
||||
|
||||
node0 -= value4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue