diff options
author | Peter Todd <pete@petertodd.org> | 2014-12-25 03:12:17 -0500 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-12-27 04:09:41 +0100 |
commit | 06ca0651b626eb6e500835e7d3cab9b3e43f3e38 (patch) | |
tree | b89c7ee35e6d33381ca80da06cfe7a28f0f5751e /src/qt/bitcoingui.h | |
parent | 4e0bfa581438a662147fe4459522b308406d7f57 (diff) |
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"
}
Rebased-From: d78f0dafd520f481f909cca7e361a4e482cbea72
Github-Pull: #5541
Diffstat (limited to 'src/qt/bitcoingui.h')
0 files changed, 0 insertions, 0 deletions