Skip to content

Commit

Permalink
Merge pull request #135 from ElrondNetwork/rc-2022-july
Browse files Browse the repository at this point in the history
Release 1.3.42.0
  • Loading branch information
iulianpascalau authored Sep 26, 2022
2 parents 669cbf1 + 3094a2b commit 6aa66c0
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 19 deletions.
13 changes: 12 additions & 1 deletion api.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@
{ Name = "/ratings", Open = true },

# /network/genesis-nodes will return the genesis nodes public keys
{ Name = "/genesis-nodes", Open = true }
{ Name = "/genesis-nodes", Open = true },

# /network/genesis-balances will return the balances minted at genesis
{ Name = "/genesis-balances", Open = true },

# /network/gas-configs will return currently scheduled gas configs
{ Name = "/gas-configs", Open = true }
]

[APIPackages.log]
Expand Down Expand Up @@ -164,6 +170,11 @@
{ Name = "/cost", Open = true },

# /transaction/pool will return the hashes of the transactions that are currently in the pool
# /transaction/pool?fields=sender,receiver,gaslimit,gasprice will return hashes and all the optional fields mentioned that are currently in the pool
# /transaction/pool?by-sender=erd1... will return the hashes of the transactions that are currently in the pool for the sender
# /transaction/pool?by-sender=erd1...&fields=sender,receiver,gaslimit,gasprice will return the hashes and all the optional fields mentioned of the transactions that are currently in the pool for the sender
# /transaction/pool?by-sender=erd1...&last-nonce=true will return the last nonce for the sender from the pool
# /transaction/pool?by-sender=erd1...&nonce-gaps=true will return all nonce gaps for the sender from the pool, if applicable
{ Name = "/pool", Open = true },

# /transaction/:txhash will return the transaction in JSON format based on its hash
Expand Down
2 changes: 1 addition & 1 deletion binaryVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tags/v1.3.36
tags/v1.3.42
45 changes: 41 additions & 4 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
# available in local disk
StartInEpochEnabled = true

# ChainID identifies the blockChain
# ChainID represents the chain identifier
# The currently supported constants are:
# "1" for Mainnet
# "D" for Devnet
# "T" for Testnet
ChainID = "1"

# MinTransactionVersion represents the minimum transaction version accepted
Expand Down Expand Up @@ -669,6 +673,7 @@
[StateTriesConfig]
CheckpointRoundsModulus = 100
CheckpointsEnabled = false
SnapshotsEnabled = true
AccountsStatePruningEnabled = true
PeerStatePruningEnabled = true
MaxStateTrieLevelInMemory = 5
Expand Down Expand Up @@ -706,6 +711,14 @@
ShardMaxGasPerVmQuery = 1500000000 #1.5b
MetaMaxGasPerVmQuery = 0 #unlimited

[BuiltInFunctions]
AutomaticCrawlerAddresses =[
"erd13cv2nllvka35dshazqxtcym8vyamnmjay26nzcjswnjyxxpny7yq6twx0v", #shard 0
"erd14zpxzaf3s00j6s4ke2ct475dk9285ekejujvtkt4h6azm2rfkfdsyjqkk4", #shard 1
"erd1zj06ewmmmm2ntng4d8art4ta8fz0n5xr4f0yn9knuf2k8mm7gzhqqf74cr", #shard 2
]
MaxNumAddressesInTransferRole = 100

[Hardfork]
EnableTrigger = true
EnableTriggerFromP2P = true
Expand Down Expand Up @@ -796,10 +809,10 @@
ProcessDataTrieOnCommitEpoch = false

[Health]
IntervalVerifyMemoryInSeconds = 5
IntervalVerifyMemoryInSeconds = 30
IntervalDiagnoseComponentsInSeconds = 30
IntervalDiagnoseComponentsDeeplyInSeconds = 120
MemoryUsageToCreateProfiles = 2415919104 # 2.25GB
MemoryUsageToCreateProfiles = 3221225472 # 3 GB
NumMemoryUsageRecordsToKeep = 100
FolderPath = "health-records"

Expand Down Expand Up @@ -894,8 +907,32 @@
MaxHardCapForMissingNodes = 5000
#available versions: 1 and 2. 1 is the initial version, 2 is updated, more efficient version
TrieSyncerVersion = 2
CheckNodesOnDisk = false

[Resolvers]
NumCrossShardPeers = 2
NumIntraShardPeers = 1
NumTotalPeers = 3 # NumCrossShardPeers + num intra shard
NumFullHistoryPeers = 3

[HeartbeatV2]
PeerAuthenticationTimeBetweenSendsInSec = 7200 # 2h
PeerAuthenticationTimeBetweenSendsWhenErrorInSec = 60 # 1min
PeerAuthenticationThresholdBetweenSends = 0.1 # 10%
HeartbeatTimeBetweenSendsInSec = 300 # 5min
HeartbeatTimeBetweenSendsWhenErrorInSec = 60 # 1min
HeartbeatThresholdBetweenSends = 0.1 # 10%
HeartbeatExpiryTimespanInSec = 14400 # 4h
MinPeersThreshold = 0.8 # 80%
DelayBetweenRequestsInSec = 10 # 10sec
MaxTimeoutInSec = 7200 # 2h
DelayBetweenConnectionNotificationsInSec = 60 # 1min
MaxMissingKeysInRequest = 1000
MaxDurationPeerUnresponsiveInSec = 900 # 15min
HideInactiveValidatorIntervalInSec = 3600 # 1h
HardforkTimeBetweenSendsInSec = 60 # 1min
TimeBetweenConnectionsMetricsUpdateInSec = 30 # 30sec
[HeartbeatV2.HeartbeatPool]
Name = "HeartbeatPool"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
16 changes: 15 additions & 1 deletion enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
# StakingV2EnableEpoch represents the epoch when staking v2 is enabled
StakingV2EnableEpoch = 239

