Seems better to target the exact weight than a weight that is up to more than 2000 WU larger.
Also, replace a broad -acceptnonstdtxn=1 with -datacarriersize=100000 to document the test assumptions better.
Seems better to target the exact weight than a weight that is up to more than 2000 WU larger.
Also, replace a broad -acceptnonstdtxn=1 with -datacarriersize=100000 to document the test assumptions better.
Also, replace broad -acceptnonstdtxn=1 with -datacarriersize=100000
Code-review ACK fa2537cf0a7629d81df1bc5b4ae6a22dc572647b
TIL that the Python repetition operator * also accepts negative values and simple yields empty (byte-)strings in that case:
>>> b'a' * -1337
b''
(Intuitively, I would have preferred to keep the first assertion, checking that the target weight is larger than the current tx's weight, in order to prevent a negative dummy_vbytes value, but it doesn't seem to have any negative consequences (no pun intended)🤷♂️ ).