Skip to content

Commit 47d17b7

Browse files
committed
Fix sc plugin
1 parent 7e98c92 commit 47d17b7

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

plugins/txes/supercontract_v2/src/config/SuperContractV2Configuration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ namespace catapult { namespace config {
2222

2323
#define TRY_LOAD_CHAIN_PROPERTY(NAME) utils::TryLoadIniProperty(bag, "", #NAME, config.NAME)
2424

25-
config.MaxServicePaymentsSize = 512U;
26-
TRY_LOAD_CHAIN_PROPERTY(MaxServicePaymentsSize);
27-
2825
config.MaxRowSize = 4096U;
2926
TRY_LOAD_CHAIN_PROPERTY(MaxRowSize);
3027

3128
config.MaxExecutionPayment = 1000000U;
3229
TRY_LOAD_CHAIN_PROPERTY(MaxRowSize);
3330

31+
config.MaxServicePaymentsSize = 512U;
32+
TRY_LOAD_CHAIN_PROPERTY(MaxServicePaymentsSize);
33+
3434
config.MaxAutoExecutions = 100000U;
3535
TRY_LOAD_CHAIN_PROPERTY(MaxAutoExecutions);
3636

plugins/txes/supercontract_v2/src/config/SuperContractV2Configuration.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ namespace catapult { namespace config {
2020
/// Whether the plugin is enabled.
2121
bool Enabled;
2222

23-
/// Maximum transaction mosaics size.
24-
uint16_t MaxServicePaymentsSize;
25-
2623
/// Maximum size of rows in transactions
2724
uint16_t MaxRowSize;
2825

2926
/// Maximum execution payment per call
3027
uint64_t MaxExecutionPayment;
3128

29+
/// Maximum transaction mosaics size.
30+
uint16_t MaxServicePaymentsSize;
31+
3232
/// Maximum auto executions to be prepaid
3333
uint64_t MaxAutoExecutions;
3434

resources/config-network.properties

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,11 @@ enabled = true
244244
245245
[plugin:catapult.plugins.supercontract_v2]
246246
247+
[plugin:catapult.plugins.supercontract_v2]
248+
247249
enabled = true
248-
minExecutorCount = 10
250+
maxRowSize = 100
251+
maxExecutionPayment = 10'000'000'000
252+
maxServicePaymentsSize = 512
253+
maxAutoExecutions = 10000
254+
automaticExecutionsDeadline = 5760

scripts/bootstrap/ruby/catapult-templates/api_node/resources/config-network.properties.mt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ enabled = true
243243
[plugin:catapult.plugins.supercontract_v2]
244244

245245
enabled = true
246-
minExecutorCount = 10
247246
maxRowSize = 100
248247
maxExecutionPayment = 10'000'000'000
249-
maxServicePaymentsSize = 5
250-
maxAutoExecutions = 5
248+
maxServicePaymentsSize = 512
249+
maxAutoExecutions = 10000
250+
automaticExecutionsDeadline = 5760

scripts/bootstrap/ruby/catapult-templates/peer_node/resources/config-network.properties.mt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ enabled = true
243243
[plugin:catapult.plugins.supercontract_v2]
244244

245245
enabled = true
246-
minExecutorCount = 10
247246
maxRowSize = 100
248247
maxExecutionPayment = 10'000'000'000
249-
maxServicePaymentsSize = 5
250-
maxAutoExecutions = 5
248+
maxServicePaymentsSize = 512
249+
maxAutoExecutions = 10000
250+
automaticExecutionsDeadline = 5760

0 commit comments

Comments
 (0)