Skip to content

Commit fcefb77

Browse files
committed
Update confirm error codes.
1 parent 74cacb3 commit fcefb77

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/chasers/chaser_confirm.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
208208
// Set before if not using prevout table.
209209
if (!prevout_ && !query.set_strong(link))
210210
{
211-
fault(error::confirm5);
211+
fault(error::confirm2);
212212
return;
213213
}
214214

@@ -242,14 +242,14 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
242242

243243
if (!query.set_block_confirmable(link))
244244
{
245-
fault(error::confirm4);
245+
fault(error::confirm3);
246246
return;
247247
}
248248

249249
// Set after if using prevout table.
250250
if (prevout_ && !query.set_strong(link))
251251
{
252-
fault(error::confirm5);
252+
fault(error::confirm4);
253253
return;
254254
}
255255
}
@@ -258,7 +258,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
258258
// Set in either case.
259259
if (!query.set_strong(link))
260260
{
261-
fault(error::confirm6);
261+
fault(error::confirm5);
262262
return;
263263
}
264264
}
@@ -271,21 +271,21 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
271271
// database::error::block_confirmable [resurrected state]
272272
// database::error::block_unconfirmable [shouldn't be here]
273273
// database::error::unknown_state [shouldn't be here]
274-
fault(error::confirm7);
274+
fault(error::confirm6);
275275
return;
276276
}
277277

278278
if (!query.set_filter_head(link))
279279
{
280-
fault(error::confirm8);
280+
fault(error::confirm7);
281281
return;
282282
}
283283

284-
if (!set_organized(link, height))
285-
{
286-
fault(error::confirm9);
287-
return;
288-
}
284+
////if (!set_organized(link, height))
285+
////{
286+
//// fault(error::confirm8);
287+
//// return;
288+
////}
289289

290290
set_position(height);
291291

0 commit comments

Comments
 (0)