aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2014-12-25 03:12:17 -0500
committerPeter Todd <[email protected]>2014-12-25 03:18:40 -0500
commitd78f0dafd520f481f909cca7e361a4e482cbea72 (patch)
treedddfac56a964994772ec72810c65869a4975932b /src/init.cpp
parentMerge pull request #5512 (diff)
downloaddiscoin-d78f0dafd520f481f909cca7e361a4e482cbea72.tar.xz
discoin-d78f0dafd520f481f909cca7e361a4e482cbea72.zip
Fix CScriptID(const CScript& in) in empty script case
Previously an empty script wouldn't be hashed, and CScriptID would be assigned the incorrect value of 0 instead. This bug can be seen in the RPC decodescript command: $ btc decodescript "" { "asm" : "", "type" : "nonstandard", "p2sh" : "31h1vYVSYuKP6AhS86fbRdMw9XHieotbST" } Correct output: $ btc decodescript "" { "asm" : "", "type" : "nonstandard", "p2sh" : "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy" }
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions