Peter Todd 06ca0651b6
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
2014-12-27 04:09:41 +01:00
..
2014-11-20 17:22:06 +01:00
2014-12-23 12:58:33 +01:00
2014-12-09 10:07:35 +01:00
2014-11-03 16:16:40 +01:00
2014-10-27 04:16:48 -07:00
2014-11-03 16:16:40 +01:00
2014-11-03 16:16:40 +01:00
2014-12-05 16:50:48 +01:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-11-24 14:43:10 +01:00
2014-12-03 10:52:58 +00:00
2014-12-05 11:24:39 +01:00
2014-11-20 17:22:02 +01:00
2014-11-20 17:22:02 +01:00
2014-12-01 14:57:58 +01:00
2014-12-01 14:57:58 +01:00
2014-12-03 10:52:58 +00:00
2014-12-05 11:39:18 +01:00
2014-08-28 22:25:21 +02:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-11-20 17:22:02 +01:00
2014-11-25 08:18:33 +01:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-10-03 04:29:51 +02:00