From 55480f0706988ebf9095a758e258549ee3a8bf4b Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Wed, 8 Oct 2025 13:45:48 +0300 Subject: [PATCH 1/3] add StateAccessesCollector to testFullNode --- integrationTests/testFullNode.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integrationTests/testFullNode.go b/integrationTests/testFullNode.go index 5b325eb4180..fdb385d56f3 100644 --- a/integrationTests/testFullNode.go +++ b/integrationTests/testFullNode.go @@ -14,6 +14,7 @@ import ( crypto "github.com/multiversx/mx-chain-crypto-go" mclMultiSig "github.com/multiversx/mx-chain-crypto-go/signing/mcl/multisig" "github.com/multiversx/mx-chain-crypto-go/signing/multisig" + "github.com/multiversx/mx-chain-go/state/disabled" wasmConfig "github.com/multiversx/mx-chain-vm-go/config" "github.com/multiversx/mx-chain-go/common" @@ -854,7 +855,7 @@ func (tpn *TestFullNode) initBlockProcessor( BlockProcessingCutoffHandler: &testscommon.BlockProcessingCutoffStub{}, ManagedPeersHolder: &testscommon.ManagedPeersHolderStub{}, SentSignaturesTracker: &testscommon.SentSignatureTrackerStub{}, - } + StateAccessesCollector: disabled.NewDisabledStateAccessesCollector()} if check.IfNil(tpn.EpochStartNotifier) { tpn.EpochStartNotifier = notifier.NewEpochStartSubscriptionHandler() @@ -1094,6 +1095,7 @@ func (tpn *TestFullNode) initBlockProcessorWithSync( BlockProcessingCutoffHandler: &testscommon.BlockProcessingCutoffStub{}, ManagedPeersHolder: &testscommon.ManagedPeersHolderStub{}, SentSignaturesTracker: &testscommon.SentSignatureTrackerStub{}, + StateAccessesCollector: disabled.NewDisabledStateAccessesCollector(), } if tpn.ShardCoordinator.SelfId() == core.MetachainShardId { From 192f4c0f02ac6407047794d1eadc2ed48e03ef60 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Wed, 8 Oct 2025 13:47:53 +0300 Subject: [PATCH 2/3] arrange code --- integrationTests/testFullNode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrationTests/testFullNode.go b/integrationTests/testFullNode.go index fdb385d56f3..c23bcd120ba 100644 --- a/integrationTests/testFullNode.go +++ b/integrationTests/testFullNode.go @@ -855,7 +855,8 @@ func (tpn *TestFullNode) initBlockProcessor( BlockProcessingCutoffHandler: &testscommon.BlockProcessingCutoffStub{}, ManagedPeersHolder: &testscommon.ManagedPeersHolderStub{}, SentSignaturesTracker: &testscommon.SentSignatureTrackerStub{}, - StateAccessesCollector: disabled.NewDisabledStateAccessesCollector()} + StateAccessesCollector: disabled.NewDisabledStateAccessesCollector() + } if check.IfNil(tpn.EpochStartNotifier) { tpn.EpochStartNotifier = notifier.NewEpochStartSubscriptionHandler() From d242374ac869ae87b8c1b11f7d2dc6be3625fadc Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Wed, 8 Oct 2025 13:48:28 +0300 Subject: [PATCH 3/3] small fix --- integrationTests/testFullNode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrationTests/testFullNode.go b/integrationTests/testFullNode.go index c23bcd120ba..4c122860f52 100644 --- a/integrationTests/testFullNode.go +++ b/integrationTests/testFullNode.go @@ -855,7 +855,7 @@ func (tpn *TestFullNode) initBlockProcessor( BlockProcessingCutoffHandler: &testscommon.BlockProcessingCutoffStub{}, ManagedPeersHolder: &testscommon.ManagedPeersHolderStub{}, SentSignaturesTracker: &testscommon.SentSignatureTrackerStub{}, - StateAccessesCollector: disabled.NewDisabledStateAccessesCollector() + StateAccessesCollector: disabled.NewDisabledStateAccessesCollector(), } if check.IfNil(tpn.EpochStartNotifier) {