@@ -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
@@ -935,7 +935,7 @@ bool protocol_explore::handle_get_output_spenders(const code& ec,
935935// ----------------------------------------------------------------------------
936936
937937bool protocol_explore::handle_get_address (const code& ec, interface::address,
938- uint8_t , uint8_t media, const hash_cptr& hash) NOEXCEPT
938+ uint8_t , uint8_t media, const hash_cptr& hash, bool turbo ) NOEXCEPT
939939{
940940 if (stopped (ec))
941941 return false ;
@@ -947,16 +947,17 @@ bool protocol_explore::handle_get_address(const code& ec, interface::address,
947947 }
948948
949949 address_handler complete = BIND (complete_get_address, _1, _2, _3);
950- PARALLEL (do_get_address, media, hash, std::move (complete));
950+ PARALLEL (do_get_address, media, turbo, hash, std::move (complete));
951951 return true ;
952952}
953953
954954// private
955- void protocol_explore::do_get_address (uint8_t media, const hash_cptr& hash ,
956- const address_handler& handler) NOEXCEPT
955+ void protocol_explore::do_get_address (uint8_t media, bool turbo ,
956+ const hash_cptr& hash, const address_handler& handler) NOEXCEPT
957957{
958958 outpoints set{};
959- if (const auto ec = archive ().get_address_outputs (stopping_, set, *hash))
959+ if (const auto ec = archive ().get_address_outputs (stopping_, set,
960+ *hash, turbo))
960961 {
961962 handler (ec, {}, {});
962963 return ;
@@ -965,7 +966,7 @@ void protocol_explore::do_get_address(uint8_t media, const hash_cptr& hash,
965966 handler (network::error::success, media, std::move (set));
966967}
967968
968- // This is shared by the tree get_address.. methods.
969+ // This is shared by the three get_address. .. methods.
969970void protocol_explore::complete_get_address (const code& ec, uint8_t media,
970971 const outpoints& set) NOEXCEPT
971972{
@@ -1008,7 +1009,7 @@ void protocol_explore::complete_get_address(const code& ec, uint8_t media,
10081009
10091010bool protocol_explore::handle_get_address_confirmed (const code& ec,
10101011 interface::address_confirmed, uint8_t , uint8_t media,
1011- const hash_cptr& hash) NOEXCEPT
1012+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10121013{
10131014 if (stopped (ec))
10141015 return false ;
@@ -1020,17 +1021,17 @@ bool protocol_explore::handle_get_address_confirmed(const code& ec,
10201021 }
10211022
10221023 address_handler complete = BIND (complete_get_address, _1, _2, _3);
1023- PARALLEL (do_get_address_confirmed, media, hash, std::move (complete));
1024+ PARALLEL (do_get_address_confirmed, media, turbo, hash, std::move (complete));
10241025 return true ;
10251026}
10261027
10271028// private
1028- void protocol_explore::do_get_address_confirmed (uint8_t media,
1029+ void protocol_explore::do_get_address_confirmed (uint8_t media, bool turbo,
10291030 const hash_cptr& hash, const address_handler& handler) NOEXCEPT
10301031{
10311032 outpoints set{};
1032- if (const auto ec = archive ().get_confirmed_unspent_outputs (stopping_, set,
1033- *hash))
1033+ if (const auto ec = archive ().get_confirmed_unspent_outputs (stopping_,
1034+ set, *hash, turbo ))
10341035 {
10351036 handler (ec, {}, {});
10361037 return ;
@@ -1044,7 +1045,7 @@ void protocol_explore::do_get_address_confirmed(uint8_t media,
10441045
10451046bool protocol_explore::handle_get_address_unconfirmed (const code& ec,
10461047 interface::address_unconfirmed, uint8_t , uint8_t media,
1047- const hash_cptr& hash) NOEXCEPT
1048+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10481049{
10491050 if (stopped (ec))
10501051 return false ;
@@ -1054,11 +1055,11 @@ bool protocol_explore::handle_get_address_unconfirmed(const code& ec,
10541055 return true ;
10551056
10561057 address_handler complete = BIND (complete_get_address, _1, _2, _3);
1057- PARALLEL (do_get_address_unconfirmed, media, hash, std::move (complete));
1058+ PARALLEL (do_get_address_unconfirmed, media, turbo, hash, std::move (complete));
10581059 return true ;
10591060}
10601061
1061- void protocol_explore::do_get_address_unconfirmed (uint8_t media,
1062+ void protocol_explore::do_get_address_unconfirmed (uint8_t media, bool ,
10621063 const system::hash_cptr&, const address_handler& handler) NOEXCEPT
10631064{
10641065 handler (network::error::success, media, {});
@@ -1069,7 +1070,7 @@ void protocol_explore::do_get_address_unconfirmed(uint8_t media,
10691070
10701071bool protocol_explore::handle_get_address_balance (const code& ec,
10711072 interface::address_balance, uint8_t , uint8_t media,
1072- const hash_cptr& hash) NOEXCEPT
1073+ const hash_cptr& hash, bool turbo ) NOEXCEPT
10731074{
10741075 if (stopped (ec))
10751076 return false ;
@@ -1082,16 +1083,16 @@ bool protocol_explore::handle_get_address_balance(const code& ec,
10821083 }
10831084
10841085 balance_handler complete = BIND (complete_get_address_balance, _1, _2, _3);
1085- PARALLEL (do_get_address_balance, media, hash, std::move (complete));
1086+ PARALLEL (do_get_address_balance, media, turbo, hash, std::move (complete));
10861087 return true ;
10871088}
10881089
1089- void protocol_explore::do_get_address_balance (uint8_t media,
1090+ void protocol_explore::do_get_address_balance (uint8_t media, bool turbo,
10901091 const system::hash_cptr& hash, const balance_handler& handler) NOEXCEPT
10911092{
10921093 uint64_t balance{};
10931094 if (const auto ec = archive ().get_confirmed_balance (stopping_, balance,
1094- *hash))
1095+ *hash, turbo ))
10951096 {
10961097 handler (ec, {}, {});
10971098 return ;
0 commit comments