This tiny PR adds a sanity check to the bitcoin-tx
tool w.r.t. to tx output values specified by the user: the parsing function ExtractAndValidateValue
is extended to throw if the amount is not in range [0, MAX_MONEY].
master:
0$ bitcoin-tx -create outdata=21000001:affe
10200000000010021fd5ff0750700046a02affe00000000
PR branch:
0$ bitcoin-tx -create outdata=21000001:affe
1error: TX output value out of range