You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#30552: test: fix constructor of msg_tx
ec5e294 test: fix constructor of msg_tx (Martin Zumsande)
Pull request description:
In python, if the default value is a mutable object (here: a class) it is shared over all instances, so that one instance being changed would affect others to be changed as well.
This was the source of bitcoin#30543, and possibly various other intermittent bugs in the functional tests, see
bitcoin#29621 (comment).
Fixesbitcoin#30543Fixesbitcoin#29621Fixesbitcoin#25128
ACKs for top commit:
sipa:
utACK ec5e294. I believe some linters even warn about doing this.
maflcko:
ACK ec5e294
vasild:
ACK ec5e294 ❤️
theStack:
ACK ec5e294
Tree-SHA512: a6204fb1a326de3f9aa965f345fd658f6a4dcf78731db25cc905ff6eb8d4eeb65d14cc316305eebd89387aec8748c57c3a4f4ca62408f8e5ee53f535b88b1411
0 commit comments