diff --git a/src/chasers/chaser_confirm.cpp b/src/chasers/chaser_confirm.cpp index 20e9da34..e29241ea 100644 --- a/src/chasers/chaser_confirm.cpp +++ b/src/chasers/chaser_confirm.cpp @@ -175,7 +175,7 @@ void chaser_confirm::do_validated(height_t height) NOEXCEPT do_bump(height); } -// TODO: This is a simplified variant of the full implementation below. +// TODO: This is simplified single thread variant of full implementation below. // This variant doesn't implement the relative work check and instead confirms // one block at a time, just like validation. void chaser_confirm::do_bump(height_t) NOEXCEPT @@ -208,9 +208,10 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT return; } - ///////////////////////////////////////// + ////////////////////////////////////////// // Confirmation query. - ///////////////////////////////////////// + // This will pull from new prevouts table. + ////////////////////////////////////////// if ((ec = query.block_confirmable(link))) { if (ec == database::error::integrity) @@ -283,7 +284,12 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT return; } - update_neutrino(link); + if (!update_neutrino(link)) + { + fault(error::confirm10); + return; + } + set_position(height); } } diff --git a/src/chasers/chaser_validate.cpp b/src/chasers/chaser_validate.cpp index 78c1fb9a..e8b51e3e 100644 --- a/src/chasers/chaser_validate.cpp +++ b/src/chasers/chaser_validate.cpp @@ -240,7 +240,7 @@ void chaser_validate::validate_block(const header_link& link) NOEXCEPT { ec = error::validate5; } - else if (!query.set_prevouts(ctx.height, *block)) + else if (!query.set_prevouts(link, *block)) { ec = error::validate6; }