Skip to content

Commit

Permalink
Adding rejected tips
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Apr 6, 2023
1 parent ea7a988 commit 03c14ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/tipmanager/tipmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func (t *TipManager) AddTipNonMonotonic(block *scheduler.Block) {
// Do not add a tip booked on a reject branch, we won't use it as a tip and it will otherwise remove parent tips.
blockConflictIDs := t.engine.Tangle.Booker().BlockConflicts(block.Block)
if t.engine.Ledger.MemPool().ConflictDAG().ConfirmationState(blockConflictIDs).IsRejected() {
fmt.Println(">> not adding rejected tip")
return
fmt.Println(">> adding rejected tip")
//return
}

if t.addTip(block) {
Expand Down

0 comments on commit 03c14ec

Please sign in to comment.