MCPcopy Create free account
hub / github.com/ElementsProject/elements / num_blinded_outputs

Method num_blinded_outputs

test/functional/rpc_psbt.py:121–129  ·  view source on GitHub ↗
(self, tx)

Source from the content-addressed store, hash-verified

119 return self.nodes[node_num].getaddressinfo(addr)['unconfidential']
120
121 def num_blinded_outputs(self, tx):
122 result = 0
123 decoded = self.nodes[0].decoderawtransaction(tx)
124 for out in decoded["vout"]:
125 if out["scriptPubKey"]["type"] == "fee":
126 pass
127 if "valuecommitment" in out:
128 result += 1
129 return result
130
131 def assert_change_type(self, psbtx, expected_type):
132 """Assert that the given PSBT has a change output with the given type."""

Callers 2

run_basic_testsMethod · 0.95
run_ca_testsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected