Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/relayedv3 #6632

Merged
merged 91 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
57301ae
new relayed v3
sstanculeanu Oct 29, 2024
937f10c
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Oct 29, 2024
905bd78
update deps after merge
sstanculeanu Oct 29, 2024
a36e68c
small fix + fix tests
sstanculeanu Oct 29, 2024
ab06f0b
revert config values modified for local tests
sstanculeanu Oct 30, 2024
09a2751
guarded integration tests
sstanculeanu Oct 30, 2024
68dbf89
fixes after review
sstanculeanu Nov 11, 2024
bb8ee0f
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Nov 11, 2024
531aad5
deps update
sstanculeanu Nov 11, 2024
6c02c94
further fixes after review
sstanculeanu Nov 13, 2024
232874b
Merge branch 'rc/spica-patch-mempool' into relayedv3
sstanculeanu Nov 19, 2024
ea799ab
updated indexer
sstanculeanu Nov 19, 2024
dab1093
proper name for EnableEpoch epoch
sstanculeanu Nov 22, 2024
95fac83
fixes after review
sstanculeanu Nov 25, 2024
b8487af
Merge pull request #6570 from multiversx/relayedv3
sstanculeanu Nov 25, 2024
0c2fe33
fixes after tests: fix validation error + fix txs to meta
sstanculeanu Nov 26, 2024
2c05aa7
proper fix for wrapped error
sstanculeanu Nov 26, 2024
3170be4
extra check for relayer != guardian
sstanculeanu Nov 27, 2024
d23b953
fix typos
sstanculeanu Nov 27, 2024
6ae2337
proper execution of relayed v3
sstanculeanu Nov 28, 2024
2869076
further fixes after review, treat relayed v3 as normal tx
sstanculeanu Dec 2, 2024
980496d
fix tests
sstanculeanu Dec 2, 2024
edc0ff3
fixes after review
sstanculeanu Dec 3, 2024
33568e5
reverted common code in order to keep old logic on errors
sstanculeanu Dec 3, 2024
3c7abd8
Merge pull request #6639 from multiversx/relayedv3_fixes
sstanculeanu Dec 4, 2024
0ac7c16
use proper prevTxHash in case of relayed v1 and v2
sstanculeanu Dec 4, 2024
9a9128e
Merge pull request #6649 from multiversx/relayedv3_fix_prevhash
sstanculeanu Dec 4, 2024
05204b4
Export selection session.
andreibancioiu Dec 5, 2024
392d918
Merge branch 'rc/spica-patch-mempool' into MX-16207-mempool-chain-sim…
andreibancioiu Dec 5, 2024
886df30
Sketch test utils.
andreibancioiu Dec 5, 2024
6ee6f36
Sketch some tests.
andreibancioiu Dec 5, 2024
5d301c7
Test adjustments (work in progress).
andreibancioiu Dec 6, 2024
8d5400a
Merge branch 'rc/spica-patch-relayedv3' of https://github.com/multive…
sstanculeanu Dec 11, 2024
480ce7e
fixes after merge
sstanculeanu Dec 11, 2024
585d0ea
Merge pull request #6666 from multiversx/merger_rc_spica_patch_relaye…
AdoAdoAdo Dec 11, 2024
05e3a2a
Integrate storage-go.
andreibancioiu Dec 12, 2024
559d93a
Reference storage-go, fix mempool memory tests.
andreibancioiu Dec 13, 2024
8e08e1a
accept relayed tx v3 with sender account non-existent
sstanculeanu Dec 13, 2024
8cf2672
fix after review
sstanculeanu Dec 16, 2024
bd43050
Merge pull request #6671 from multiversx/MX-16294-mempool-selection-r…
sstanculeanu Dec 16, 2024
d245d8b
Merge branch 'feat/relayedv3' into rv3_non_existent_sender
sstanculeanu Dec 16, 2024
6140ea4
Merge pull request #6677 from multiversx/rv3_non_existent_sender
sstanculeanu Dec 16, 2024
f5c7674
Merge branch 'rc/spica-patch-relayedv3' of https://github.com/multive…
sstanculeanu Dec 16, 2024
39b0433
Merge pull request #6678 from multiversx/merge_rc_spica_patch_rv3_int…
sstanculeanu Dec 16, 2024
5452b88
Merge branch 'rc/spica-patch-relayedv3' of https://github.com/multive…
sstanculeanu Dec 18, 2024
e9c7ccb
Merge pull request #6682 from multiversx/merge_rc_spica_patch_rv3_int…
sstanculeanu Dec 18, 2024
276ffeb
Merge branch 'feat/relayedv3' into MX-16207-mempool-chain-simulator
andreibancioiu Dec 19, 2024
eaf721a
Better mempool tests (chain simulator).
andreibancioiu Dec 19, 2024
0ea8720
fix receipts hash mismatch
sstanculeanu Dec 19, 2024
145806c
fix tests
sstanculeanu Dec 19, 2024
3b3e5cd
Merge pull request #6687 from multiversx/fix_receipts_hash_mismatch
sstanculeanu Dec 20, 2024
0683dcc
On Node API, adjust processing type for relayed V3.
andreibancioiu Jan 8, 2025
c56d9e0
Update node/external/transactionAPI/apiTransactionProcessor_test.go
andreibancioiu Jan 8, 2025
c8df156
Update node/external/transactionAPI/apiTransactionProcessor_test.go
andreibancioiu Jan 8, 2025
5456f8d
Update node/external/transactionAPI/apiTransactionProcessor_test.go
andreibancioiu Jan 8, 2025
c3dfab5
Fix after review.
andreibancioiu Jan 8, 2025
f661684
Merge pull request #6693 from multiversx/MX-16416-tx-type
andreibancioiu Jan 9, 2025
6f4945c
Merge branch 'rc/spica-patch-relayedv3' of https://github.com/multive…
sstanculeanu Jan 9, 2025
4bef80d
update deps after merge
sstanculeanu Jan 9, 2025
0ed8bb0
Merge pull request #6699 from multiversx/merge_rc_spica_patch_rv3_int…
sstanculeanu Jan 9, 2025
7092e61
new metric for extra relayed tx gas limit
sstanculeanu Jan 9, 2025
9a6c9e3
Merge pull request #6700 from multiversx/new_metric_extra_gas_relayed
sstanculeanu Jan 9, 2025
611be56
Merge branch 'feat/relayedv3' into MX-16207-mempool-chain-simulator
andreibancioiu Jan 10, 2025
58251d2
fix relayed v3 with relayer one of the participants leading to free txs
sstanculeanu Jan 13, 2025
c8faf1a
also fix for sc call
sstanculeanu Jan 13, 2025
55ac0c9
linter fixes
sstanculeanu Jan 13, 2025
7c3462b
Merge pull request #6704 from multiversx/fix_relayed_by_participants
sstanculeanu Jan 14, 2025
e66a20a
fixed the computed fee for outport for relayed v3
sstanculeanu Jan 14, 2025
545d15e
Merge pull request #6706 from multiversx/fix_computed_fee_on_outport
sstanculeanu Jan 14, 2025
0de4606
fix chain simulator
miiu96 Jan 14, 2025
96b260a
Merge pull request #6707 from multiversx/fix-chain-simulator
miiu96 Jan 15, 2025
054aa1e
count all refunds if more than one scr exists
sstanculeanu Jan 15, 2025
9caaba2
Merge pull request #6708 from multiversx/node_api_fix_multiple_refunds
sstanculeanu Jan 15, 2025
edf2be2
treat multiple scrs outport driver
miiu96 Jan 15, 2025
d9fc071
Merge branch 'feat/relayedv3' into multiple-scrs-with-refund
miiu96 Jan 15, 2025
e6703ec
small fix
miiu96 Jan 15, 2025
e83061a
Merge remote-tracking branch 'origin/multiple-scrs-with-refund' into …
miiu96 Jan 15, 2025
ee6ae21
had refund
miiu96 Jan 16, 2025
ae1e852
Additional test: TestMempoolWithChainSimulator_Selection_WhenInsuffic…
andreibancioiu Jan 16, 2025
189ba98
Refactor.
andreibancioiu Jan 16, 2025
86fdeb9
add continue
miiu96 Jan 16, 2025
f0e500b
Additional test: TestMempoolWithChainSimulator_Selection_WhenUsersHav…
andreibancioiu Jan 16, 2025
b0f6540
Merge branch 'feat/relayedv3' into MX-16207-mempool-chain-simulator
andreibancioiu Jan 16, 2025
c020f20
Fix linter.
andreibancioiu Jan 16, 2025
f937fba
Merge pull request #6709 from multiversx/multiple-scrs-with-refund
miiu96 Jan 16, 2025
ffca7dd
Merge branch 'feat/relayedv3' into MX-16207-mempool-chain-simulator
sstanculeanu Jan 16, 2025
fdfbff6
Adjust timing / sleeps (for slower CI agents).
andreibancioiu Jan 16, 2025
879c890
Merge branch 'MX-16207-mempool-chain-simulator' of ssh://github.com/m…
andreibancioiu Jan 16, 2025
9f12905
Merge pull request #6654 from multiversx/MX-16207-mempool-chain-simul…
andreibancioiu Jan 16, 2025
1476698
updated deps
sstanculeanu Jan 16, 2025
6bd3142
Merge pull request #6710 from multiversx/update_deps
sstanculeanu Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions api/groups/networkGroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,36 @@ func TestNetworkConfigMetrics_GasLimitGuardedTxShouldWork(t *testing.T) {
assert.True(t, keyAndValueFoundInResponse)
}

