Skip to content

Commit 0d3ba59

Browse files
committed
Rename source file and add stub test file.
1 parent c8ec1e0 commit 0d3ba59

9 files changed

Lines changed: 46 additions & 10 deletions

File tree

Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ src_libbitcoin_server_la_SOURCES = \
5757
src/protocols/electrum/protocol_electrum_mempool.cpp \
5858
src/protocols/electrum/protocol_electrum_outpoints.cpp \
5959
src/protocols/electrum/protocol_electrum_scripthash.cpp \
60-
src/protocols/electrum/protocol_electrum_scripthash_subscribe.cpp \
6160
src/protocols/electrum/protocol_electrum_scriptpubkey.cpp \
6261
src/protocols/electrum/protocol_electrum_server.cpp \
62+
src/protocols/electrum/protocol_electrum_subscribe.cpp \
6363
src/protocols/electrum/protocol_electrum_transactions.cpp \
6464
src/protocols/electrum/protocol_electrum_version.cpp \
6565
src/protocols/native/protocol_native.cpp \
@@ -108,6 +108,7 @@ test_libbitcoin_server_test_SOURCES = \
108108
test/protocols/electrum/electrum_scripthash.cpp \
109109
test/protocols/electrum/electrum_scriptpubkey.cpp \
110110
test/protocols/electrum/electrum_server.cpp \
111+
test/protocols/electrum/electrum_subscribe.cpp \
111112
test/protocols/electrum/electrum_transactions.cpp \
112113
test/protocols/electrum/electrum_version.cpp \
113114
test/protocols/native/native.cpp \

builds/msvc/vs2022/libbitcoin-server-test/libbitcoin-server-test.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_scripthash.cpp" />
149149
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_scriptpubkey.cpp" />
150150
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_server.cpp" />
151+
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_subscribe.cpp" />
151152
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_transactions.cpp" />
152153
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_version.cpp">
153154
<ObjectFileName>$(IntDir)test_protocols_electrum_electrum_version.obj</ObjectFileName>

builds/msvc/vs2022/libbitcoin-server-test/libbitcoin-server-test.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_server.cpp">
9494
<Filter>src\protocols\electrum</Filter>
9595
</ClCompile>
96+
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_subscribe.cpp">
97+
<Filter>src\protocols\electrum</Filter>
98+
</ClCompile>
9699
<ClCompile Include="..\..\..\..\test\protocols\electrum\electrum_transactions.cpp">
97100
<Filter>src\protocols\electrum</Filter>
98101
</ClCompile>

builds/msvc/vs2022/libbitcoin-server/libbitcoin-server.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@
139139
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_mempool.cpp" />
140140
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_outpoints.cpp" />
141141
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scripthash.cpp" />
142-
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scripthash_subscribe.cpp" />
143142
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scriptpubkey.cpp" />
144143
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_server.cpp" />
144+
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_subscribe.cpp" />
145145
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_transactions.cpp" />
146146
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_version.cpp" />
147147
<ClCompile Include="..\..\..\..\src\protocols\native\protocol_native.cpp" />

builds/msvc/vs2022/libbitcoin-server/libbitcoin-server.vcxproj.filters

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@
117117
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scripthash.cpp">
118118
<Filter>src\protocols\electrum</Filter>
119119
</ClCompile>
120-
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scripthash_subscribe.cpp">
121-
<Filter>src\protocols\electrum</Filter>
122-
</ClCompile>
123120
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_scriptpubkey.cpp">
124121
<Filter>src\protocols\electrum</Filter>
125122
</ClCompile>
126123
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_server.cpp">
127124
<Filter>src\protocols\electrum</Filter>
128125
</ClCompile>
126+
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_subscribe.cpp">
127+
<Filter>src\protocols\electrum</Filter>
128+
</ClCompile>
129129
<ClCompile Include="..\..\..\..\src\protocols\electrum\protocol_electrum_transactions.cpp">
130130
<Filter>src\protocols\electrum</Filter>
131131
</ClCompile>

src/protocols/electrum/protocol_electrum_scripthash_subscribe.cpp renamed to src/protocols/electrum/protocol_electrum_subscribe.cpp

File renamed without changes.

test/protocols/electrum/electrum_addresses.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,4 @@ BOOST_AUTO_TEST_CASE(electrum__blockchain_address_list_unspent__confirmed_and_un
384384
BOOST_REQUIRE(point12_0 < point11_1);
385385
}
386386

387-
// blockchain.address.subscribe
388-
389387
BOOST_AUTO_TEST_SUITE_END()

test/protocols/electrum/electrum_scriptpubkey.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,4 @@ BOOST_AUTO_TEST_CASE(electrum__blockchain_scriptpubkey_list_unspent__confirmed_a
427427
BOOST_REQUIRE(point12_0 < point11_1);
428428
}
429429

430-
// blockchain.scriptpubkey.subscribe
431-
// blockchain.scriptpubkey.unsubscribe
432-
433430
BOOST_AUTO_TEST_SUITE_END()
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* Copyright (c) 2011-2026 libbitcoin developers (see AUTHORS)
3+
*
4+
* This file is part of libbitcoin.
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Affero General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Affero General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Affero General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
#include "../../test.hpp"
20+
#include "electrum.hpp"
21+
22+
////using namespace system;
23+
////static const code not_found{ server::error::not_found };
24+
////static const code wrong_version{ server::error::wrong_version };
25+
////static const code not_implemented{ server::error::not_implemented };
26+
////static const code invalid_argument{ server::error::invalid_argument };
27+
28+
BOOST_FIXTURE_TEST_SUITE(electrum_tests, electrum_ten_block_setup_fixture)
29+
30+
// blockchain.address.subscribe
31+
// blockchain.scripthash.subscribe
32+
// blockchain.scripthash.unsubscribe
33+
// blockchain.scriptpubkey.subscribe
34+
// blockchain.scriptpubkey.unsubscribe
35+
36+
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)