Skip to content

Commit ddcb2cf

Browse files
committed
Comments.
1 parent 07f5e2f commit ddcb2cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/chain/block.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ code block::identify() const NOEXCEPT
868868
return error::block_success;
869869
}
870870

871+
// bip141 should be disabled when the node is not accepting witness data.
871872
code block::identify(const context& ctx) const NOEXCEPT
872873
{
873874
const auto bip141 = ctx.is_enabled(bip141_rule);
@@ -911,6 +912,7 @@ code block::check() const NOEXCEPT
911912
// median_time_past
912913

913914
// TODO: use of get_hash() in is_hash_limit_exceeded makes this thread unsafe.
915+
// bip141 should be disabled when the node is not accepting witness data.
914916
code block::check(const context& ctx) const NOEXCEPT
915917
{
916918
const auto bip141 = ctx.is_enabled(bip141_rule);

0 commit comments

Comments
 (0)