Skip to content

Commit

Permalink
Feat: Upgrade to latest hive.go (#504)
Browse files Browse the repository at this point in the history
* Feat: Upgrade to latest hive.go

* Feat: upgraded to merged version
  • Loading branch information
hmoog authored Nov 8, 2023
1 parent bc7ea4c commit 3e6cdd1
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 135 deletions.
28 changes: 14 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ require (
github.com/google/uuid v1.4.0
github.com/gorilla/websocket v1.5.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/iotaledger/hive.go/ads v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/app v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/constraints v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/crypto v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/ds v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/lo v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/logger v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/runtime v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/stringify v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa
Expand Down Expand Up @@ -89,7 +89,7 @@ require (
github.com/huin/goupnp v1.3.0 // indirect
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/iotaledger/grocksdb v1.7.5-0.20230220105546-5162e18885c7 // indirect
github.com/iotaledger/hive.go/log v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/ipfs/boxo v0.13.1 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/ipfs/go-datastore v0.6.0 // indirect
Expand Down
56 changes: 28 additions & 28 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -275,34 +275,34 @@ github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJ
github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
github.com/iotaledger/grocksdb v1.7.5-0.20230220105546-5162e18885c7 h1:dTrD7X2PTNgli6EbS4tV9qu3QAm/kBU3XaYZV2xdzys=
github.com/iotaledger/grocksdb v1.7.5-0.20230220105546-5162e18885c7/go.mod h1:ZRdPu684P0fQ1z8sXz4dj9H5LWHhz4a9oCtvjunkSrw=
github.com/iotaledger/hive.go/ads v0.0.0-20231108050255-98e0fa35e936 h1:2r4FgIGdc2lHcIbXiUFCCVq4+B0oZk9t6Z0SSLjrzCE=
github.com/iotaledger/hive.go/ads v0.0.0-20231108050255-98e0fa35e936/go.mod h1:gbUvr01B5ha530GnNm8K2OsHXOd2BtzBYOMxyTX3iDg=
github.com/iotaledger/hive.go/app v0.0.0-20231108050255-98e0fa35e936 h1:SnmQt9GxrWIvpW7pgQS049x1b8T+lQutTQbo35FImug=
github.com/iotaledger/hive.go/app v0.0.0-20231108050255-98e0fa35e936/go.mod h1:+riYmeLApkLlj4+EpuJpEJAsj/KGfD7cqLGy7oTsPOM=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108050255-98e0fa35e936 h1:qkq0Wz+Y3J8QYRLd0fwTgHuur/A3k7d82BxOKSfvk8c=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108050255-98e0fa35e936/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108050255-98e0fa35e936 h1:GtsYwcCqRomhMo190TPxBrOzs6YnVmqkmQgT/lJrJRo=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108050255-98e0fa35e936/go.mod h1:CdixkrB7VdQzEDlVuwsxPtsiJL/WXrQgz3PELIqlLko=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108050255-98e0fa35e936 h1:Xeb4w0g0Kv2ZjdCZQqz8oiqAU5qAy8OXG8kGTXSPzuY=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108050255-98e0fa35e936/go.mod h1:OQ9EVTTQT1mkO/16BgwSIyQlAhEg+Cptud/yutevWsI=
github.com/iotaledger/hive.go/ds v0.0.0-20231108050255-98e0fa35e936 h1:NtQLSS0Lq5qg/w5nbMpXrlQpmcK3KiOaQmgZWoRc4mM=
github.com/iotaledger/hive.go/ds v0.0.0-20231108050255-98e0fa35e936/go.mod h1:JE8cbZSvzbB5TrwXibg6M0B7ck35YxF30ItHBzQRlgc=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108050255-98e0fa35e936 h1:o5S4KUAwToOLXoYYRj9ZgqeDsFv1VRM4+Mni0Tdj2Ck=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108050255-98e0fa35e936/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108050255-98e0fa35e936 h1:kXKJQ8UvbA8kI0Jx0EnlXbwDeZFY8pEX0Q6KaOPsYlQ=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108050255-98e0fa35e936/go.mod h1:ytfKoHr/nF8u0y0G4mamfG0yjFtJiJVk0kgjnPOtsSY=
github.com/iotaledger/hive.go/lo v0.0.0-20231108050255-98e0fa35e936 h1:coXPklQ7JgqTXIUXh3b4OHml1VIvI8x7pQsjsES/u/s=
github.com/iotaledger/hive.go/lo v0.0.0-20231108050255-98e0fa35e936/go.mod h1:6Ee7i6b4tuTHuRYnPP8VUb0wr9XFI5qlqtnttBd9jRg=
github.com/iotaledger/hive.go/log v0.0.0-20231108050255-98e0fa35e936 h1:VBvGnsVwqhoT9zMyMIlK5fPmz6fsbiPZOwdU1E8WU7o=
github.com/iotaledger/hive.go/log v0.0.0-20231108050255-98e0fa35e936/go.mod h1:vzO4/wRkEJDEZb/9fD10oKU9k1bj4qLir2Uhl5U1FkM=
github.com/iotaledger/hive.go/logger v0.0.0-20231108050255-98e0fa35e936 h1:05EbTaladbyo7mD8yBaWYJh9P8u/TUTmrjVmcUjoW8A=
github.com/iotaledger/hive.go/logger v0.0.0-20231108050255-98e0fa35e936/go.mod h1:w1psHM2MuKsen1WdsPKrpqElYH7ZOQ+YdQIgJZg4HTo=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108050255-98e0fa35e936 h1:XbC1fmY87UJ/yMs8U2YqlUdJsqb0Xqj/ZYQKlZ7AUG8=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108050255-98e0fa35e936/go.mod h1:DrZPvUvLarK8C2qb+3H2vdypp/MuhpQmB3iMJbDCr/Q=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108050255-98e0fa35e936 h1:LXhLW2cN9bQYoHQsgmJRb/jiRBRU5s2rLoCNjZfgHdg=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108050255-98e0fa35e936/go.mod h1:FoH3T6yKlZJp8xm8K+zsQiibSynp32v21CpWx8xkek8=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108050255-98e0fa35e936 h1:Y4HgL5gm9S27usg5M2t6wi1BSdCxVorM62lwnpKuMd4=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108050255-98e0fa35e936/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs=
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258 h1:wPNHVm76dOw/P5KFHrlnMxZDQqrgqUVLrNLhcYbLLko=
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258/go.mod h1:gbUvr01B5ha530GnNm8K2OsHXOd2BtzBYOMxyTX3iDg=
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258 h1:akc8HhwdRq8DiRAQQXv/UQm0qbA9ZunT/mVmFX7fYZw=
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258/go.mod h1:+riYmeLApkLlj4+EpuJpEJAsj/KGfD7cqLGy7oTsPOM=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258 h1:pFOt744BV5Y96Igek0H2CiSkRi6+OfsKv0upAKl5Pyc=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258 h1:gtLCfc5S7Kv5IYlm729yQ2cwLGv8bjU1u+dp7zJQhfw=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258/go.mod h1:CdixkrB7VdQzEDlVuwsxPtsiJL/WXrQgz3PELIqlLko=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258 h1:cGNEoS/zrmqhISWwa/Yfro2yqHI2QXeinv7O1qBq2B4=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258/go.mod h1:OQ9EVTTQT1mkO/16BgwSIyQlAhEg+Cptud/yutevWsI=
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258 h1:WASEdf1LmtiUH13xDLDKgDrCjTXbhRSzMaYK7sg5xYY=
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258/go.mod h1:JE8cbZSvzbB5TrwXibg6M0B7ck35YxF30ItHBzQRlgc=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258 h1:iwYDLiTYzUXQxMhge/F+gqEhQApLjyrH40MmTUrXp5Q=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258 h1:CmNAIm53EybssTv4zqihNwUbcxm9LQaCK53xPXTsJAk=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258/go.mod h1:ytfKoHr/nF8u0y0G4mamfG0yjFtJiJVk0kgjnPOtsSY=
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258 h1:C0T7uC+FCqd21J+GUuctmMOWGjRQ+LiKXuaaPqvEEq0=
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258/go.mod h1:6Ee7i6b4tuTHuRYnPP8VUb0wr9XFI5qlqtnttBd9jRg=
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258 h1:FMsVixGSddscSU42/jZGn3T/FC3uK9AZ+hyD8NmaIRs=
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258/go.mod h1:vzO4/wRkEJDEZb/9fD10oKU9k1bj4qLir2Uhl5U1FkM=
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258 h1:R95wmni0W5VTYoxFq9nK27Tu68T10J5eZSVtxNqedA4=
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258/go.mod h1:w1psHM2MuKsen1WdsPKrpqElYH7ZOQ+YdQIgJZg4HTo=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258 h1:g8p/vhtNgN1SmC4fJmL7rtfRra/LKYbqiTSLyWc+gT8=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258/go.mod h1:DrZPvUvLarK8C2qb+3H2vdypp/MuhpQmB3iMJbDCr/Q=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258 h1:VO4uxLxVluS1dxAyvbVK65mVEnvxdLed4T3+KNHUwXE=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258/go.mod h1:FoH3T6yKlZJp8xm8K+zsQiibSynp32v21CpWx8xkek8=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258 h1:d1aQLfpjjpDr/yUTt8BhZTYjnNj5kyyAvMKDOAQrl8o=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs=
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82 h1:FdM1lxUKgENO3oOlF5blVqmjER44mLIHGpavyUOY5JI=
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82/go.mod h1:HVxkGPraMDTRudfG9AFN7Ga9gijp6skXB9TKNBc4KgI=
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998 h1:KkC0SaWrjSMg897r2DDosJYALFfLadFST3Fvoaxg7hw=
Expand Down
30 changes: 15 additions & 15 deletions pkg/protocol/engine/tipmanager/v1/tip_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,63 +100,63 @@ func NewBlockMetadata(block *blocks.Block) *TipMetadata {
weaklyOrphanedWeakParents: reactive.NewCounter[bool](),
}

t.isMarkedOrphaned = reactive.NewDerivedVariable2[bool, bool](func(isLivenessThresholdReached bool, isAccepted bool) bool {
t.isMarkedOrphaned = reactive.NewDerivedVariable2[bool, bool](func(_, isLivenessThresholdReached, isAccepted bool) bool {
return isLivenessThresholdReached && !isAccepted
}, t.livenessThresholdReached, block.Accepted())

t.anyStrongParentStronglyOrphaned = reactive.NewDerivedVariable[bool, int](func(stronglyOrphanedStrongParents int) bool {
t.anyStrongParentStronglyOrphaned = reactive.NewDerivedVariable[bool, int](func(_ bool, stronglyOrphanedStrongParents int) bool {
return stronglyOrphanedStrongParents > 0
}, t.stronglyOrphanedStrongParents)

t.anyWeakParentWeaklyOrphaned = reactive.NewDerivedVariable[bool, int](func(weaklyOrphanedWeakParents int) bool {
t.anyWeakParentWeaklyOrphaned = reactive.NewDerivedVariable[bool, int](func(_ bool, weaklyOrphanedWeakParents int) bool {
return weaklyOrphanedWeakParents > 0
}, t.weaklyOrphanedWeakParents)

t.isStronglyOrphaned = reactive.NewDerivedVariable3[bool, bool, bool, bool](func(isMarkedOrphaned, anyStrongParentStronglyOrphaned, anyWeakParentWeaklyOrphaned bool) bool {
t.isStronglyOrphaned = reactive.NewDerivedVariable3[bool, bool, bool, bool](func(_, isMarkedOrphaned, anyStrongParentStronglyOrphaned, anyWeakParentWeaklyOrphaned bool) bool {
return isMarkedOrphaned || anyStrongParentStronglyOrphaned || anyWeakParentWeaklyOrphaned
}, t.isMarkedOrphaned, t.anyStrongParentStronglyOrphaned, t.anyWeakParentWeaklyOrphaned)

t.isWeaklyOrphaned = reactive.NewDerivedVariable2[bool, bool, bool](func(isMarkedOrphaned, anyWeakParentWeaklyOrphaned bool) bool {
t.isWeaklyOrphaned = reactive.NewDerivedVariable2[bool, bool, bool](func(_, isMarkedOrphaned, anyWeakParentWeaklyOrphaned bool) bool {
return isMarkedOrphaned || anyWeakParentWeaklyOrphaned
}, t.isMarkedOrphaned, t.anyWeakParentWeaklyOrphaned)

t.isOrphaned = reactive.NewDerivedVariable2[bool, bool, bool](func(isStronglyOrphaned bool, isWeaklyOrphaned bool) bool {
t.isOrphaned = reactive.NewDerivedVariable2[bool, bool, bool](func(_, isStronglyOrphaned, isWeaklyOrphaned bool) bool {
return isStronglyOrphaned || isWeaklyOrphaned
}, t.isStronglyOrphaned, t.isWeaklyOrphaned)

t.isStrongTipPoolMember = reactive.NewDerivedVariable3(func(tipPool tipmanager.TipPool, isOrphaned bool, isEvicted bool) bool {
t.isStrongTipPoolMember = reactive.NewDerivedVariable3(func(_ bool, tipPool tipmanager.TipPool, isOrphaned bool, isEvicted bool) bool {
return tipPool == tipmanager.StrongTipPool && !isOrphaned && !isEvicted
}, t.tipPool, t.isOrphaned, t.evicted)

t.isWeakTipPoolMember = reactive.NewDerivedVariable3(func(tipPool tipmanager.TipPool, isOrphaned bool, isEvicted bool) bool {
t.isWeakTipPoolMember = reactive.NewDerivedVariable3(func(_ bool, tipPool tipmanager.TipPool, isOrphaned bool, isEvicted bool) bool {
return tipPool == tipmanager.WeakTipPool && !isOrphaned && !isEvicted
}, t.tipPool, t.isOrphaned, t.evicted)

t.isStronglyReferencedByTips = reactive.NewDerivedVariable[bool, int](func(stronglyConnectedStrongChildren int) bool {
t.isStronglyReferencedByTips = reactive.NewDerivedVariable[bool, int](func(_ bool, stronglyConnectedStrongChildren int) bool {
return stronglyConnectedStrongChildren > 0
}, t.stronglyConnectedStrongChildren)

t.isWeaklyReferencedByTips = reactive.NewDerivedVariable[bool, int](func(connectedWeakChildren int) bool {
t.isWeaklyReferencedByTips = reactive.NewDerivedVariable[bool, int](func(_ bool, connectedWeakChildren int) bool {
return connectedWeakChildren > 0
}, t.connectedWeakChildren)

t.isReferencedByTips = reactive.NewDerivedVariable2[bool, bool, bool](func(isWeaklyReferencedByTips bool, isStronglyReferencedByTips bool) bool {
t.isReferencedByTips = reactive.NewDerivedVariable2[bool, bool, bool](func(_, isWeaklyReferencedByTips, isStronglyReferencedByTips bool) bool {
return isWeaklyReferencedByTips || isStronglyReferencedByTips
}, t.isWeaklyReferencedByTips, t.isStronglyReferencedByTips)

t.isStronglyConnectedToTips = reactive.NewDerivedVariable2(func(isStrongTipPoolMember bool, isStronglyReferencedByTips bool) bool {
t.isStronglyConnectedToTips = reactive.NewDerivedVariable2(func(_, isStrongTipPoolMember, isStronglyReferencedByTips bool) bool {
return isStrongTipPoolMember || isStronglyReferencedByTips
}, t.isStrongTipPoolMember, t.isStronglyReferencedByTips)

t.isConnectedToTips = reactive.NewDerivedVariable3(func(isReferencedByTips bool, isStrongTipPoolMember bool, isWeakTipPoolMember bool) bool {
t.isConnectedToTips = reactive.NewDerivedVariable3(func(_, isReferencedByTips, isStrongTipPoolMember, isWeakTipPoolMember bool) bool {
return isReferencedByTips || isStrongTipPoolMember || isWeakTipPoolMember
}, t.isReferencedByTips, t.isStrongTipPoolMember, t.isWeakTipPoolMember)

t.isStrongTip = reactive.NewDerivedVariable2[bool, bool, bool](func(isStrongTipPoolMember bool, isStronglyReferencedByTips bool) bool {
t.isStrongTip = reactive.NewDerivedVariable2[bool, bool, bool](func(_, isStrongTipPoolMember, isStronglyReferencedByTips bool) bool {
return isStrongTipPoolMember && !isStronglyReferencedByTips
}, t.isStrongTipPoolMember, t.isStronglyReferencedByTips)

t.isWeakTip = reactive.NewDerivedVariable2[bool, bool, bool](func(isWeakTipPoolMember bool, isReferencedByTips bool) bool {
t.isWeakTip = reactive.NewDerivedVariable2[bool, bool, bool](func(_, isWeakTipPoolMember, isReferencedByTips bool) bool {
return isWeakTipPoolMember && !isReferencedByTips
}, t.isWeakTipPoolMember, t.isReferencedByTips)

Expand Down
28 changes: 14 additions & 14 deletions tools/gendoc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
replace github.com/iotaledger/iota-core => ../../

require (
github.com/iotaledger/hive.go/app v0.0.0-20231108050255-98e0fa35e936
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/apputils v0.0.0-20230829152614-7afc7a4d89b3
github.com/iotaledger/iota-core v0.0.0-00010101000000-000000000000
)
Expand Down Expand Up @@ -57,19 +57,19 @@ require (
github.com/huin/goupnp v1.3.0 // indirect
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/iotaledger/grocksdb v1.7.5-0.20230220105546-5162e18885c7 // indirect
github.com/iotaledger/hive.go/ads v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/crypto v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/lo v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/log v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/logger v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/runtime v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20231108050255-98e0fa35e936 // indirect
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82 // indirect
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998 // indirect
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa // indirect
Expand Down
Loading

0 comments on commit 3e6cdd1

Please sign in to comment.