Skip to content

Commit 3512b36

Browse files
committed
Rename electrum method ...listunspent to ...list_unspent.
1 parent 599178b commit 3512b36

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

include/bitcoin/server/interfaces/bitcoind_rpc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct bitcoind_rpc_methods
126126
////method<"listreceivedbyaddress", optional<1>, optional<false>, optional<false>, optional<""_t>>{ "minconf", "include_empty", "include_watchonly", "address_filter" },
127127
////method<"listreceivedbylabel", optional<1>, optional<false>, optional<false>>{ "minconf", "include_empty", "include_watchonly" },
128128
////method<"listtransactions", optional<""_t>, optional<10>, optional<0>, optional<false>>{ "label", "count", "skip", "include_watchonly" },
129-
////method<"listunspent", optional<1>, optional<empty::array>, optional<true>, optional<false>>{ "minconf", "addresses", "include_unsafe", "query_options" },
129+
////method<"list_unspent", optional<1>, optional<empty::array>, optional<true>, optional<false>>{ "minconf", "addresses", "include_unsafe", "query_options" },
130130
////method<"loadwallet", string_t, optional<false>>{ "filename", "load_on_startup" },
131131
////method<"lockunspent", boolean_t, optional<empty::array>>{ "unlock", "transactions" },
132132
////method<"removeprunedfunds", string_t>{ "txid" },

include/bitcoin/server/interfaces/electrum.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct electrum_methods
4040
method<"blockchain.scripthash.get_balance", string_t>{ "scripthash" },
4141
method<"blockchain.scripthash.get_history", string_t>{ "scripthash" },
4242
method<"blockchain.scripthash.get_mempool", string_t>{ "scripthash" },
43-
method<"blockchain.scripthash.listunspent", string_t>{ "scripthash" },
43+
method<"blockchain.scripthash.list_unspent", string_t>{ "scripthash" },
4444
method<"blockchain.scripthash.subscribe", string_t>{ "scripthash" },
4545
method<"blockchain.scripthash.unsubscribe", string_t>{ "scripthash" },
4646
method<"blockchain.transaction.broadcast", string_t>{ "raw_tx" },
@@ -76,7 +76,7 @@ struct electrum_methods
7676
using blockchain_scripthash_get_balance = at<5>;
7777
using blockchain_scripthash_get_history = at<6>;
7878
using blockchain_scripthash_get_mempool = at<7>;
79-
using blockchain_scripthash_listunspent = at<8>;
79+
using blockchain_scripthash_list_unspent = at<8>;
8080
using blockchain_scripthash_subscribe = at<9>;
8181
using blockchain_scripthash_unsubscribe = at<10>;
8282
using blockchain_transaction_broadcast = at<11>;

include/bitcoin/server/protocols/protocol_electrum.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class BCS_API protocol_electrum
7373
void handle_blockchain_scripthash_get_mempool(const code& ec,
7474
rpc_interface::blockchain_scripthash_get_mempool,
7575
const std::string& scripthash) NOEXCEPT;
76-
void handle_blockchain_scripthash_listunspent(const code& ec,
77-
rpc_interface::blockchain_scripthash_listunspent,
76+
void handle_blockchain_scripthash_list_unspent(const code& ec,
77+
rpc_interface::blockchain_scripthash_list_unspent,
7878
const std::string& scripthash) NOEXCEPT;
7979
void handle_blockchain_scripthash_subscribe(const code& ec,
8080
rpc_interface::blockchain_scripthash_subscribe,

src/protocols/protocol_electrum.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void protocol_electrum::start() NOEXCEPT
5656
SUBSCRIBE_RPC(handle_blockchain_scripthash_get_balance, _1, _2, _3);
5757
SUBSCRIBE_RPC(handle_blockchain_scripthash_get_history, _1, _2, _3);
5858
SUBSCRIBE_RPC(handle_blockchain_scripthash_get_mempool, _1, _2, _3);
59-
SUBSCRIBE_RPC(handle_blockchain_scripthash_listunspent, _1, _2, _3);
59+
SUBSCRIBE_RPC(handle_blockchain_scripthash_list_unspent, _1, _2, _3);
6060
SUBSCRIBE_RPC(handle_blockchain_scripthash_subscribe, _1, _2, _3);
6161
SUBSCRIBE_RPC(handle_blockchain_scripthash_unsubscribe, _1, _2, _3);
6262
SUBSCRIBE_RPC(handle_blockchain_transaction_broadcast, _1, _2, _3);
@@ -180,8 +180,8 @@ void protocol_electrum::handle_blockchain_scripthash_get_mempool(const code& ec,
180180
send_code(error::not_implemented);
181181
}
182182

183-
void protocol_electrum::handle_blockchain_scripthash_listunspent(const code& ec,
184-
rpc_interface::blockchain_scripthash_listunspent,
183+
void protocol_electrum::handle_blockchain_scripthash_list_unspent(const code& ec,
184+
rpc_interface::blockchain_scripthash_list_unspent,
185185
const std::string& ) NOEXCEPT
186186
{
187187
if (stopped(ec)) return;

0 commit comments

Comments
 (0)