func TestNetworkConfigMetrics_GasLimitRelayedTxShouldWork(t *testing.T) {
t.Parallel()

statusMetricsProvider := statusHandler.NewStatusMetrics()
key := common.MetricExtraGasLimitRelayedTx
val := uint64(123)
statusMetricsProvider.SetUInt64Value(key, val)

facade := mock.FacadeStub{}
facade.StatusMetricsHandler = func() external.StatusMetricsHandler {
return statusMetricsProvider
}

networkGroup, err := groups.NewNetworkGroup(&facade)
require.NoError(t, err)

ws := startWebServer(networkGroup, "network", getNetworkRoutesConfig())

req, _ := http.NewRequest("GET", "/network/config", nil)
resp := httptest.NewRecorder()
ws.ServeHTTP(resp, req)

respBytes, _ := io.ReadAll(resp.Body)
respStr := string(respBytes)
assert.Equal(t, resp.Code, http.StatusOK)

keyAndValueFoundInResponse := strings.Contains(respStr, key) && strings.Contains(respStr, fmt.Sprintf("%d", val))
assert.True(t, keyAndValueFoundInResponse)
}

func TestNetworkStatusMetrics_ShouldWork(t *testing.T) {
t.Parallel()

Expand Down
32 changes: 17 additions & 15 deletions api/groups/transactionGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,21 +720,23 @@ func (tg *transactionGroup) getTransactionsPoolNonceGapsForSender(sender string,

func (tg *transactionGroup) createTransaction(receivedTx *transaction.FrontendTransaction) (*transaction.Transaction, []byte, error) {
txArgs := &external.ArgsCreateTransaction{
Nonce: receivedTx.Nonce,
Value: receivedTx.Value,
Receiver: receivedTx.Receiver,
ReceiverUsername: receivedTx.ReceiverUsername,
Sender: receivedTx.Sender,
SenderUsername: receivedTx.SenderUsername,
GasPrice: receivedTx.GasPrice,
GasLimit: receivedTx.GasLimit,
DataField: receivedTx.Data,
SignatureHex: receivedTx.Signature,
ChainID: receivedTx.ChainID,
Version: receivedTx.Version,
Options: receivedTx.Options,
Guardian: receivedTx.GuardianAddr,
GuardianSigHex: receivedTx.GuardianSignature,
Nonce: receivedTx.Nonce,
Value: receivedTx.Value,
Receiver: receivedTx.Receiver,
ReceiverUsername: receivedTx.ReceiverUsername,
Sender: receivedTx.Sender,
SenderUsername: receivedTx.SenderUsername,
GasPrice: receivedTx.GasPrice,
GasLimit: receivedTx.GasLimit,
DataField: receivedTx.Data,
SignatureHex: receivedTx.Signature,
ChainID: receivedTx.ChainID,
Version: receivedTx.Version,
Options: receivedTx.Options,
Guardian: receivedTx.GuardianAddr,
GuardianSigHex: receivedTx.GuardianSignature,
Relayer: receivedTx.RelayerAddr,
RelayerSignatureHex: receivedTx.RelayerSignature,
}
start := time.Now()
tx, txHash, err := tg.getFacade().CreateTransaction(txArgs)
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@
# FixRelayedMoveBalanceToNonPayableSCEnableEpoch represents the epoch when the fix for relayed move balance to non payable sc will be enabled
FixRelayedMoveBalanceToNonPayableSCEnableEpoch = 1

# RelayedTransactionsV3EnableEpoch represents the epoch when the relayed transactions v3 will be enabled
RelayedTransactionsV3EnableEpoch = 2

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
{ EnableEpoch = 0, Type = "no-KOSK" },
Expand Down
26 changes: 26 additions & 0 deletions common/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package common

import "github.com/multiversx/mx-chain-core-go/data"

// IsValidRelayedTxV3 returns true if the provided transaction is a valid transaction of type relayed v3
func IsValidRelayedTxV3(tx data.TransactionHandler) bool {
relayedTx, isRelayedV3 := tx.(data.RelayedTransactionHandler)
if !isRelayedV3 {
return false
}
hasValidRelayer := len(relayedTx.GetRelayerAddr()) == len(tx.GetSndAddr()) && len(relayedTx.GetRelayerAddr()) > 0
hasValidRelayerSignature := len(relayedTx.GetRelayerSignature()) == len(relayedTx.GetSignature()) && len(relayedTx.GetRelayerSignature()) > 0
return hasValidRelayer && hasValidRelayerSignature
}

// IsRelayedTxV3 returns true if the provided transaction is a transaction of type relayed v3, without any further checks
func IsRelayedTxV3(tx data.TransactionHandler) bool {
relayedTx, isRelayedV3 := tx.(data.RelayedTransactionHandler)
if !isRelayedV3 {
return false
}

hasRelayer := len(relayedTx.GetRelayerAddr()) > 0
hasRelayerSignature := len(relayedTx.GetRelayerSignature()) > 0
return hasRelayer || hasRelayerSignature
}
70 changes: 70 additions & 0 deletions common/common_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package common

import (
"math/big"
"testing"

"github.com/multiversx/mx-chain-core-go/data/smartContractResult"
"github.com/multiversx/mx-chain-core-go/data/transaction"
"github.com/stretchr/testify/require"
)

func TestIsValidRelayedTxV3(t *testing.T) {
t.Parallel()

scr := &smartContractResult.SmartContractResult{}
require.False(t, IsValidRelayedTxV3(scr))
require.False(t, IsRelayedTxV3(scr))

notRelayedTxV3 := &transaction.Transaction{
Nonce: 1,
Value: big.NewInt(100),
RcvAddr: []byte("receiver"),
SndAddr: []byte("sender0"),
GasPrice: 100,
GasLimit: 10,
Signature: []byte("signature"),
}
require.False(t, IsValidRelayedTxV3(notRelayedTxV3))
require.False(t, IsRelayedTxV3(notRelayedTxV3))

invalidRelayedTxV3 := &transaction.Transaction{
Nonce: 1,
Value: big.NewInt(100),
RcvAddr: []byte("receiver"),
SndAddr: []byte("sender0"),
GasPrice: 100,
GasLimit: 10,
Signature: []byte("signature"),
RelayerAddr: []byte("relayer"),
}
require.False(t, IsValidRelayedTxV3(invalidRelayedTxV3))
require.True(t, IsRelayedTxV3(invalidRelayedTxV3))

invalidRelayedTxV3 = &transaction.Transaction{
Nonce: 1,
Value: big.NewInt(100),
RcvAddr: []byte("receiver"),
SndAddr: []byte("sender0"),
GasPrice: 100,
GasLimit: 10,
Signature: []byte("signature"),
RelayerSignature: []byte("signature"),
}
require.False(t, IsValidRelayedTxV3(invalidRelayedTxV3))
require.True(t, IsRelayedTxV3(invalidRelayedTxV3))

relayedTxV3 := &transaction.Transaction{
Nonce: 1,
Value: big.NewInt(100),
RcvAddr: []byte("receiver"),
SndAddr: []byte("sender1"),
GasPrice: 100,
GasLimit: 10,
Signature: []byte("signature"),
RelayerAddr: []byte("relayer"),
RelayerSignature: []byte("signature"),
}
require.True(t, IsValidRelayedTxV3(relayedTxV3))
require.True(t, IsRelayedTxV3(relayedTxV3))
}
7 changes: 7 additions & 0 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ const MetricMinGasLimit = "erd_min_gas_limit"
// MetricExtraGasLimitGuardedTx specifies the extra gas limit required for guarded transactions
const MetricExtraGasLimitGuardedTx = "erd_extra_gas_limit_guarded_tx"

// MetricExtraGasLimitRelayedTx specifies the extra gas limit required for relayed v3 transactions
const MetricExtraGasLimitRelayedTx = "erd_extra_gas_limit_relayed_tx"

// MetricRewardsTopUpGradientPoint is the metric that specifies the rewards top up gradient point
const MetricRewardsTopUpGradientPoint = "erd_rewards_top_up_gradient_point"

Expand Down Expand Up @@ -737,6 +740,9 @@ const (
// MetricFixRelayedMoveBalanceToNonPayableSCEnableEpoch represents the epoch when the fix for relayed move balance to non-payable sc is enabled
MetricFixRelayedMoveBalanceToNonPayableSCEnableEpoch = "erd_fix_relayed_move_balance_to_non_payable_sc_enable_epoch"

// MetricRelayedTransactionsV3EnableEpoch represents the epoch when the relayed transactions v3 are enabled
MetricRelayedTransactionsV3EnableEpoch = "erd_relayed_transactions_v3_enable_epoch"

// MetricMaxNodesChangeEnableEpoch holds configuration for changing the maximum number of nodes and the enabling epoch
MetricMaxNodesChangeEnableEpoch = "erd_max_nodes_change_enable_epoch"

Expand Down Expand Up @@ -1234,5 +1240,6 @@ const (
FixRelayedBaseCostFlag core.EnableEpochFlag = "FixRelayedBaseCostFlag"
MultiESDTNFTTransferAndExecuteByUserFlag core.EnableEpochFlag = "MultiESDTNFTTransferAndExecuteByUserFlag"
FixRelayedMoveBalanceToNonPayableSCFlag core.EnableEpochFlag = "FixRelayedMoveBalanceToNonPayableSCFlag"
RelayedTransactionsV3Flag core.EnableEpochFlag = "RelayedTransactionsV3Flag"
// all new flags must be added to createAllFlagsMap method, as part of enableEpochsHandler allFlagsDefined
)
6 changes: 6 additions & 0 deletions common/enablers/enableEpochsHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,12 @@ func (handler *enableEpochsHandler) createAllFlagsMap() {
},
activationEpoch: handler.enableEpochsConfig.FixRelayedMoveBalanceToNonPayableSCEnableEpoch,
},
common.RelayedTransactionsV3Flag: {
isActiveInEpoch: func(epoch uint32) bool {
return epoch >= handler.enableEpochsConfig.RelayedTransactionsV3EnableEpoch
},
activationEpoch: handler.enableEpochsConfig.RelayedTransactionsV3EnableEpoch,
},
}
}

Expand Down
2 changes: 2 additions & 0 deletions common/enablers/enableEpochsHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func createEnableEpochsConfig() config.EnableEpochs {
MultiESDTNFTTransferAndExecuteByUserEnableEpoch: 106,
FixRelayedMoveBalanceToNonPayableSCEnableEpoch: 107,
UseGasBoundedShouldFailExecutionEnableEpoch: 108,
RelayedTransactionsV3EnableEpoch: 109,
}
}

