mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
create_outputs and scanning declare expected with a default of None but dereference it unconditionally (expected.get(...)), so calling either without it raises AttributeError, although the parameter is documented optional. Guard the expected-value checks with `if expected is not None:`. The self-test, which always passes expected, is unaffected.