Update test_framework/psbt.py for PSBTv2

This commit is contained in:
Ava Chow
2024-07-22 17:14:42 -04:00
parent 925161eaf0
commit 863cf47b33
2 changed files with 63 additions and 15 deletions

View File

@@ -66,8 +66,8 @@ def signet_txs(block, challenge):
def decode_challenge_psbt(b64psbt):
psbt = PSBT.from_base64(b64psbt)
assert len(psbt.tx.vin) == 1
assert len(psbt.tx.vout) == 1
assert len(psbt.i) == 1
assert len(psbt.o) == 1
assert PSBT_SIGNET_BLOCK in psbt.g.map
return psbt