mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Remove unnecessary psbt blinding test
This test is for a condition that no longer matters. Prior to CA, there was only the single value blinder for a transaction that sent unconf to conf. This would necessitate setting that single blinding factor to 0, which would make the single output not actually blinded. But with CA, because each output has an additional blinding factor for the asset, this issue no longer exists.
This commit is contained in:
parent
afd795010b
commit
1889554e2c
1 changed files with 0 additions and 16 deletions
|
|
@ -586,22 +586,6 @@ class PSBTTest(BitcoinTestFramework):
|
|||
self.nodes[0].generate(1)
|
||||
self.sync_all()
|
||||
|
||||
# Now send nonconf->conf
|
||||
conf_addr = self.get_address(True, 2)
|
||||
psbt = self.nodes[1].createpsbt([{"txid": txid_nonconf_2, "vout": 0}], [{conf_addr: 49.998}, {"fee": 0.001}])
|
||||
psbt = self.nodes[1].walletfillpsbtdata(psbt)['psbt']
|
||||
# Currently can't blind a transaction like this, so it fails
|
||||
assert_raises_rpc_error(-8, "Unable to blind transaction: Add another output to blind in order to complete the blinding.", self.nodes[1].blindpsbt, psbt, False)
|
||||
# Signing without blinding should not work either.
|
||||
assert_raises_rpc_error(-25, "Transaction is not yet fully blinded", self.nodes[1].walletsignpsbt, psbt)
|
||||
# If we pass "ignore_blind_fail", then it succeeds in this case without blinding.
|
||||
psbt = self.nodes[1].blindpsbt(psbt, True)
|
||||
psbt = self.nodes[1].walletsignpsbt(psbt)['psbt']
|
||||
hex_tx = self.nodes[1].finalizepsbt(psbt)['hex']
|
||||
self.nodes[1].sendrawtransaction(hex_tx)
|
||||
self.nodes[0].generate(1)
|
||||
self.sync_all()
|
||||
|
||||
# Now send nonconf->conf (with two outputs, blinding succeeds)
|
||||
conf_addr_1 = self.get_address(True, 2)
|
||||
conf_addr_2 = self.get_address(True, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue