| 540 | }; |
| 541 | |
| 542 | std::string JSONPrettyPrint(const UniValue& univalue) |
| 543 | { |
| 544 | std::string ret = univalue.write(4); |
| 545 | // Workaround for libunivalue pretty printer, which puts a space between commas and newlines |
| 546 | size_t pos = 0; |
| 547 | while ((pos = ret.find(" \n", pos)) != std::string::npos) { |
| 548 | ret.replace(pos, 2, "\n"); |
| 549 | pos++; |
| 550 | } |
| 551 | return ret; |
| 552 | } |
| 553 | |
| 554 | void add_replay_tests_mode(std::vector<TestBuilder>& tests, const KeyData& keys, ReplayMode REPLAY_ITEM) { |
| 555 | tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, |
no test coverage detected