diff options
| author | MarcoFalke <[email protected]> | 2018-12-06 16:13:53 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-12-06 16:56:58 -0500 |
| commit | fa4c8679ed94f215ce895938f7c3c169a2ce101e (patch) | |
| tree | de168a66e9c942f47fa3b24c3ab2864f23eb5448 /src/test | |
| parent | Merge #14783: gui: Fix boost::signals2::no_slots_error in early calls to Init... (diff) | |
| download | discoin-fa4c8679ed94f215ce895938f7c3c169a2ce101e.tar.xz discoin-fa4c8679ed94f215ce895938f7c3c169a2ce101e.zip | |
rpc: Avoid creating non-standard raw transactions
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rpc_tests.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 121b72a5f..ff4839892 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -129,9 +129,6 @@ BOOST_AUTO_TEST_CASE(rpc_createraw_op_return) { BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"68656c6c6f776f726c64\"}")); - // Allow more than one data transaction output - BOOST_CHECK_NO_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"data\":\"68656c6c6f776f726c64\",\"data\":\"68656c6c6f776f726c64\"}")); - // Key not "data" (bad address) BOOST_CHECK_THROW(CallRPC("createrawtransaction [{\"txid\":\"a3b807410df0b60fcb9736768df5823938b2f838694939ba45f3c0a1bff150ed\",\"vout\":0}] {\"somedata\":\"68656c6c6f776f726c64\"}"), std::runtime_error); |