@@ -107,10 +107,10 @@ void protocol_explore::start() NOEXCEPT
107107 SUBSCRIBE_EXPLORE (handle_get_output_spender, _1, _2, _3, _4, _5, _6);
108108 SUBSCRIBE_EXPLORE (handle_get_output_spenders, _1, _2, _3, _4, _5, _6);
109109
110- SUBSCRIBE_EXPLORE (handle_get_address, _1, _2, _3, _4, _5);
111- SUBSCRIBE_EXPLORE (handle_get_address_confirmed, _1, _2, _3, _4, _5);
112- SUBSCRIBE_EXPLORE (handle_get_address_unconfirmed, _1, _2, _3, _4, _5);
113- SUBSCRIBE_EXPLORE (handle_get_address_balance, _1, _2, _3, _4, _5);
110+ SUBSCRIBE_EXPLORE (handle_get_address, _1, _2, _3, _4, _5, _6 );
111+ SUBSCRIBE_EXPLORE (handle_get_address_confirmed, _1, _2, _3, _4, _5, _6 );
112+ SUBSCRIBE_EXPLORE (handle_get_address_unconfirmed, _1, _2, _3, _4, _5, _6 );
113+ SUBSCRIBE_EXPLORE (handle_get_address_balance, _1, _2, _3, _4, _5, _6 );
114114 protocol_html::start ();
115115}
116116
@@ -480,10 +480,8 @@ bool protocol_explore::handle_get_block_filter_header(const code& ec,
480480 switch (media)
481481 {
482482 case data:
483- {
484483 send_chunk (to_chunk (filter_head));
485484 return true ;
486- }
487485 case text:
488486 send_text (encode_base16 (filter_head));
489487 return true ;
@@ -935,7 +933,7 @@ bool protocol_explore::handle_get_output_spenders(const code& ec,
935933// ----------------------------------------------------------------------------
936934
937935bool protocol_explore::handle_get_address (const code& ec, interface::address,
938- uint8_t , uint8_t media, const hash_cptr& hash) NOEXCEPT
936+ uint8_t , uint8_t media, const hash_cptr& hash, bool turbo ) NOEXCEPT
939937{
940938 if (stopped (ec))
941939 return false ;
@@ -947,16 +945,17 @@ bool protocol_explore::handle_get_address(const code& ec, interface::address,
947945 }
948946
949947 address_handler complete = BIND (complete_get_address, _1, _2, _3);
950- PARALLEL (do_get_address, media, hash, std::move (complete));
948+ PARALLEL (do_get_address, media, turbo, hash, std::move (complete));
951949 return true ;
952950}
953951
954952// private
955- void protocol_explore::do_get_address (uint8_t media, const hash_cptr& hash ,
956- const address_handler& handler) NOEXCEPT
953+ void protocol_explore::do_get_address (uint8_t media, bool turbo ,
954+ const hash_cptr& hash, const address_handler& handler) NOEXCEPT
957955{
958956 outpoints set{};
959- if (const auto ec = archive ().get_address_outputs (stopping_, set, *hash))
957+ if (const auto ec = archive ().get_address_outputs (stopping_, set,
958+ *hash, turbo))
960959 {
961960 handler (ec, {}, {});
962961 return ;
@@ -965,7 +964,7 @@ void protocol_explore::do_get_address(uint8_t media, const hash_cptr& hash,
965964 handler (network::error::success, media, std::move (set));
966965}
967966
968- // This is shared by the tree get_address.. methods.
967+ // This is shared by the three get_address. .. methods.
969968void protocol_explore::complete_get_address (const code& ec, uint8_t media,
970969 const outpoints& set) NOEXCEPT
971970{
@@ -1008,7 +1007,7 @@ void protocol_explore::complete_get_address(const code& ec, uint8_t media,
10081007
10091008bool protocol_explore::handle_get_address_confirmed (const code& ec,
10101009 interface::address_confirmed, uint8_t , uint8_t media,
1011- const hash_cptr& hash) NOEXCEPT
1010+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10121011{
10131012 if (stopped (ec))
10141013 return false ;
@@ -1020,17 +1019,17 @@ bool protocol_explore::handle_get_address_confirmed(const code& ec,
10201019 }
10211020
10221021 address_handler complete = BIND (complete_get_address, _1, _2, _3);
1023- PARALLEL (do_get_address_confirmed, media, hash, std::move (complete));
1022+ PARALLEL (do_get_address_confirmed, media, turbo, hash, std::move (complete));
10241023 return true ;
10251024}
10261025
10271026// private
1028- void protocol_explore::do_get_address_confirmed (uint8_t media,
1027+ void protocol_explore::do_get_address_confirmed (uint8_t media, bool turbo,
10291028 const hash_cptr& hash, const address_handler& handler) NOEXCEPT
10301029{
10311030 outpoints set{};
1032- if (const auto ec = archive ().get_confirmed_unspent_outputs (stopping_, set,
1033- *hash))
1031+ if (const auto ec = archive ().get_confirmed_unspent_outputs (stopping_,
1032+ set, *hash, turbo ))
10341033 {
10351034 handler (ec, {}, {});
10361035 return ;
@@ -1044,7 +1043,7 @@ void protocol_explore::do_get_address_confirmed(uint8_t media,
10441043
10451044bool protocol_explore::handle_get_address_unconfirmed (const code& ec,
10461045 interface::address_unconfirmed, uint8_t , uint8_t media,
1047- const hash_cptr& hash) NOEXCEPT
1046+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10481047{
10491048 if (stopped (ec))
10501049 return false ;
@@ -1054,11 +1053,11 @@ bool protocol_explore::handle_get_address_unconfirmed(const code& ec,
10541053 return true ;
10551054
10561055 address_handler complete = BIND (complete_get_address, _1, _2, _3);
1057- PARALLEL (do_get_address_unconfirmed, media, hash, std::move (complete));
1056+ PARALLEL (do_get_address_unconfirmed, media, turbo, hash, std::move (complete));
10581057 return true ;
10591058}
10601059
1061- void protocol_explore::do_get_address_unconfirmed (uint8_t media,
1060+ void protocol_explore::do_get_address_unconfirmed (uint8_t media, bool ,
10621061 const system::hash_cptr&, const address_handler& handler) NOEXCEPT
10631062{
10641063 handler (network::error::success, media, {});
@@ -1069,7 +1068,7 @@ void protocol_explore::do_get_address_unconfirmed(uint8_t media,
10691068
10701069bool protocol_explore::handle_get_address_balance (const code& ec,
10711070 interface::address_balance, uint8_t , uint8_t media,
1072- const hash_cptr& hash) NOEXCEPT
1071+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10731072{
10741073 if (stopped (ec))
10751074 return false ;
@@ -1082,16 +1081,16 @@ bool protocol_explore::handle_get_address_balance(const code& ec,
10821081 }
10831082
10841083 balance_handler complete = BIND (complete_get_address_balance, _1, _2, _3);
1085- PARALLEL (do_get_address_balance, media, hash, std::move (complete));
1084+ PARALLEL (do_get_address_balance, media, turbo, hash, std::move (complete));
10861085 return true ;
10871086}
10881087
1089- void protocol_explore::do_get_address_balance (uint8_t media,
1088+ void protocol_explore::do_get_address_balance (uint8_t media, bool turbo,
10901089 const system::hash_cptr& hash, const balance_handler& handler) NOEXCEPT
10911090{
10921091 uint64_t balance{};
10931092 if (const auto ec = archive ().get_confirmed_balance (stopping_, balance,
1094- *hash))
1093+ *hash, turbo ))
10951094 {
10961095 handler (ec, {}, {});
10971096 return ;
0 commit comments