Skip to content

Commit a7d8cd0

Browse files
committed
Ensure json-rpc interfaces expect double for optional<>.
1 parent a3dfe52 commit a7d8cd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/bitcoin/node/interfaces/electrum.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ struct electrum_methods
3131
static constexpr std::tuple methods
3232
{
3333
/// Blockchain methods.
34-
method<"blockchain.block.header", number_t, optional<0>>{ "height", "cp_height" },
35-
method<"blockchain.block.headers", number_t, number_t, optional<0>>{ "start_height", "count", "cp_height" },
34+
method<"blockchain.block.header", number_t, optional<0.0>>{ "height", "cp_height" },
35+
method<"blockchain.block.headers", number_t, number_t, optional<0.0>>{ "start_height", "count", "cp_height" },
3636
method<"blockchain.estimatefee", number_t>{ "number" },
3737
method<"blockchain.headers.subscribe">{},
3838
method<"blockchain.relayfee">{},

include/bitcoin/node/interfaces/stratum_v1.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct stratum_v1_methods
3131
static constexpr std::tuple methods
3232
{
3333
/// Client requests.
34-
method<"mining.subscribe", optional<""_t>, optional<0>>{ "user_agent", "extranonce1_size" },
34+
method<"mining.subscribe", optional<""_t>, optional<0.0>>{ "user_agent", "extranonce1_size" },
3535
method<"mining.authorize", string_t, string_t>{ "username", "password" },
3636
method<"mining.submit", string_t, string_t, string_t, number_t, string_t>{ "worker_name", "job_id", "extranonce2", "ntime", "nonce" },
3737
method<"mining.extranonce.subscribe">{},

0 commit comments

Comments
 (0)