Skip to content

Commit fb9f6a8

Browse files
committed
Assert stranded in protocol_explore.
1 parent 3dd594f commit fb9f6a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/protocols/protocol_explore.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,8 @@ bool protocol_explore::handle_get_output_spenders(const code& ec,
934934
bool protocol_explore::handle_get_address(const code& ec, interface::address,
935935
uint8_t, uint8_t media, const hash_cptr& hash, bool turbo) NOEXCEPT
936936
{
937+
BC_ASSERT(stranded());
938+
937939
if (stopped(ec))
938940
return false;
939941

@@ -1010,6 +1012,8 @@ bool protocol_explore::handle_get_address_confirmed(const code& ec,
10101012
interface::address_confirmed, uint8_t, uint8_t media,
10111013
const hash_cptr& hash, bool turbo) NOEXCEPT
10121014
{
1015+
BC_ASSERT(stranded());
1016+
10131017
if (stopped(ec))
10141018
return false;
10151019

@@ -1045,6 +1049,8 @@ bool protocol_explore::handle_get_address_unconfirmed(const code& ec,
10451049
interface::address_unconfirmed, uint8_t, uint8_t,
10461050
const hash_cptr&, bool) NOEXCEPT
10471051
{
1052+
BC_ASSERT(stranded());
1053+
10481054
if (stopped(ec))
10491055
return false;
10501056

@@ -1060,6 +1066,8 @@ bool protocol_explore::handle_get_address_balance(const code& ec,
10601066
interface::address_balance, uint8_t, uint8_t media,
10611067
const hash_cptr& hash, bool turbo) NOEXCEPT
10621068
{
1069+
BC_ASSERT(stranded());
1070+
10631071
if (stopped(ec))
10641072
return false;
10651073

0 commit comments

Comments
 (0)