Bugfix: Serialized numbers are signed, so need an extra \x00 in the case of 0x80...
authorLuke Dashjr <luke-jr+git@utopios.org>
Mon, 28 Jan 2013 21:05:57 +0000 (21:05 +0000)
committerLuke Dashjr <luke-jr+git@utopios.org>
Mon, 28 Jan 2013 21:13:36 +0000 (21:13 +0000)
commit96e8e7e2937ea62757627350c3ea83f5bbae9772
treeacc4f05283eb597cf0b1af8e8500207c42272578
parentfa88ef8cb19bf006cacb988a0ce42a86f72bcb23
Bugfix: Serialized numbers are signed, so need an extra \x00 in the case of 0x80...-0xff...

Function body taken from Eloipool's bitcoin/script.py encodeUNum function (does not work for zero or negative numbers)
lib/util.py