@@ -140,6 +140,7 @@ bool protocol_electrum::handle_event(const code&, node::chase event_,
140140 constexpr auto relaxed = std::memory_order_relaxed;
141141 switch (event_)
142142 {
143+ // //case node::chase::transaction:
143144 case node::chase::organized:
144145 {
145146 if (subscribed_height_.load (relaxed))
@@ -154,22 +155,17 @@ bool protocol_electrum::handle_event(const code&, node::chase event_,
154155 POST (do_header, std::get<node::header_t >(value));
155156 }
156157
157- break ;
158- }
159- case node::chase::spent:
160- case node::chase::received:
161- {
162158 if (subscribed_outpoint_.load (relaxed))
163159 {
164- BC_ASSERT (std::holds_alternative<node::address_t >(value));
165- POST (do_outpoint, std::get<node::address_t >(value));
160+ BC_ASSERT (std::holds_alternative<node::header_t >(value));
161+ POST (do_outpoint, std::get<node::header_t >(value));
166162 }
167163
168164 if (subscribed_scripthash_.load (relaxed))
169165 {
170166 BC_ASSERT (archive ().address_enabled ());
171- BC_ASSERT (std::holds_alternative<node::address_t >(value));
172- POST (do_scripthash, std::get<node::address_t >(value));
167+ BC_ASSERT (std::holds_alternative<node::header_t >(value));
168+ POST (do_scripthash, std::get<node::header_t >(value));
173169 }
174170
175171 break ;
@@ -230,7 +226,7 @@ void protocol_electrum::do_header(node::header_t link) NOEXCEPT
230226}
231227
232228// Notifier for blockchain_outpoint_subscribe events.
233- void protocol_electrum::do_outpoint (node::address_t link) NOEXCEPT
229+ void protocol_electrum::do_outpoint (node::header_t link) NOEXCEPT
234230{
235231 BC_ASSERT (stranded ());
236232
@@ -254,7 +250,7 @@ void protocol_electrum::do_outpoint(node::address_t link) NOEXCEPT
254250}
255251
256252// Notifier for blockchain_scripthash_subscribe events.
257- void protocol_electrum::do_scripthash (node::address_t link) NOEXCEPT
253+ void protocol_electrum::do_scripthash (node::header_t link) NOEXCEPT
258254{
259255 BC_ASSERT (stranded ());
260256
@@ -269,7 +265,7 @@ void protocol_electrum::do_scripthash(node::address_t link) NOEXCEPT
269265}
270266
271267void protocol_electrum::notify_status (const code& ec, const hash_digest& hash,
272- const hash_digest& status, notify_t type, node::address_t link) NOEXCEPT
268+ const hash_digest& status, notify_t type, node::header_t link) NOEXCEPT
273269{
274270 BC_ASSERT (stranded ());
275271
0 commit comments