# DoubleKeyProtectionEnableEpoch represents the epoch when the double key protection will be enabled
DoubleKeyProtectionEnableEpoch = 180

# ESDTEnableEpoch represents the epoch when ESDT is enabled
Expand Down Expand Up @@ -135,7 +136,7 @@
# CorrectFirstQueuedEpoch represents the epoch when the backward compatibility for setting the first queued node is enabled
CorrectFirstQueuedEpoch = 460

# DeleteDelegatorAfterClaimRewardsEnableEpoch represents the epoch when the delegators data is deleted for delegators that have to claim rewards after they widrawal all funds
# DeleteDelegatorAfterClaimRewardsEnableEpoch represents the epoch when the delegators data is deleted for delegators that have to claim rewards after they withdraw all funds
DeleteDelegatorAfterClaimRewardsEnableEpoch = 460

# FixOOGReturnCodeEnableEpoch represents the epoch when the backward compatibility returning out of gas error is enabled
Expand Down Expand Up @@ -208,13 +209,26 @@
# CheckExecuteOnReadOnlyEnableEpoch represents the epoch when the extra checks are enabled for execution on read only
CheckExecuteOnReadOnlyEnableEpoch = 707

# ESDTMetadataContinuousCleanupEnableEpoch represents the epoch when esdt metadata is automatically deleted according to inshard liquidity
ESDTMetadataContinuousCleanupEnableEpoch = 795

# HeartbeatDisableEpoch represents the epoch when heartbeat v1 messages stop being sent and processed
HeartbeatDisableEpoch = 795

# MiniBlockPartialExecutionEnableEpoch represents the epoch when mini block partial execution will be enabled
MiniBlockPartialExecutionEnableEpoch = 795

# FixAsyncCallBackArgsListEnableEpoch represents the epoch when the async callback arguments lists fix will be enabled
FixAsyncCallBackArgsListEnableEpoch = 795

# MaxNodesChangeEnableEpoch holds configuration for changing the maximum number of nodes and the enabling epoch
MaxNodesChangeEnableEpoch = [
{ EpochEnable = 0, MaxNumNodes = 2169, NodesToShufflePerShard = 143 },
{ EpochEnable = 249, MaxNumNodes = 3200, NodesToShufflePerShard = 80 }
]

[GasSchedule]
# GasScheduleByEpochs holds the configuration for the gas schedule that will be applied from specific epochs
GasScheduleByEpochs = [
{ StartEpoch = 0, FileName = "gasScheduleV1.toml" },
{ StartEpoch = 180, FileName = "gasScheduleV2.toml" },
Expand Down
4 changes: 2 additions & 2 deletions external.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
Username = ""
Password = ""
# EnabledIndexes represents a slice of indexes that will be enabled for indexing. Full list is:
# ["rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators", "operations"]
EnabledIndexes = ["rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators", "operations"]
# ["rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators", "operations", "collections"]
EnabledIndexes = ["rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators", "operations", "collections"]

# EventNotifierConnector defines settings needed to configure and launch the event notifier component
[EventNotifierConnector]
Expand Down
6 changes: 0 additions & 6 deletions p2p.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
#the sync and consensus mechanisms
ThresholdMinConnectedPeers = 3

# ConnectionWatcherType represents the type of a connection watcher needed.
# possible options:
# - "disabled" - no connection watching should be made
# - "print" - new connection found will be printed in the log file
ConnectionWatcherType = "disabled"

# MinNumPeersToWaitForOnBootstrap is the minimum number of peers to wait on bootstrap or the node will wait the default
# time which is now set to ~20 seconds (the const defined in the common package named TimeToWaitForP2PBootstrap)
MinNumPeersToWaitForOnBootstrap = 10
Expand Down
13 changes: 9 additions & 4 deletions prefs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
# It is highly recommended to enable this flag on an observer (not on a validator node)
FullArchive = false

# PreferredConnections holds an array containing the public keys of the nodes to connect with (in top of other connections)
# PreferredConnections holds an array containing valid ips or peer ids from nodes to connect with (in top of other connections)
# Example:
# PreferredConnections = [
# "eb2a13ec773924df2c7d1e92ff1c08d1c3b14218dc6a780b269ef12b9c098971f71851c212103720d40f92380c306a0c1a5e606f043f034188c3fcb95170112158730e2c53cd6c79331ce73df921675d71488f6287aa1ddca297756a98239584",
# "eb2a13ec773924df2c7d1e92ff1c08d1c3b14218dc6a780b269ef12b9c098971f71851c212103720d40f92380c306a0c1a5e606f043f034188c3fcb95170112158730e2c53cd6c79331ce73df921675d71488f6287aa1ddca297756a98239584"
# "127.0.0.10",
# "16Uiu2HAm6yvbp1oZ6zjnWsn9FdRqBSaQkbhELyaThuq48ybdorrr"
# ]

PreferredConnections = []

# ConnectionWatcherType represents the type of a connection watcher needed.
# possible options:
# - "disabled" - no connection watching should be made
# - "print" - new connection found will be printed in the log file
ConnectionWatcherType = "disabled"

0 comments on commit 6aa66c0

Please sign in to comment.