From eb6a8a0411febf9f0296921624acf42f24a04a83 Mon Sep 17 00:00:00 2001 From: Hans Moog <3293976+hmoog@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:59:18 +0200 Subject: [PATCH] Fix: fixed bugs --- go.mod | 28 +++++----- go.sum | 56 ++++++++++---------- pkg/protocol/chains.go | 47 ++++++++--------- pkg/protocol/commitment.go | 5 ++ pkg/protocol/protocol.go | 7 ++- pkg/tests/protocol_engine_switching_test.go | 10 ++-- pkg/testsuite/mock/network.go | 6 ++- pkg/testsuite/mock/node.go | 22 +++----- tools/evil-spammer/go.mod | 27 +++++----- tools/evil-spammer/go.sum | 54 +++++++++---------- tools/gendoc/go.mod | 31 +++++------ tools/gendoc/go.sum | 57 +++++++++++---------- tools/genesis-snapshot/go.mod | 26 ++++++---- tools/genesis-snapshot/go.sum | 55 ++++++++++++-------- 14 files changed, 226 insertions(+), 205 deletions(-) diff --git a/go.mod b/go.mod index 95f8a4888..773d30273 100644 --- a/go.mod +++ b/go.mod @@ -11,20 +11,20 @@ require ( github.com/google/uuid v1.3.1 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-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/log v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d + github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231001095356-923e8f138951 github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 diff --git a/go.sum b/go.sum index 6bfc26011..666429aaf 100644 --- a/go.sum +++ b/go.sum @@ -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-20230928074706-d58e32f86729 h1:HHxgNhbtD6WDCwSQBbPrQe8c4ZNjNi0KcgCJo0nm9bY= -github.com/iotaledger/hive.go/ads v0.0.0-20230928074706-d58e32f86729/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 h1:rBADf+IZDKkDOuZznwIdonxF9jcOSQJU/qOYSNInX84= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d h1:bZXrxulDoDBsNg0wtXowrAyltjfgZahiGYuAoS5GKU4= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d h1:pRcB0wfWAlfDJ10ZZ6LK1ukRXcPaL299LLU/zbYWnsQ= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d h1:Vn8BY/hLTcKJWh8LCw6PDTbCK2562wq93MPynV1pHjE= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 h1:hHdIZn95+HdP1JdjV8TAsuL5kU4eb4gncehyjXo/feQ= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d h1:tmaZvkBCP/OrQrwC728AEFtRAW8YUHBVNE8IXxtd4C4= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 h1:XCYvP8XwETTXF5LNz8q9X3EajDut7+UwTwqJ2TQ0TJo= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d h1:qNmg1DUvge8zPvygQEoulQjLG7gFzWKqPMJ3r7ZESm0= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= -github.com/iotaledger/hive.go/log v0.0.0-20230929122509-67f34bfed40d h1:u8pGLFhi7LnFOqqt3Q2buC3UjKX5l4e8bJ4wMjAU+Rg= -github.com/iotaledger/hive.go/log v0.0.0-20230929122509-67f34bfed40d/go.mod h1:UF7PzlWdZ2H0Hkxrt4AgJmNVeMXUJzw4RwbHpib1DB0= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 h1:FOQetJY2scpCtCGrZQWGw3RwB3lRIDdyu+M6P1NACM4= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d h1:mn2Gax95UuUpuzEi4osLk+1IBjv5q56LwcxF/lAxk38= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d h1:1839CFkegKrSvTfWkgYHpH1pudehOXxX05Mzy1KSR7I= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d h1:ekHWRypoaiCXgrJVUQS7rCewsK3FuG1gTbPxu5jYn9c= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 h1:H4ZVd8iS1+/+6kN1FCvWlrJerWvaGv0N0YVTOTiKLAM= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 h1:7+7xSAiLQcrAQTjE9CiGwdwA4tApi6MOl1uR8TT37rc= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 h1:vRIm5NAvCsg3oTHLjjJyPv0J4hR81ceLMSL0s3aNUaQ= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 h1:Qz1w42u8um1f8VWp7ivWSFAny0uQ5WQtC5AIo8wXY/s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 h1:mbpeBB2UJ8P8yu3R/cT3pXnUhx+ElcsVHehi9bczQ20= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 h1:gnNS6hOQZu4TxaaruFkunKSZHIAq4rdNcHf0DsLUhDk= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 h1:c+0LxjcZRXQ2T4jiSILMhrZ89xVJyX1LeJF6bc3co3U= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 h1:U9KAiWKERLvkbCBf3ZDFsGIguC+5j5jRkQ9tePU5qik= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 h1:mZLvI/U82VXm8Y++eOzd1SUicHaTVErXMJrtpnvmnno= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 h1:gQJyN3MRrOvyzpzudiCsov+JjPCbyWMky8g4DM4Hm8U= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07/go.mod h1:UF7PzlWdZ2H0Hkxrt4AgJmNVeMXUJzw4RwbHpib1DB0= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 h1:L1cWRwR7J0dzESq9YsxC76P+EJ0bDbIWElUEbhtoip4= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 h1:FrMRe10E5WQfglfcn2SH6zIUKvL2oGAdeWn8Nxv4AAE= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 h1:HvLxAdbqAlc4kFWILLaOHOdxi2dUyhE+3APHablEqEE= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 h1:rudCl0AX255wyTIZM+MLhk19lgxcpYku9IkLexlK/4U= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e h1:Mwoe7M6gI2DAjJIXmIskgnI8KdxCY1LyEEhtJCNYBsU= github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e/go.mod h1:jhzexR5X8m6qcmrwt5OX477O/ZwT7Ak9sPT83ByPkAo= github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231001095356-923e8f138951 h1:qUf1W0fE1IyZzVy3Exv0Kj+SKECXG3S26c9m2ETb07U= diff --git a/pkg/protocol/chains.go b/pkg/protocol/chains.go index 828898b4b..324db62fb 100644 --- a/pkg/protocol/chains.go +++ b/pkg/protocol/chains.go @@ -195,41 +195,42 @@ func (c *Chains) initChainSwitching() { c.HeaviestVerifiedChain.OnUpdate(func(_, heaviestVerifiedChain *Chain) { c.MainChain.Set(heaviestVerifiedChain) - - heaviestVerifiedChain.ForkingPoint.Get().IsRoot.Trigger() }) } func (c *Chains) provideEngineIfRequested(chain *Chain) func() { return chain.InstantiateEngine.OnUpdate(func(_, instantiate bool) { - if !instantiate { - chain.SpawnedEngine.Set(nil) + // TODO: MOVE TO WORKERPOOL + go func() { + if !instantiate { + chain.SpawnedEngine.Set(nil) - return - } - - if currentEngine := chain.Engine.Get(); currentEngine == nil { - mainEngine, err := c.engineManager.LoadActiveEngine(c.protocol.options.SnapshotPath) - if err != nil { - panic(fmt.Sprintf("could not load active engine: %s", err)) + return } - chain.SpawnedEngine.Set(mainEngine) + if currentEngine := chain.Engine.Get(); currentEngine == nil { + mainEngine, err := c.engineManager.LoadActiveEngine(c.protocol.options.SnapshotPath) + if err != nil { + panic(fmt.Sprintf("could not load active engine: %s", err)) + } + + chain.SpawnedEngine.Set(mainEngine) - c.protocol.Network.HookStopped(mainEngine.Shutdown) - } else { - forkingPoint := chain.ForkingPoint.Get() - snapshotTargetSlot := forkingPoint.Slot() - 1 + c.protocol.Network.HookStopped(mainEngine.Shutdown) + } else { + forkingPoint := chain.ForkingPoint.Get() + snapshotTargetSlot := forkingPoint.Slot() - 1 - candidateEngineInstance, err := c.engineManager.ForkEngineAtSlot(snapshotTargetSlot) - if err != nil { - panic(ierrors.Wrap(err, "error creating new candidate engine")) - } + candidateEngineInstance, err := c.engineManager.ForkEngineAtSlot(snapshotTargetSlot) + if err != nil { + panic(ierrors.Wrap(err, "error creating new candidate engine")) + } - chain.SpawnedEngine.Set(candidateEngineInstance) + chain.SpawnedEngine.Set(candidateEngineInstance) - c.protocol.Network.HookStopped(candidateEngineInstance.Shutdown) - } + c.protocol.Network.HookStopped(candidateEngineInstance.Shutdown) + } + }() }) } diff --git a/pkg/protocol/commitment.go b/pkg/protocol/commitment.go index 2f05d32a7..e2ad22e9c 100644 --- a/pkg/protocol/commitment.go +++ b/pkg/protocol/commitment.go @@ -181,6 +181,10 @@ func (c *Commitment) inheritChain(parent *Commitment) func(*Commitment, *Commitm return func(_, mainChild *Commitment) { c.SpawnedChain.Compute(func(spawnedChain *Chain) (newSpawnedChain *Chain) { + if c.IsRoot.WasTriggered() { + return spawnedChain + } + switch mainChild { case nil: panic("main child may not be changed to nil") @@ -219,6 +223,7 @@ func (c *Commitment) promote(targetChain *Chain) { // root commitment of the main chain that is the first commitment ever published (which means that we can just // set the chain that we want it to have) c.Chain.Set(targetChain) + c.SpawnedChain.Set(targetChain) } else if parent := c.Parent.Get(); parent.Chain.Get() == targetChain { parent.MainChild.Set(c) } diff --git a/pkg/protocol/protocol.go b/pkg/protocol/protocol.go index 40d515cff..22257b171 100644 --- a/pkg/protocol/protocol.go +++ b/pkg/protocol/protocol.go @@ -9,6 +9,7 @@ import ( "github.com/iotaledger/hive.go/runtime/options" "github.com/iotaledger/hive.go/runtime/workerpool" "github.com/iotaledger/iota-core/pkg/network" + "github.com/iotaledger/iota-core/pkg/protocol/engine" iotago "github.com/iotaledger/iota.go/v4" ) @@ -38,7 +39,11 @@ func New(logger log.Logger, workers *workerpool.Group, dispatcher network.Endpoi } func (p *Protocol) Run(ctx context.Context) error { - p.TriggerInitialized() + p.MainChain.OnUpdateOnce(func(_, mainChain *Chain) { + mainChain.Engine.OnUpdateOnce(func(_, _ *engine.Engine) { + p.TriggerInitialized() + }) + }) <-ctx.Done() diff --git a/pkg/tests/protocol_engine_switching_test.go b/pkg/tests/protocol_engine_switching_test.go index d04fe00ec..cd9c6af52 100644 --- a/pkg/tests/protocol_engine_switching_test.go +++ b/pkg/tests/protocol_engine_switching_test.go @@ -350,17 +350,17 @@ func TestProtocol_EngineSwitching(t *testing.T) { node8.IssueActivity(ctxP2, wg, 21) // P1 finalized until slot 18. We do not expect any forks here because our CW is higher than the other partition's. - ts.AssertForkDetectedCount(1, nodesP1...) + ts.AssertForkDetectedCount(0, nodesP1...) // P1's chain is heavier, they should not consider switching the chain. - ts.AssertCandidateEngineActivatedCount(1, nodesP1...) + ts.AssertCandidateEngineActivatedCount(0, nodesP1...) ctxP2Cancel() // we can stop issuing on P2. // Nodes from P2 should switch the chain. - ts.AssertForkDetectedCount(2, nodesP2...) - ts.AssertCandidateEngineActivatedCount(2, nodesP2...) + ts.AssertForkDetectedCount(1, nodesP2...) + ts.AssertCandidateEngineActivatedCount(1, nodesP2...) // Here we need to let enough time pass for the nodes to sync up the candidate engines and switch them - ts.AssertMainEngineSwitchedCount(2, nodesP2...) + ts.AssertMainEngineSwitchedCount(1, nodesP2...) // Make sure that nodes that switched their engine still have blocks with prefix P0 from before the fork. // Those nodes should also have all the blocks from the target fork P1 and should not have blocks from P2. diff --git a/pkg/testsuite/mock/network.go b/pkg/testsuite/mock/network.go index 42b363b7b..6dd947db0 100644 --- a/pkg/testsuite/mock/network.go +++ b/pkg/testsuite/mock/network.go @@ -153,8 +153,10 @@ func (e *Endpoint) Send(packet proto.Message, to ...peer.ID) { e.network.dispatchersMutex.RLock() defer e.network.dispatchersMutex.RUnlock() - if err := dispatcher.handler(e.id, packet); err != nil { - fmt.Println(e.id, "ERROR: ", err) + if dispatcher.handler != nil { + if err := dispatcher.handler(e.id, packet); err != nil { + fmt.Println(e.id, "ERROR: ", err) + } } }() } diff --git a/pkg/testsuite/mock/node.go b/pkg/testsuite/mock/node.go index 45f7e5a2f..2f88d778c 100644 --- a/pkg/testsuite/mock/node.go +++ b/pkg/testsuite/mock/node.go @@ -140,22 +140,14 @@ func (n *Node) Initialize(failOnBlockFiltered bool, opts ...options.Option[proto } func (n *Node) hookEvents() { - n.Protocol.HeaviestAttestedChain.OnUpdate(func(_, heaviestAttestedChain *protocol.Chain) { - n.forkDetectedCount.Add(1) + n.Protocol.HeaviestAttestedChain.OnUpdate(func(prevHeaviestAttestedChain, heaviestAttestedChain *protocol.Chain) { + if prevHeaviestAttestedChain != nil { + n.forkDetectedCount.Add(1) - heaviestAttestedChain.Engine.OnUpdate(func(prevEngine, newEngine *engine.Engine) { - prevEngineName := "" - if prevEngine != nil { - prevEngineName = prevEngine.Name() - } - - newEngineName := "" - if newEngine != nil { - newEngineName = newEngine.Name() - } - - n.Protocol.LogWarn("ENGINE ACTIVATED FOR CHAIN ", "name", heaviestAttestedChain.LogName(), "counter", n.candidateEngineActivatedCount.Add(1), "prevEngine", prevEngineName, "newEngine", newEngineName) - }) + heaviestAttestedChain.Engine.OnUpdate(func(prevEngine, newEngine *engine.Engine) { + n.candidateEngineActivatedCount.Add(1) + }) + } }) n.Protocol.MainChain.OnUpdate(func(_, _ *protocol.Chain) { diff --git a/tools/evil-spammer/go.mod b/tools/evil-spammer/go.mod index b4678fb13..fa5c3f7c7 100644 --- a/tools/evil-spammer/go.mod +++ b/tools/evil-spammer/go.mod @@ -8,13 +8,13 @@ replace github.com/iotaledger/iota-core/tools/genesis-snapshot => ../genesis-sna require ( github.com/AlecAivazis/survey/v2 v2.3.7 - github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 - github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d + github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 github.com/iotaledger/iota-core v0.0.0-00010101000000-000000000000 github.com/iotaledger/iota-core/tools/genesis-snapshot v0.0.0-00010101000000-000000000000 github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 @@ -37,12 +37,13 @@ require ( github.com/holiman/uint256 v1.2.3 // 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-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d // indirect + github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 // indirect github.com/ipfs/go-cid v0.4.1 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect diff --git a/tools/evil-spammer/go.sum b/tools/evil-spammer/go.sum index 97376751f..d8c021e88 100644 --- a/tools/evil-spammer/go.sum +++ b/tools/evil-spammer/go.sum @@ -169,32 +169,34 @@ github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJ github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJDkXXS7VoV7XGE= 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-20230928074706-d58e32f86729 h1:HHxgNhbtD6WDCwSQBbPrQe8c4ZNjNi0KcgCJo0nm9bY= -github.com/iotaledger/hive.go/ads v0.0.0-20230928074706-d58e32f86729/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 h1:rBADf+IZDKkDOuZznwIdonxF9jcOSQJU/qOYSNInX84= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d h1:bZXrxulDoDBsNg0wtXowrAyltjfgZahiGYuAoS5GKU4= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d h1:pRcB0wfWAlfDJ10ZZ6LK1ukRXcPaL299LLU/zbYWnsQ= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d h1:Vn8BY/hLTcKJWh8LCw6PDTbCK2562wq93MPynV1pHjE= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 h1:hHdIZn95+HdP1JdjV8TAsuL5kU4eb4gncehyjXo/feQ= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d h1:tmaZvkBCP/OrQrwC728AEFtRAW8YUHBVNE8IXxtd4C4= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 h1:XCYvP8XwETTXF5LNz8q9X3EajDut7+UwTwqJ2TQ0TJo= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d h1:qNmg1DUvge8zPvygQEoulQjLG7gFzWKqPMJ3r7ZESm0= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 h1:FOQetJY2scpCtCGrZQWGw3RwB3lRIDdyu+M6P1NACM4= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d h1:mn2Gax95UuUpuzEi4osLk+1IBjv5q56LwcxF/lAxk38= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d h1:1839CFkegKrSvTfWkgYHpH1pudehOXxX05Mzy1KSR7I= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d h1:ekHWRypoaiCXgrJVUQS7rCewsK3FuG1gTbPxu5jYn9c= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 h1:H4ZVd8iS1+/+6kN1FCvWlrJerWvaGv0N0YVTOTiKLAM= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 h1:7+7xSAiLQcrAQTjE9CiGwdwA4tApi6MOl1uR8TT37rc= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 h1:vRIm5NAvCsg3oTHLjjJyPv0J4hR81ceLMSL0s3aNUaQ= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 h1:Qz1w42u8um1f8VWp7ivWSFAny0uQ5WQtC5AIo8wXY/s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 h1:mbpeBB2UJ8P8yu3R/cT3pXnUhx+ElcsVHehi9bczQ20= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 h1:gnNS6hOQZu4TxaaruFkunKSZHIAq4rdNcHf0DsLUhDk= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 h1:c+0LxjcZRXQ2T4jiSILMhrZ89xVJyX1LeJF6bc3co3U= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 h1:U9KAiWKERLvkbCBf3ZDFsGIguC+5j5jRkQ9tePU5qik= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 h1:mZLvI/U82VXm8Y++eOzd1SUicHaTVErXMJrtpnvmnno= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 h1:gQJyN3MRrOvyzpzudiCsov+JjPCbyWMky8g4DM4Hm8U= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07/go.mod h1:UF7PzlWdZ2H0Hkxrt4AgJmNVeMXUJzw4RwbHpib1DB0= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 h1:L1cWRwR7J0dzESq9YsxC76P+EJ0bDbIWElUEbhtoip4= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 h1:FrMRe10E5WQfglfcn2SH6zIUKvL2oGAdeWn8Nxv4AAE= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 h1:HvLxAdbqAlc4kFWILLaOHOdxi2dUyhE+3APHablEqEE= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 h1:rudCl0AX255wyTIZM+MLhk19lgxcpYku9IkLexlK/4U= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 h1:6fuDHswgN9zTwsMuKRKNClnT+rJCojvWf3Hk8f03cvc= github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737/go.mod h1:+e3bsJFDr9HxmUMe+eQOLNut5wfcB/ivhJdouOJgOnE= github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= diff --git a/tools/gendoc/go.mod b/tools/gendoc/go.mod index 60253b09e..105850c41 100644 --- a/tools/gendoc/go.mod +++ b/tools/gendoc/go.mod @@ -5,7 +5,7 @@ go 1.21 replace github.com/iotaledger/iota-core => ../../ require ( - github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 + github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 github.com/iotaledger/hive.go/apputils v0.0.0-20230829152614-7afc7a4d89b3 github.com/iotaledger/iota-core v0.0.0-00010101000000-000000000000 ) @@ -18,7 +18,6 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/containerd/cgroups v1.1.0 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/docker/go-units v0.5.0 // indirect @@ -58,18 +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-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d // indirect + github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 // indirect github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e // indirect github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231001095356-923e8f138951 // indirect github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 // indirect @@ -134,7 +134,6 @@ require ( github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pokt-network/smt v0.6.1 // indirect github.com/polydawn/refmt v0.89.0 // indirect github.com/prometheus/client_golang v1.16.0 // indirect @@ -150,7 +149,6 @@ require ( github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/cast v1.5.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.8.4 // indirect github.com/tcnksm/go-latest v0.0.0-20170313132115-e3007ae9052e // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect @@ -180,6 +178,5 @@ require ( google.golang.org/grpc v1.58.2 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/blake3 v1.2.1 // indirect ) diff --git a/tools/gendoc/go.sum b/tools/gendoc/go.sum index 5e0a9c086..02bf9d67d 100644 --- a/tools/gendoc/go.sum +++ b/tools/gendoc/go.sum @@ -279,40 +279,41 @@ 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-20230928074706-d58e32f86729 h1:HHxgNhbtD6WDCwSQBbPrQe8c4ZNjNi0KcgCJo0nm9bY= -github.com/iotaledger/hive.go/ads v0.0.0-20230928074706-d58e32f86729/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729 h1:rBADf+IZDKkDOuZznwIdonxF9jcOSQJU/qOYSNInX84= -github.com/iotaledger/hive.go/app v0.0.0-20230928074706-d58e32f86729/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 h1:H4ZVd8iS1+/+6kN1FCvWlrJerWvaGv0N0YVTOTiKLAM= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07 h1:7+7xSAiLQcrAQTjE9CiGwdwA4tApi6MOl1uR8TT37rc= +github.com/iotaledger/hive.go/app v0.0.0-20231005070803-455595bf0a07/go.mod h1:eiZgbcwTDZ7d9hEait2EAwAhixWhceW4MXmuVk2EcEw= github.com/iotaledger/hive.go/apputils v0.0.0-20230829152614-7afc7a4d89b3 h1:4aVJTc0KS77uEw0Tny4r0n1ORwcbAQDECaCclgf/6lE= github.com/iotaledger/hive.go/apputils v0.0.0-20230829152614-7afc7a4d89b3/go.mod h1:TZeAqieDu+xDOZp2e9+S+8pZp1PrfgcwLUnxmd8IgLU= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d h1:bZXrxulDoDBsNg0wtXowrAyltjfgZahiGYuAoS5GKU4= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d h1:pRcB0wfWAlfDJ10ZZ6LK1ukRXcPaL299LLU/zbYWnsQ= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d h1:Vn8BY/hLTcKJWh8LCw6PDTbCK2562wq93MPynV1pHjE= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 h1:hHdIZn95+HdP1JdjV8TAsuL5kU4eb4gncehyjXo/feQ= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d h1:tmaZvkBCP/OrQrwC728AEFtRAW8YUHBVNE8IXxtd4C4= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 h1:XCYvP8XwETTXF5LNz8q9X3EajDut7+UwTwqJ2TQ0TJo= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d h1:qNmg1DUvge8zPvygQEoulQjLG7gFzWKqPMJ3r7ZESm0= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729 h1:FOQetJY2scpCtCGrZQWGw3RwB3lRIDdyu+M6P1NACM4= -github.com/iotaledger/hive.go/logger v0.0.0-20230928074706-d58e32f86729/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d h1:mn2Gax95UuUpuzEi4osLk+1IBjv5q56LwcxF/lAxk38= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d h1:1839CFkegKrSvTfWkgYHpH1pudehOXxX05Mzy1KSR7I= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d h1:ekHWRypoaiCXgrJVUQS7rCewsK3FuG1gTbPxu5jYn9c= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 h1:vRIm5NAvCsg3oTHLjjJyPv0J4hR81ceLMSL0s3aNUaQ= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 h1:Qz1w42u8um1f8VWp7ivWSFAny0uQ5WQtC5AIo8wXY/s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 h1:mbpeBB2UJ8P8yu3R/cT3pXnUhx+ElcsVHehi9bczQ20= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 h1:gnNS6hOQZu4TxaaruFkunKSZHIAq4rdNcHf0DsLUhDk= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 h1:c+0LxjcZRXQ2T4jiSILMhrZ89xVJyX1LeJF6bc3co3U= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 h1:U9KAiWKERLvkbCBf3ZDFsGIguC+5j5jRkQ9tePU5qik= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 h1:mZLvI/U82VXm8Y++eOzd1SUicHaTVErXMJrtpnvmnno= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 h1:gQJyN3MRrOvyzpzudiCsov+JjPCbyWMky8g4DM4Hm8U= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07/go.mod h1:UF7PzlWdZ2H0Hkxrt4AgJmNVeMXUJzw4RwbHpib1DB0= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 h1:L1cWRwR7J0dzESq9YsxC76P+EJ0bDbIWElUEbhtoip4= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 h1:FrMRe10E5WQfglfcn2SH6zIUKvL2oGAdeWn8Nxv4AAE= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 h1:HvLxAdbqAlc4kFWILLaOHOdxi2dUyhE+3APHablEqEE= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 h1:rudCl0AX255wyTIZM+MLhk19lgxcpYku9IkLexlK/4U= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e h1:Mwoe7M6gI2DAjJIXmIskgnI8KdxCY1LyEEhtJCNYBsU= github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231001095511-32be422a567e/go.mod h1:jhzexR5X8m6qcmrwt5OX477O/ZwT7Ak9sPT83ByPkAo= github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231001095356-923e8f138951 h1:qUf1W0fE1IyZzVy3Exv0Kj+SKECXG3S26c9m2ETb07U= github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231001095356-923e8f138951/go.mod h1:c5778OnWpLq108YE+Eb2m8Ri/t/4ydV0TvI/Sy5YivQ= -github.com/iotaledger/iota.go/v4 v4.0.0-20231003162632-bf50df95b5f0 h1:6G9oUOnhhK5oktcsl0BImbrPlgp6tdGskKsAmaMNw8Q= -github.com/iotaledger/iota.go/v4 v4.0.0-20231003162632-bf50df95b5f0/go.mod h1:+e3bsJFDr9HxmUMe+eQOLNut5wfcB/ivhJdouOJgOnE= +github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 h1:6fuDHswgN9zTwsMuKRKNClnT+rJCojvWf3Hk8f03cvc= github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737/go.mod h1:+e3bsJFDr9HxmUMe+eQOLNut5wfcB/ivhJdouOJgOnE= github.com/ipfs/boxo v0.10.0 h1:tdDAxq8jrsbRkYoF+5Rcqyeb91hgWe2hp7iLu7ORZLY= github.com/ipfs/boxo v0.10.0/go.mod h1:Fg+BnfxZ0RPzR0nOodzdIq3A7KgoWAOWsEIImrIQdBM= diff --git a/tools/genesis-snapshot/go.mod b/tools/genesis-snapshot/go.mod index ba29c06b3..1216aa34c 100644 --- a/tools/genesis-snapshot/go.mod +++ b/tools/genesis-snapshot/go.mod @@ -5,10 +5,10 @@ go 1.21 replace github.com/iotaledger/iota-core => ../../ require ( - github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d - github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d + github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 + github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 github.com/iotaledger/iota-core v0.0.0-00010101000000-000000000000 github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 github.com/mr-tron/base58 v1.2.0 @@ -27,13 +27,15 @@ require ( github.com/holiman/uint256 v1.2.3 // 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-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 // indirect - github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d // indirect - github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d // indirect + github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 // indirect + github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 // indirect github.com/ipfs/go-cid v0.4.1 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect github.com/kr/text v0.2.0 // indirect @@ -59,6 +61,8 @@ require ( github.com/wollac/iota-crypto-demo v0.0.0-20221117162917-b10619eccb98 // indirect github.com/zyedidia/generic v1.2.1 // indirect go.uber.org/atomic v1.11.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.26.0 // indirect golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect golang.org/x/sys v0.12.0 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/tools/genesis-snapshot/go.sum b/tools/genesis-snapshot/go.sum index c69dca49d..191108bc9 100644 --- a/tools/genesis-snapshot/go.sum +++ b/tools/genesis-snapshot/go.sum @@ -28,28 +28,32 @@ github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJ github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJDkXXS7VoV7XGE= 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-20230928074706-d58e32f86729 h1:HHxgNhbtD6WDCwSQBbPrQe8c4ZNjNi0KcgCJo0nm9bY= -github.com/iotaledger/hive.go/ads v0.0.0-20230928074706-d58e32f86729/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d h1:bZXrxulDoDBsNg0wtXowrAyltjfgZahiGYuAoS5GKU4= -github.com/iotaledger/hive.go/constraints v0.0.0-20230929122509-67f34bfed40d/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d h1:pRcB0wfWAlfDJ10ZZ6LK1ukRXcPaL299LLU/zbYWnsQ= -github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20230929122509-67f34bfed40d/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d h1:Vn8BY/hLTcKJWh8LCw6PDTbCK2562wq93MPynV1pHjE= -github.com/iotaledger/hive.go/crypto v0.0.0-20230929122509-67f34bfed40d/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729 h1:hHdIZn95+HdP1JdjV8TAsuL5kU4eb4gncehyjXo/feQ= -github.com/iotaledger/hive.go/ds v0.0.0-20230928074706-d58e32f86729/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d h1:tmaZvkBCP/OrQrwC728AEFtRAW8YUHBVNE8IXxtd4C4= -github.com/iotaledger/hive.go/ierrors v0.0.0-20230929122509-67f34bfed40d/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729 h1:XCYvP8XwETTXF5LNz8q9X3EajDut7+UwTwqJ2TQ0TJo= -github.com/iotaledger/hive.go/kvstore v0.0.0-20230928074706-d58e32f86729/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d h1:qNmg1DUvge8zPvygQEoulQjLG7gFzWKqPMJ3r7ZESm0= -github.com/iotaledger/hive.go/lo v0.0.0-20230929122509-67f34bfed40d/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d h1:mn2Gax95UuUpuzEi4osLk+1IBjv5q56LwcxF/lAxk38= -github.com/iotaledger/hive.go/runtime v0.0.0-20230929122509-67f34bfed40d/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d h1:1839CFkegKrSvTfWkgYHpH1pudehOXxX05Mzy1KSR7I= -github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20230929122509-67f34bfed40d/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d h1:ekHWRypoaiCXgrJVUQS7rCewsK3FuG1gTbPxu5jYn9c= -github.com/iotaledger/hive.go/stringify v0.0.0-20230929122509-67f34bfed40d/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07 h1:H4ZVd8iS1+/+6kN1FCvWlrJerWvaGv0N0YVTOTiKLAM= +github.com/iotaledger/hive.go/ads v0.0.0-20231005070803-455595bf0a07/go.mod h1:IAWZ/5It5P8B41mWyJXJVcG0vuikVRaTFKQnr2D2q+c= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07 h1:vRIm5NAvCsg3oTHLjjJyPv0J4hR81ceLMSL0s3aNUaQ= +github.com/iotaledger/hive.go/constraints v0.0.0-20231005070803-455595bf0a07/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07 h1:Qz1w42u8um1f8VWp7ivWSFAny0uQ5WQtC5AIo8wXY/s= +github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231005070803-455595bf0a07/go.mod h1:jn3TNmiNRIiQm/rS4VD+7wFHI2+UXABHvCA3PbQxBqI= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07 h1:mbpeBB2UJ8P8yu3R/cT3pXnUhx+ElcsVHehi9bczQ20= +github.com/iotaledger/hive.go/crypto v0.0.0-20231005070803-455595bf0a07/go.mod h1:jP68na941d9uq7RtnA8aQ/FtIGRGz/51cU4uXrInQFU= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07 h1:gnNS6hOQZu4TxaaruFkunKSZHIAq4rdNcHf0DsLUhDk= +github.com/iotaledger/hive.go/ds v0.0.0-20231005070803-455595bf0a07/go.mod h1:ZrqsjIJS2QCgGp7Ki+l4hWJQgzfBObUCemb5Upwlx18= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07 h1:c+0LxjcZRXQ2T4jiSILMhrZ89xVJyX1LeJF6bc3co3U= +github.com/iotaledger/hive.go/ierrors v0.0.0-20231005070803-455595bf0a07/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07 h1:U9KAiWKERLvkbCBf3ZDFsGIguC+5j5jRkQ9tePU5qik= +github.com/iotaledger/hive.go/kvstore v0.0.0-20231005070803-455595bf0a07/go.mod h1:DeP4JF4N995LteD0+/o7NsW1bO5IXURIJ27A69Ca5+Y= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07 h1:mZLvI/U82VXm8Y++eOzd1SUicHaTVErXMJrtpnvmnno= +github.com/iotaledger/hive.go/lo v0.0.0-20231005070803-455595bf0a07/go.mod h1:4oKCdMEhHMLCudBz79kuvJmgSY/DhfVePNIyJhew/80= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07 h1:gQJyN3MRrOvyzpzudiCsov+JjPCbyWMky8g4DM4Hm8U= +github.com/iotaledger/hive.go/log v0.0.0-20231005070803-455595bf0a07/go.mod h1:UF7PzlWdZ2H0Hkxrt4AgJmNVeMXUJzw4RwbHpib1DB0= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07 h1:L1cWRwR7J0dzESq9YsxC76P+EJ0bDbIWElUEbhtoip4= +github.com/iotaledger/hive.go/logger v0.0.0-20231005070803-455595bf0a07/go.mod h1:sxqWRdZ1OOxwkxVczuGcW034Mpt2vFh5ebJHO++ZYeI= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07 h1:FrMRe10E5WQfglfcn2SH6zIUKvL2oGAdeWn8Nxv4AAE= +github.com/iotaledger/hive.go/runtime v0.0.0-20231005070803-455595bf0a07/go.mod h1:fXVyQ1MAwxe/EmjAnG8WcQqbzGk9EW/FsJ/n16H/f/w= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07 h1:HvLxAdbqAlc4kFWILLaOHOdxi2dUyhE+3APHablEqEE= +github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231005070803-455595bf0a07/go.mod h1:IJgaaxbgKCsNat18jlJJEAxCY2oVYR3F30B+M4vJ89I= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07 h1:rudCl0AX255wyTIZM+MLhk19lgxcpYku9IkLexlK/4U= +github.com/iotaledger/hive.go/stringify v0.0.0-20231005070803-455595bf0a07/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs= github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737 h1:6fuDHswgN9zTwsMuKRKNClnT+rJCojvWf3Hk8f03cvc= github.com/iotaledger/iota.go/v4 v4.0.0-20231003181920-a3245ad7a737/go.mod h1:+e3bsJFDr9HxmUMe+eQOLNut5wfcB/ivhJdouOJgOnE= github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= @@ -109,6 +113,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= @@ -120,6 +125,12 @@ github.com/zyedidia/generic v1.2.1 h1:Zv5KS/N2m0XZZiuLS82qheRG4X1o5gsWreGb0hR7XD github.com/zyedidia/generic v1.2.1/go.mod h1:ly2RBz4mnz1yeuVbQA/VFwGjK3mnHGRj1JuoG336Bis= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= +go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ=