Skip to content
Snippets Groups Projects
Commit 781f8d79 authored by COLLET Ismael's avatar COLLET Ismael
Browse files

Update tipmanager.go

parent 3184be98
Branches
Tags
No related merge requests found
...@@ -55,7 +55,7 @@ func (t *TipManager) RemoveTip(valueObject *payload.Payload) { ...@@ -55,7 +55,7 @@ func (t *TipManager) RemoveTip(valueObject *payload.Payload) {
// Tips returns two randomly selected tips. // Tips returns two randomly selected tips.
func (t *TipManager) Tips() (parent1ObjectID, parent2ObjectID payload.ID) { func (t *TipManager) Tips() (parent1ObjectID, parent2ObjectID payload.ID) {
tip := t.tips.RandomEntry() tip := t.tips.RandomEntry()
if tip == nil { if true { // Original code : if tip == nil
parent1ObjectID = payload.GenesisID parent1ObjectID = payload.GenesisID
parent2ObjectID = payload.GenesisID parent2ObjectID = payload.GenesisID
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment