Skip to content

Commit 63c9b14

Browse files
committed
Style, comments.
1 parent aaf507c commit 63c9b14

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

include/bitcoin/node/impl/chasers/chaser_organize.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void CLASS::do_organize(typename Block::cptr block,
183183
{
184184
handler(system::error::checkpoint_conflict, height);
185185
return;
186-
};
186+
}
187187

188188
// Blocks of headers are validated later, malleations ignored until then.
189189
// Blocks are fully validated (not confirmed), so malleation is non-issue.
@@ -517,7 +517,7 @@ code CLASS::push_block(const Block& block,
517517
// events::header_archived | events::block_archived
518518
fire(events_object_archived(), ctx.height);
519519
LOGV("Header archived: " << ctx.height);
520-
return set_organized(link, ctx.height) ? ec : error::organize14;
520+
return set_organized(link, ctx.height) ? error::success : error::organize14;
521521
}
522522

523523
TEMPLATE

src/chasers/chaser_header.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ code chaser_header::duplicate(size_t& height,
8282
return ec;
8383
}
8484

85+
// height set to max_size_t unless unconfirmable.
8586
return error::duplicate_header;
8687
}
8788

0 commit comments

Comments
 (0)