File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -176,21 +176,27 @@ void chaser_validate::do_bumped(height_t height) NOEXCEPT
176176 }
177177 else
178178 {
179- complete_block (error::success, link, height, bypass );
179+ complete_block (error::success, link, height, true );
180180 }
181181 }
182182 else switch (ec.value ())
183183 {
184+ case database::error::unvalidated:
185+ {
186+ post_block (link, bypass);
187+ break ;
188+ }
184189 case database::error::block_valid:
185- case database::error::block_confirmable:
186190 {
187- // Previously valid is NOT considered bypass.
188- complete_block (error::success, link, height, bypass);
191+ if (query.is_prevouts_cached (link))
192+ post_block (link, true );
193+ else
194+ complete_block (error::success, link, height, true );
189195 break ;
190196 }
191- case database::error::unvalidated :
197+ case database::error::block_confirmable :
192198 {
193- post_block ( link, bypass );
199+ complete_block (error::success, link, height, true );
194200 break ;
195201 }
196202 case database::error::block_unconfirmable:
You can’t perform that action at this time.
0 commit comments