Expand Down Expand Up @@ -448,6 +449,7 @@ func TestEnableEpochsHandler_GetActivationEpoch(t *testing.T) {
require.Equal(t, cfg.FixRelayedBaseCostEnableEpoch, handler.GetActivationEpoch(common.FixRelayedBaseCostFlag))
require.Equal(t, cfg.MultiESDTNFTTransferAndExecuteByUserEnableEpoch, handler.GetActivationEpoch(common.MultiESDTNFTTransferAndExecuteByUserFlag))
require.Equal(t, cfg.FixRelayedMoveBalanceToNonPayableSCEnableEpoch, handler.GetActivationEpoch(common.FixRelayedMoveBalanceToNonPayableSCFlag))
require.Equal(t, cfg.RelayedTransactionsV3EnableEpoch, handler.GetActivationEpoch(common.RelayedTransactionsV3Flag))
}

func TestEnableEpochsHandler_IsInterfaceNil(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions config/epochConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ type EnableEpochs struct {
FixRelayedBaseCostEnableEpoch uint32
MultiESDTNFTTransferAndExecuteByUserEnableEpoch uint32
FixRelayedMoveBalanceToNonPayableSCEnableEpoch uint32
RelayedTransactionsV3EnableEpoch uint32
BLSMultiSignerEnableEpoch []MultiSignerConfig
}

Expand Down
4 changes: 4 additions & 0 deletions config/tomlConfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,9 @@ func TestEnableEpochConfig(t *testing.T) {
# FixRelayedMoveBalanceToNonPayableSCEnableEpoch represents the epoch when the fix for relayed move balance to non payable sc will be enabled
FixRelayedMoveBalanceToNonPayableSCEnableEpoch = 102
# RelayedTransactionsV3EnableEpoch represents the epoch when the relayed transactions v3 will be enabled
RelayedTransactionsV3EnableEpoch = 103
# MaxNodesChangeEnableEpoch holds configuration for changing the maximum number of nodes and the enabling epoch
MaxNodesChangeEnableEpoch = [
{ EpochEnable = 44, MaxNumNodes = 2169, NodesToShufflePerShard = 80 },
Expand Down Expand Up @@ -1004,6 +1007,7 @@ func TestEnableEpochConfig(t *testing.T) {
FixRelayedBaseCostEnableEpoch: 100,
MultiESDTNFTTransferAndExecuteByUserEnableEpoch: 101,
FixRelayedMoveBalanceToNonPayableSCEnableEpoch: 102,
RelayedTransactionsV3EnableEpoch: 103,
MaxNodesChangeEnableEpoch: []MaxNodesChangeConfig{
{
EpochEnable: 44,
Expand Down
6 changes: 3 additions & 3 deletions dataRetriever/txpool/memorytests/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func TestShardedTxPool_MemoryFootprint(t *testing.T) {

journals = append(journals, runScenario(t, newScenario(100, 1, core.MegabyteSize, "1_0"), memoryAssertion{90, 100}, memoryAssertion{0, 1}))
journals = append(journals, runScenario(t, newScenario(10000, 1, 10240, "1_0"), memoryAssertion{96, 128}, memoryAssertion{0, 4}))
journals = append(journals, runScenario(t, newScenario(10, 10000, 1000, "1_0"), memoryAssertion{96, 140}, memoryAssertion{16, 25}))
journals = append(journals, runScenario(t, newScenario(150000, 1, 128, "1_0"), memoryAssertion{50, 80}, memoryAssertion{30, 40}))
journals = append(journals, runScenario(t, newScenario(1, 150000, 128, "1_0"), memoryAssertion{50, 80}, memoryAssertion{30, 40}))
journals = append(journals, runScenario(t, newScenario(10, 10000, 1000, "1_0"), memoryAssertion{96, 148}, memoryAssertion{16, 32}))
journals = append(journals, runScenario(t, newScenario(150000, 1, 128, "1_0"), memoryAssertion{50, 84}, memoryAssertion{30, 48}))
journals = append(journals, runScenario(t, newScenario(1, 150000, 128, "1_0"), memoryAssertion{50, 84}, memoryAssertion{30, 48}))

for _, journal := range journals {
journal.displayFootprintsSummary()
Expand Down
4 changes: 2 additions & 2 deletions factory/disabled/txCoordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func (txCoordinator *TxCoordinator) CreateReceiptsHash() ([]byte, error) {
}

// ComputeTransactionType does nothing as it is disabled
func (txCoordinator *TxCoordinator) ComputeTransactionType(_ data.TransactionHandler) (process.TransactionType, process.TransactionType) {
return 0, 0
func (txCoordinator *TxCoordinator) ComputeTransactionType(_ data.TransactionHandler) (process.TransactionType, process.TransactionType, bool) {
return 0, 0, false
}

// RequestMiniBlocksAndTransactions does nothing as it is disabled
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ require (
github.com/klauspost/cpuid/v2 v2.2.5
github.com/mitchellh/mapstructure v1.5.0
github.com/multiversx/mx-chain-communication-go v1.1.1
github.com/multiversx/mx-chain-core-go v1.2.24-0.20241223124350-686902f86816
github.com/multiversx/mx-chain-core-go v1.2.24-0.20250109151319-81a62c045af8
github.com/multiversx/mx-chain-crypto-go v1.2.12
github.com/multiversx/mx-chain-es-indexer-go v1.7.10
github.com/multiversx/mx-chain-es-indexer-go v1.7.13-0.20250109151711-ceaca49de8e1
github.com/multiversx/mx-chain-logger-go v1.0.15
github.com/multiversx/mx-chain-scenario-go v1.4.4
github.com/multiversx/mx-chain-storage-go v1.0.18
github.com/multiversx/mx-chain-storage-go v1.0.19-0.20250109152325-cf81acfd19bd
github.com/multiversx/mx-chain-vm-common-go v1.5.16
github.com/multiversx/mx-chain-vm-go v1.5.37
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.68
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -387,18 +387,18 @@ github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUY
github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o=
github.com/multiversx/mx-chain-communication-go v1.1.1 h1:y4DoQeQOJTaSUsRzczQFazf8JYQmInddypApqA3AkwM=
github.com/multiversx/mx-chain-communication-go v1.1.1/go.mod h1:WK6bP4pGEHGDDna/AYRIMtl6G9OA0NByI1Lw8PmOnRM=
github.com/multiversx/mx-chain-core-go v1.2.24-0.20241223124350-686902f86816 h1:Z4IZQsECQUItUfXc6WMhBYnuYn5HJ+hl1TiDdOY6RpI=
github.com/multiversx/mx-chain-core-go v1.2.24-0.20241223124350-686902f86816/go.mod h1:B5zU4MFyJezmEzCsAHE9YNULmGCm2zbPHvl9hazNxmE=
github.com/multiversx/mx-chain-core-go v1.2.24-0.20250109151319-81a62c045af8 h1:0ivlwcl+dKK7BTVngm1uNM2aDneaXK2rhS0HVeBkvYg=
github.com/multiversx/mx-chain-core-go v1.2.24-0.20250109151319-81a62c045af8/go.mod h1:B5zU4MFyJezmEzCsAHE9YNULmGCm2zbPHvl9hazNxmE=
github.com/multiversx/mx-chain-crypto-go v1.2.12 h1:zWip7rpUS4CGthJxfKn5MZfMfYPjVjIiCID6uX5BSOk=
github.com/multiversx/mx-chain-crypto-go v1.2.12/go.mod h1:HzcPpCm1zanNct/6h2rIh+MFrlXbjA5C8+uMyXj3LI4=
github.com/multiversx/mx-chain-es-indexer-go v1.7.10 h1:Umi7WN8h4BOXLw7CM3VgvaWkLGef7nXtaPIGbjBCT3U=
github.com/multiversx/mx-chain-es-indexer-go v1.7.10/go.mod h1:oGcRK2E3Syv6vRTszWrrb/TqD8akq0yeoMr1wPPiTO4=
github.com/multiversx/mx-chain-es-indexer-go v1.7.13-0.20250109151711-ceaca49de8e1 h1:rHZS2Nw7M8thrtdN+s8qIf7TN9pi79r8n9J2gs0MaCc=
github.com/multiversx/mx-chain-es-indexer-go v1.7.13-0.20250109151711-ceaca49de8e1/go.mod h1:NMNBlIO60Wc026iSDp/eqnb0YmoiH05pEuphkdlW43k=
github.com/multiversx/mx-chain-logger-go v1.0.15 h1:HlNdK8etyJyL9NQ+6mIXyKPEBo+wRqOwi3n+m2QIHXc=
github.com/multiversx/mx-chain-logger-go v1.0.15/go.mod h1:t3PRKaWB1M+i6gUfD27KXgzLJJC+mAQiN+FLlL1yoGQ=
github.com/multiversx/mx-chain-scenario-go v1.4.4 h1:DVE2V+FPeyD/yWoC+KEfPK3jsFzHeruelESfpTlf460=
github.com/multiversx/mx-chain-scenario-go v1.4.4/go.mod h1:kI+TWR3oIEgUkbwkHCPo2CQ3VjIge+ezGTibiSGwMxo=
github.com/multiversx/mx-chain-storage-go v1.0.18 h1:DA33o5COEjnCKclCeCvzXXI0zIgFp2QqZK32UTVvDes=
github.com/multiversx/mx-chain-storage-go v1.0.18/go.mod h1:eFDEOrG7Wiyk5I/ObpwcN2eoBlOnnfeEMTvTer1cymk=
github.com/multiversx/mx-chain-storage-go v1.0.19-0.20250109152325-cf81acfd19bd h1:qhdCOHlo4EAvFpGhToDKPiXwZA8x9PeGcBWTVvYzUOw=
github.com/multiversx/mx-chain-storage-go v1.0.19-0.20250109152325-cf81acfd19bd/go.mod h1:8EA0PzK1ZPGpSKe+nXHx0My1MJlBcJ51fb7J7SwH7Lw=
github.com/multiversx/mx-chain-vm-common-go v1.5.16 h1:g1SqYjxl7K66Y1O/q6tvDJ37fzpzlxCSfRzSm/woQQY=
github.com/multiversx/mx-chain-vm-common-go v1.5.16/go.mod h1:1rSkXreUZNXyPTTdhj47M+Fy62yjxbu3aAsXEtKN3UY=
github.com/multiversx/mx-chain-vm-go v1.5.37 h1:Iy3KCvM+DOq1f9UPA7uYK/rI3ZbBOXc2CVNO2/vm5zw=
Expand Down
Loading
Loading