diff options
| author | Gavin Andresen <[email protected]> | 2014-05-09 10:00:16 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-05-09 10:00:16 -0400 |
| commit | aaab675a78378c8f087639b24feba10f0e25630f (patch) | |
| tree | 7c9854e83b3ee3aa4706774fc5a9f17c647d2533 /src/test/script_tests.cpp | |
| parent | Merge pull request #4155 (diff) | |
| parent | Test CHECKMULTISIG with m == 0 and n == 0 (diff) | |
| download | discoin-aaab675a78378c8f087639b24feba10f0e25630f.tar.xz discoin-aaab675a78378c8f087639b24feba10f0e25630f.zip | |
Merge pull request #3860 from petertodd/test-checkmulti-n-m-zero
Test CHECKMULTISIG with m == 0 and/or n == 0
Diffstat (limited to 'src/test/script_tests.cpp')
| -rw-r--r-- | src/test/script_tests.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 7bc2bfb6d..29d518d70 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -67,7 +67,11 @@ ParseScript(string s) BOOST_FOREACH(string w, words) { - if (all(w, is_digit()) || + if (w.size() == 0) + { + // Empty string, ignore. (boost::split given '' will return one word) + } + else if (all(w, is_digit()) || (starts_with(w, "-") && all(string(w.begin()+1, w.end()), is_digit()))) { // Number |