Skip to content

Commit 1bd12b8

Browse files
committed
Simplify stranded asserts.
1 parent 2f18a61 commit 1bd12b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/full_node.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void full_node::do_run(const result_handler& handler) NOEXCEPT
121121
void full_node::start_web(const code& ec,
122122
const result_handler& handler) NOEXCEPT
123123
{
124-
BC_ASSERT_MSG(stranded(), "strand");
124+
BC_ASSERT(stranded());
125125

126126
if (ec)
127127
{
@@ -136,7 +136,7 @@ void full_node::start_web(const code& ec,
136136
void full_node::start_explore(const code& ec,
137137
const result_handler& handler) NOEXCEPT
138138
{
139-
BC_ASSERT_MSG(stranded(), "strand");
139+
BC_ASSERT(stranded());
140140

141141
if (ec)
142142
{
@@ -151,7 +151,7 @@ void full_node::start_explore(const code& ec,
151151
void full_node::start_websocket(const code& ec,
152152
const result_handler& handler) NOEXCEPT
153153
{
154-
BC_ASSERT_MSG(stranded(), "strand");
154+
BC_ASSERT(stranded());
155155

156156
if (ec)
157157
{
@@ -166,7 +166,7 @@ void full_node::start_websocket(const code& ec,
166166
void full_node::start_bitcoind(const code& ec,
167167
const result_handler& handler) NOEXCEPT
168168
{
169-
BC_ASSERT_MSG(stranded(), "strand");
169+
BC_ASSERT(stranded());
170170

171171
if (ec)
172172
{
@@ -181,7 +181,7 @@ void full_node::start_bitcoind(const code& ec,
181181
void full_node::start_electrum(const code& ec,
182182
const result_handler& handler) NOEXCEPT
183183
{
184-
BC_ASSERT_MSG(stranded(), "strand");
184+
BC_ASSERT(stranded());
185185

186186
if (ec)
187187
{
@@ -196,7 +196,7 @@ void full_node::start_electrum(const code& ec,
196196
void full_node::start_stratum_v1(const code& ec,
197197
const result_handler& handler) NOEXCEPT
198198
{
199-
BC_ASSERT_MSG(stranded(), "strand");
199+
BC_ASSERT(stranded());
200200

201201
if (ec)
202202
{
@@ -211,7 +211,7 @@ void full_node::start_stratum_v1(const code& ec,
211211
void full_node::start_stratum_v2(const code& ec,
212212
const result_handler& handler) NOEXCEPT
213213
{
214-
BC_ASSERT_MSG(stranded(), "strand");
214+
BC_ASSERT(stranded());
215215

216216
if (ec)
217217
{

0 commit comments

Comments
 (0)