File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ interface FooInterface $Proxy.wrap("FooImplementation") {
20
20
passTransaction @3 (arg :Data ) -> (result :Data );
21
21
passVectorChar @4 (arg :Data ) -> (result :Data );
22
22
passBlockState @5 (arg :Mining.BlockValidationState) -> (result :Mining.BlockValidationState) ;
23
+ passScript @6 (arg :Data ) -> (result :Data );
23
24
}
Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ void IpcPipeTest()
121
121
BOOST_CHECK_EQUAL (bs3.GetRejectReason (), bs4.GetRejectReason ());
122
122
BOOST_CHECK_EQUAL (bs3.GetDebugMessage (), bs4.GetDebugMessage ());
123
123
124
+ auto script1{CScript () << OP_11};
125
+ auto script2{foo->passScript (script1)};
126
+ BOOST_CHECK_EQUAL (HexStr (script1), HexStr (script2));
127
+
124
128
// Test cleanup: disconnect pipe and join thread
125
129
disconnect_client ();
126
130
thread.join ();
Original file line number Diff line number Diff line change 6
6
#define BITCOIN_TEST_IPC_TEST_H
7
7
8
8
#include < primitives/transaction.h>
9
+ #include < script/script.h>
9
10
#include < univalue.h>
10
11
#include < util/fs.h>
11
12
#include < validation.h>
@@ -19,6 +20,7 @@ class FooImplementation
19
20
CTransactionRef passTransaction (CTransactionRef t) { return t; }
20
21
std::vector<char > passVectorChar (std::vector<char > v) { return v; }
21
22
BlockValidationState passBlockState (BlockValidationState s) { return s; }
23
+ CScript passScript (CScript s) { return s; }
22
24
};
23
25
24
26
void IpcPipeTest ();
You can’t perform that action at this time.
0 commit comments