Skip to content

Commit

Permalink
Merge pull request Tribler#40 from rwblokzijl/master
Browse files Browse the repository at this point in the history
Fail process halfblock if invalid, just like python implementation
  • Loading branch information
rwblokzijl authored Feb 22, 2021
2 parents 13482a9 + 31ff46f commit f98dce8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ open class TrustChainCommunity(

// TODO: Check if we are waiting for this signature response

if (result is ValidationResult.Invalid) return

// We can create an agreement block if this is a proposal block targeted to us and we
// have not created a linked agreement block yet
val canSign = block.isProposal &&
Expand Down

0 comments on commit f98dce8

Please sign in to comment.