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

Merge dev into liquid staking 26 05 2022 #4118

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
549 commits
Select commit Hold shift + click to select a range
43a566b
Merge pull request #3956 from ElrondNetwork/hardfork-integration
sstanculeanu Apr 8, 2022
4d8dc35
Merge branch 'feat/heartbeat-v2' into preferred-peers-refactor
sstanculeanu Apr 8, 2022
a7c8a45
fixes from review on #3956
sstanculeanu Apr 8, 2022
bebf25b
fixes after review
sstanculeanu Apr 11, 2022
54aeee9
fixes after review + fixed tests
sstanculeanu Apr 11, 2022
c7e7aab
fix after review: remove data from map only when available
sstanculeanu Apr 12, 2022
38275dd
Merge pull request #3974 from ElrondNetwork/preferred-peers-refactor
sstanculeanu Apr 12, 2022
08ccd4a
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu Apr 12, 2022
57b897f
fix after merge
sstanculeanu Apr 12, 2022
49a44f2
Merge pull request #3981 from ElrondNetwork/merge-dev-into-feat-heart…
sstanculeanu Apr 12, 2022
ab652e7
* Added unit tests for feat/partial-mb-execution
SebastianMarian Apr 12, 2022
97b44fc
* Fixed after review
SebastianMarian Apr 13, 2022
245b82d
Merge pull request #3978 from ElrondNetwork/fix-partial-mb-execution
SebastianMarian Apr 13, 2022
0f23c94
Merge branch 'feat/partial-mb-execution' into unit-tests-for-feat-par…
SebastianMarian Apr 13, 2022
8b72ca8
Merge branch 'feat/partial-mb-execution' into unit-tests-for-feat-par…
SebastianMarian Apr 13, 2022
a994fbf
* Fixed after review
SebastianMarian Apr 13, 2022
3785edb
Merge remote-tracking branch 'origin/unit-tests-for-feat-partial-mb-e…
SebastianMarian Apr 13, 2022
f3fe6a2
* Fixed after the second review
SebastianMarian Apr 13, 2022
40c913c
Merge pull request #3983 from ElrondNetwork/unit-tests-for-feat-parti…
SebastianMarian Apr 13, 2022
e53d648
Merge branch 'development' of https://github.com/ElrondNetwork/elrond…
SebastianMarian Apr 13, 2022
9741df1
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian Apr 13, 2022
5f93879
Merge pull request #3984 from ElrondNetwork/merge-dev-into-feat-parti…
SebastianMarian Apr 13, 2022
5346bac
Merge branch 'feat/release-2022-April' into feat-april-with-indexer-v…
iulianpascalau Apr 13, 2022
b9c3d4b
* Changed elrond-go-core reference
SebastianMarian Apr 14, 2022
aa821ab
* Fixed stub
SebastianMarian Apr 14, 2022
471d3c9
Merge pull request #3988 from ElrondNetwork/fix-elrond-go-core-refere…
SebastianMarian Apr 14, 2022
e469d32
fix prefs.toml PreferredConnections comment
sstanculeanu Apr 14, 2022
f3445b7
Merge pull request #3989 from ElrondNetwork/fix-comments
sstanculeanu Apr 14, 2022
2011d22
added peersRatingHandler
sstanculeanu Apr 19, 2022
ab398df
added real peersRatingHandler component in integration tests
sstanculeanu Apr 20, 2022
0cf74b5
fixed test
sstanculeanu Apr 20, 2022
beb0e4f
Merge branch 'feat/release-2022-April' into feat-april-with-indexer-v…
iulianpascalau Apr 20, 2022
3601b1f
- go mod tidy
iulianpascalau Apr 20, 2022
246336f
fixes after initial review - now using cachers instead of maps
sstanculeanu Apr 21, 2022
2ad85d6
use stub instead of acronym
sstanculeanu Apr 21, 2022
aa27f87
now peersRatingHandler is fed by peersOnChannel component
sstanculeanu Apr 21, 2022
5cc4d74
integrated new flag
sasurobert Apr 21, 2022
123951d
new vmcommon release
sasurobert Apr 22, 2022
668938b
Merge pull request #3916 from ElrondNetwork/feat/release-2022-April
LucianMincu Apr 23, 2022
275dda0
Merge branch 'rc/2022-may' into fix-transferRole-check-on-transfer
LucianMincu Apr 23, 2022
2365c20
Merge pull request #4014 from ElrondNetwork/fix-transferRole-check-on…
LucianMincu Apr 25, 2022
f4a8ae6
new vm release
sasurobert Apr 26, 2022
e121005
move notifier go client code from notifier repository to elrond-go
ssd04 Apr 26, 2022
45108f3
added notifier client: go mod update
ssd04 Apr 26, 2022
8ad9020
added missing check on MinPeersThreshold which does not allow values …
sstanculeanu Apr 26, 2022
6ba812d
new vm release
sasurobert Apr 26, 2022
e26b7d0
notifier client: cleanup unused code
ssd04 Apr 26, 2022
36eb8b1
Merge branch 'development' of https://github.com/ElrondNetwork/elrond…
SebastianMarian Apr 26, 2022
7fd027a
notifier client: use pub key converter from core components
ssd04 Apr 26, 2022
1c849ff
Merge pull request #4018 from ElrondNetwork/missing_arg_check
sstanculeanu Apr 26, 2022
4842629
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu Apr 26, 2022
0f86b51
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian Apr 26, 2022
64ae43a
outportFactory: fix unit test
ssd04 Apr 26, 2022
f7ac7c4
fixes after merge
sstanculeanu Apr 26, 2022
88f7de7
* Fixed Warn messages in block tracker pools cleanup mechanism
SebastianMarian Apr 26, 2022
a571f07
Merge pull request #4021 from ElrondNetwork/merge-dev-into-feat-heart…
sstanculeanu Apr 27, 2022
058c194
eventNotifier: added unit tests
ssd04 Apr 27, 2022
894e26c
Merge branch 'development' into add-notifier-go-client
ssd04 Apr 27, 2022
81bcfe1
Merge pull request #4020 from ElrondNetwork/merge-dev-into-feat-parti…
gabi-vuls Apr 27, 2022
1809d98
* Fixed Warn messages in block tracker pools cleanup mechanism
SebastianMarian Apr 27, 2022
8bded1f
- new logger version
iulianpascalau Apr 27, 2022
a7ef2c8
fixes after review:
sstanculeanu Apr 27, 2022
b5d657c
* Changed log Warn to Debug
SebastianMarian Apr 27, 2022
9137462
properly split peers by tiers
sstanculeanu Apr 27, 2022
9fb4fd7
added missing call to `GetTopRatedPeersFromList`
sstanculeanu Apr 27, 2022
6e8e8ae
Merge pull request #4017 from ElrondNetwork/vm-1.4.34.rc8
iulianpascalau Apr 27, 2022
206e3cd
Merge branch 'rc/2022-may' into fix-log-warn-in-block-tracker-pools-c…
iulianpascalau Apr 27, 2022
93d424c
fixes after review:
ssd04 Apr 27, 2022
78a2fe6
fix linter issues: error check on write
ssd04 Apr 27, 2022
3db02c9
rename marshalizer in statusComponents also
ssd04 Apr 27, 2022
ce684d3
eventNotifier: added recover check in unit test
ssd04 Apr 27, 2022
39d33b6
added log with ratings on returned peers
sstanculeanu Apr 27, 2022
e8e2e56
fix logs order
miiu96 Apr 27, 2022
d98f12b
Merge branch 'rc/2022-may' into fix-logs-order
miiu96 Apr 27, 2022
b31e303
log.Trace and updated log message
sstanculeanu Apr 27, 2022
b836037
go mod update
ssd04 Apr 27, 2022
49a4949
Merge pull request #4022 from ElrondNetwork/fix-log-warn-in-block-tra…
iulianpascalau Apr 27, 2022
31a300a
Merge branch 'rc/2022-may' into fix-logs-order
iulianpascalau Apr 27, 2022
c1d23db
Merge pull request #4003 from ElrondNetwork/peers-rating-handler
sstanculeanu Apr 27, 2022
817fc7f
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu Apr 27, 2022
ddd2791
Merge pull request #4029 from ElrondNetwork/merge-dev-into-feat-peers…
sstanculeanu Apr 27, 2022
206c320
Merge pull request #4025 from ElrondNetwork/fix-logs-order
gabi-vuls Apr 27, 2022
ac329e8
Merge branch 'rc/2022-may' into feat-april-with-indexer-v1-2-x
iulianpascalau Apr 27, 2022
53b9f19
- fixed unit and integration tests
iulianpascalau Apr 28, 2022
bf60495
- fixed one more integration test
iulianpascalau Apr 28, 2022
64b2d66
fixed invalid rating logs
sstanculeanu Apr 28, 2022
27ad3b6
Merge pull request #4033 from ElrondNetwork/fix-invalid-rating-log
sstanculeanu Apr 28, 2022
eec08d7
- added new status metric in network/status endpoint
iulianpascalau Apr 28, 2022
ef390b3
- code refactoring
iulianpascalau Apr 28, 2022
36d0905
Merge pull request #4031 from ElrondNetwork/fix-tests
iulianpascalau Apr 28, 2022
f0c1401
Merge branch 'rc/2022-may' into new-network-status-metric
iulianpascalau Apr 28, 2022
533f84a
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu Apr 29, 2022
1b88d03
Merge pull request #4036 from ElrondNetwork/merge-dev-into-feat-peers…
sstanculeanu Apr 29, 2022
3f5af45
fixed epoch start metrics
bogdan-rosianu Apr 29, 2022
bd177a4
bug fix
bogdan-rosianu Apr 29, 2022
89a9eec
fix test
bogdan-rosianu Apr 29, 2022
dc393f6
Merge branch 'development' into add-notifier-go-client
ssd04 Apr 29, 2022
6662d85
Merge pull request #4028 from ElrondNetwork/feat/peers-rating
sstanculeanu Apr 29, 2022
a77633e
Merge pull request #4034 from ElrondNetwork/new-network-status-metric
gabi-vuls Apr 30, 2022
bee78b5
Merge branch 'development' into epoch-start-metrics-fixes
bogdan-rosianu May 2, 2022
6f99e5d
fixed reference issue
sstanculeanu May 2, 2022
b08519a
fixed logs and other marshal issues
sstanculeanu May 2, 2022
d47aca4
Merge branch 'development' into add-notifier-go-client
ssd04 May 2, 2022
32040fc
skip min size check on heartbeat messages as this may cause messages …
sstanculeanu May 2, 2022
57844b2
Merge branch 'rc/2022-may' into feat-april-with-indexer-v1-2-x
iulianpascalau May 2, 2022
34e2006
indexer v1.2.23
miiu96 May 2, 2022
6962a0a
Merge remote-tracking branch 'origin/feat-april-with-indexer-v1-2-x' …
miiu96 May 2, 2022
cd54810
epochStart: remove meta header from trigger maps on check errors
AdoAdoAdo May 2, 2022
8d7d945
Merge branch 'development' of https://github.com/ElrondNetwork/elrond…
SebastianMarian May 2, 2022
fae4be0
* Fixed bootstrap from storage when incomplete cleanup is done
SebastianMarian May 2, 2022
cabcb40
* Refactored method name
SebastianMarian May 2, 2022
7641a33
fix after review
sstanculeanu May 3, 2022
9a5ec2b
Merge pull request #4042 from ElrondNetwork/bugfix_heartbeatv2
sstanculeanu May 3, 2022
bd8bd88
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu May 3, 2022
fcd3198
* Added unit tests
SebastianMarian May 3, 2022
3e9491c
fixes after merge
sstanculeanu May 3, 2022
daa5742
* Sorted imports
SebastianMarian May 3, 2022
f8e2413
Merge pull request #4039 from ElrondNetwork/epoch-start-metrics-fixes
bogdan-rosianu May 3, 2022
86b0619
Merge pull request #4046 from ElrondNetwork/merge-dev-into-feat-heart…
sstanculeanu May 3, 2022
08a54fe
Merge branch 'development' into fix-bootstrap-from-storage-on-incompl…
SebastianMarian May 3, 2022
062e10a
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu May 3, 2022
d51ef43
Merge pull request #4048 from ElrondNetwork/merge-dev-into-heartbeat-…
sstanculeanu May 3, 2022
b1030da
* Fixed after review
SebastianMarian May 3, 2022
03cadcd
Merge remote-tracking branch 'origin/fix-bootstrap-from-storage-on-in…
SebastianMarian May 3, 2022
b35daf4
fix after merge - fix tests
sstanculeanu May 3, 2022
2b5d7bb
Merge pull request #4051 from ElrondNetwork/fix-tests
sstanculeanu May 3, 2022
e12e030
ignore meta headers if the block epoch is outside of immediate range.
AdoAdoAdo May 3, 2022
3745087
process: add unit tests
AdoAdoAdo May 3, 2022
3128c6b
Merge branch 'rc/2022-may' into merge-rc-may-development
AdoAdoAdo May 3, 2022
4c6761d
gomod: update vmcommon version
AdoAdoAdo May 3, 2022
20ac137
Merge pull request #4053 from ElrondNetwork/merge-rc-may-development
AdoAdoAdo May 4, 2022
6e04be2
Merge branch 'development' into fix-missing-epoch-start-prepare
AdoAdoAdo May 4, 2022
36e05e1
extracted max gas limit for vm query to config
bogdan-rosianu May 4, 2022
c6e7b03
fixed test description
bogdan-rosianu May 4, 2022
86f3197
moved configuration value
bogdan-rosianu May 4, 2022
5fdf992
fix typo
bogdan-rosianu May 4, 2022
9c6ffb0
move debug log to trace
AdoAdoAdo May 5, 2022
4365190
Merge pull request #4057 from ElrondNetwork/max-gas-limit-vmquery-con…
iulianpascalau May 5, 2022
a05c841
Merge branch 'development' into fix-bootstrap-from-storage-on-incompl…
gabi-vuls May 5, 2022
56ebd39
Merge branch 'master' into update-rc-may-master2022.05.05
iulianpascalau May 5, 2022
915e1d6
* Fixed after review
SebastianMarian May 6, 2022
40da6df
Merge remote-tracking branch 'origin/fix-bootstrap-from-storage-on-in…
SebastianMarian May 6, 2022
b3c39ae
Merge pull request #4063 from ElrondNetwork/update-rc-may-master2022.…
gabi-vuls May 6, 2022
9f257ff
Merge branch 'rc/2022-may' into feat-april-with-indexer-v1-2-x
miiu96 May 6, 2022
107a309
indexer v1.2.24
miiu96 May 6, 2022
cb1ca42
Merge branch 'development' into add-notifier-go-client
ssd04 May 6, 2022
3cad6e6
indexer v1.2.25
miiu96 May 6, 2022
3a67e05
go mod tidy
miiu96 May 6, 2022
ca1cd5e
renamed ShardValidatorInfo to DirectConnectionInfo as it collides to …
sstanculeanu May 9, 2022
e8bc4d5
formatted code with gofmt
bogdan-rosianu May 9, 2022
1e69d73
added dataPacker on peerAuthenticationResolver
sstanculeanu May 9, 2022
b8a58f3
added counter of requested hashes on RequestPeerAuthenticationsByHash…
sstanculeanu May 9, 2022
bab80d6
Merge pull request #4019 from ElrondNetwork/add-notifier-go-client
iulianpascalau May 9, 2022
0f8deae
fixes some small issues incompatible with gogoprotomarshalizer
sstanculeanu May 9, 2022
e4db1f6
fixed typo after self review
sstanculeanu May 9, 2022
05472a0
fixed missing renaming
sstanculeanu May 9, 2022
ead06db
minimized the time between requests
sstanculeanu May 9, 2022
a229ac5
* Fixed after first review
SebastianMarian May 9, 2022
d76c531
* Finished fixes after first review
SebastianMarian May 9, 2022
0db3116
Merge branch 'development' into go-fmt-may9
gabi-vuls May 10, 2022
245dc25
removed whitelist mechanism on peer authentications as the hashes are…
sstanculeanu May 10, 2022
103bda5
create vmOutput if error on system vm
sasurobert May 10, 2022
30d3761
send heartbeat messages on proper topic
sstanculeanu May 10, 2022
1db0d1e
Merge pull request #4065 from ElrondNetwork/go-fmt-may9
bogdan-rosianu May 10, 2022
dc8904f
fix after review
sasurobert May 10, 2022
cb7b1b5
itoa to fmt.sprintf
sstanculeanu May 10, 2022
a6851da
* Finished fixes after second review
SebastianMarian May 10, 2022
6cea91b
* GO imports
SebastianMarian May 10, 2022
fa618b4
Merge branch 'development' of https://github.com/ElrondNetwork/elrond…
SebastianMarian May 10, 2022
d2c6636
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian May 10, 2022
85da807
* Merge dev in feat/partial-mb-execution
SebastianMarian May 10, 2022
1f16b53
* Merge dev in feat/partial-mb-execution
SebastianMarian May 10, 2022
81e0893
* Merge dev in feat/partial-mb-execution
SebastianMarian May 10, 2022
43b8c1a
Merge pull request #4070 from ElrondNetwork/merge-dev-in-feat-partial…
SebastianMarian May 10, 2022
3915ee9
Merge branch 'feat/partial-mb-execution' into fixes-after-review-feat…
SebastianMarian May 10, 2022
e3b909b
Merge branch 'development' into fix-bootstrap-from-storage-on-incompl…
SebastianMarian May 11, 2022
aff5a91
revert
miiu96 May 11, 2022
71a37bd
* Fixed after review
SebastianMarian May 11, 2022
57adab3
Merge pull request #4044 from ElrondNetwork/fix-bootstrap-from-storag…
SebastianMarian May 11, 2022
5c3bc83
Merge pull request #3986 from ElrondNetwork/feat-april-with-indexer-v…
miiu96 May 12, 2022
6325523
use pid from peer auth message, not the one from the peer received
sstanculeanu May 12, 2022
8d96dfb
added new topics to antiflood in order to allow messages after restart
sstanculeanu May 12, 2022
87455ea
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu May 12, 2022
81b8dcc
Merge pull request #4074 from ElrondNetwork/merge-dev-into-feat-heart…
sstanculeanu May 12, 2022
46c2372
Merge branch 'feat/heartbeat-v2' into improvements
sstanculeanu May 12, 2022
94a33e4
* Fixed after review
SebastianMarian May 12, 2022
0b986d7
added system account address in examples
bogdan-rosianu May 13, 2022
f45d297
Merge pull request #4067 from ElrondNetwork/create-vmOutput-if-error-…
iulianpascalau May 13, 2022
3486dcc
- fixed create release workflow
iulianpascalau May 13, 2022
e0d2f32
Merge pull request #4075 from ElrondNetwork/add-system-account-addres…
bogdan-rosianu May 13, 2022
2a92e67
Merge pull request #4076 from ElrondNetwork/fix-create-release-workflow
iulianpascalau May 13, 2022
c780931
Merge branch 'master' into update-master-rc-2022-may
iulianpascalau May 13, 2022
f12e872
- linter fixes
iulianpascalau May 13, 2022
309f9e3
* Fixed after review
SebastianMarian May 13, 2022
5f425d8
Merge pull request #4066 from ElrondNetwork/fixes-after-review-feat-p…
SebastianMarian May 13, 2022
1ee6e3c
fixed cast issue on heartbeat v2 monitor
sstanculeanu May 13, 2022
29d1ea8
Merge remote-tracking branch 'origin/improvements' into improvements
sstanculeanu May 13, 2022
8a47315
Merge pull request #4077 from ElrondNetwork/update-master-rc-2022-may
iulianpascalau May 13, 2022
19534ba
Merge branch 'rc/2022-may' into update-dev-rc-may-2022
iulianpascalau May 13, 2022
8f07c3c
Merge pull request #4078 from ElrondNetwork/update-dev-rc-may-2022
iulianpascalau May 13, 2022
b018628
Merge branch 'development' into fix-missing-epoch-start-prepare
AdoAdoAdo May 13, 2022
c463357
* Refactored processed mini blocks tracker
SebastianMarian May 13, 2022
dcc9938
fix parse int issue on meta shard
sstanculeanu May 16, 2022
67c68d6
no need to use ParseInt for shard
sstanculeanu May 16, 2022
af0a2b9
Merge branch 'development' of https://github.com/ElrondNetwork/elrond…
SebastianMarian May 16, 2022
9a17ebf
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian May 16, 2022
a697447
* Fixed roll back behind final edge case, when final block hash from …
SebastianMarian May 16, 2022
2a29d68
Merge pull request #4080 from ElrondNetwork/merge-dev-into-feat-parti…
SebastianMarian May 16, 2022
72794ec
fixed monitor tests
sstanculeanu May 16, 2022
2bfc9f7
Merge branch 'feat/partial-mb-execution' into refactor-processed-mini…
SebastianMarian May 16, 2022
f672a12
* Fixed after review
SebastianMarian May 16, 2022
0f3e88c
Merge remote-tracking branch 'origin/refactor-processed-mini-blocks-t…
SebastianMarian May 16, 2022
75fe608
* Fixed go imports
SebastianMarian May 16, 2022
ac465a5
* Fixed linter
SebastianMarian May 16, 2022
f7464de
Merge pull request #4055 from ElrondNetwork/fix-missing-epoch-start-p…
AdoAdoAdo May 17, 2022
aea26d3
Merge branch 'development' into fix-roll-back-behind-final-edge-case
iulianpascalau May 17, 2022
84ed722
fixes after review
sstanculeanu May 17, 2022
2c71a7d
Merge pull request #4079 from ElrondNetwork/refactor-processed-mini-b…
AdoAdoAdo May 17, 2022
1e6dc85
Merge pull request #4064 from ElrondNetwork/improvements
sstanculeanu May 17, 2022
5647c83
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu May 17, 2022
bd18484
Merge pull request #4084 from ElrondNetwork/merge-dev-into-feat-heart…
sstanculeanu May 17, 2022
d26088a
fixed long tests
sstanculeanu May 17, 2022
d7d0a63
Merge branch 'feat/heartbeat-v2' into fix-heartbeat-long-tests
sstanculeanu May 17, 2022
5390f5e
Merge pull request #4085 from ElrondNetwork/fix-heartbeat-long-tests
sstanculeanu May 17, 2022
ed36edf
Merge pull request #4081 from ElrondNetwork/fix-roll-back-behind-fina…
SebastianMarian May 18, 2022
033ae34
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian May 19, 2022
6f0bb55
Merge pull request #4087 from ElrondNetwork/merge-dev-into-feat-parti…
SebastianMarian May 19, 2022
feb3a93
Merge remote-tracking branch 'origin/development' into merge-dev-into…
sstanculeanu May 20, 2022
4ae38dd
Merge pull request #4092 from ElrondNetwork/merge-dev-into-heartbeat-…
sstanculeanu May 20, 2022
3bae78e
Merge pull request #3736 from ElrondNetwork/feat/heartbeat-v2
sstanculeanu May 20, 2022
371660a
fix heartbeat monitor tests
sstanculeanu May 23, 2022
ed21ba2
Merge branch 'development' into merge-dev-into-feat-partial-mb-execut…
SebastianMarian May 23, 2022
2575f1e
* Merge conflicts resolved
SebastianMarian May 23, 2022
636d60d
Merge branch 'feat/partial-mb-execution' into merge-dev-into-feat-par…
SebastianMarian May 23, 2022
e9d5a7a
Merge pull request #4103 from ElrondNetwork/merge-dev-into-feat-parti…
SebastianMarian May 23, 2022
71ef61a
updated times between messages to fix long tests
sstanculeanu May 23, 2022
3342945
Merge pull request #4102 from ElrondNetwork/heartbeat_monitor_test_fix
sstanculeanu May 24, 2022
94e26cd
EN-10778 - small refactor on configs
sstanculeanu May 24, 2022
dc1d01a
update NumIntraShardPeers into tests as well
sstanculeanu May 24, 2022
14169c4
NumIntraShardPeers to NumTotalPeers
sstanculeanu May 24, 2022
fa8d5de
fixes after review
sstanculeanu May 24, 2022
1541fdd
Merge branch 'development' into feat/partial-mb-execution
SebastianMarian May 24, 2022
e556804
Merge pull request #4109 from ElrondNetwork/merge-dev-into-feat-parti…
SebastianMarian May 24, 2022
09e6438
Merge pull request #3965 from ElrondNetwork/feat/partial-mb-execution
SebastianMarian May 24, 2022
d7bbd92
Merge branch 'development' into EN-10778-config-refactor
sstanculeanu May 25, 2022
5831290
Merge pull request #4104 from ElrondNetwork/EN-10778-config-refactor
sstanculeanu May 25, 2022
ead9acd
Merge branch 'development' into merge-dev-into-liquid-staking-26-05-2022
mariusmihaic May 26, 2022
275bb87
FIX: Merge conflict
mariusmihaic May 26, 2022
3d8d6c3
FIX: Nil ProcessedMiniBlocksTracker
mariusmihaic May 26, 2022
ca99944
FIX: Nil NodesCoordinatorRegistryFactory
mariusmihaic May 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
build:
strategy:
Expand Down
8 changes: 4 additions & 4 deletions api/logs/logSender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func createMockLogSender() (*logs.LogSender, *mock.WsConnStub, io.Writer) {
return lsender, conn, ls.Writer()
}

//------- NewLogSender
// ------- NewLogSender

func TestNewLogSender_NilMarshalizerShouldErr(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestNewLogSender_ShouldWork(t *testing.T) {
removeWriterFromLogSubsystem(ls.Writer())
}

//------- StartSendingBlocking
// ------- StartSendingBlocking

func TestLogSender_StartSendingBlockingConnReadMessageErrShouldCloseConn(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -144,7 +144,7 @@ func TestLogSender_StartSendingBlockingSendsMessage(t *testing.T) {
})

go func() {
//watchdog function
// watchdog function
time.Sleep(time.Millisecond * 10)

_ = ls.Writer().Close()
Expand All @@ -169,7 +169,7 @@ func TestLogSender_StartSendingBlockingSendsMessageAndStopsWhenReadClose(t *test
})

go func() {
//watchdog function
// watchdog function
time.Sleep(time.Millisecond * 10)

conn.SetReadMessageHandler(func() (messageType int, p []byte, err error) {
Expand Down
55 changes: 28 additions & 27 deletions api/mock/loggerStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,64 @@ import logger "github.com/ElrondNetwork/elrond-go-logger"

// LoggerStub -
type LoggerStub struct {
LogLineCalled func(level string, message string, args ...interface{})
LogCalled func(level logger.LogLevel, message string, args ...interface{})
LogLineCalled func(line *logger.LogLine)
SetLevelCalled func(logLevel logger.LogLevel)
}

// Log -
func (l *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{}) {
if l.LogCalled != nil {
l.LogCalled(logLevel, message, args...)
}
}

// LogLine -
func (l *LoggerStub) LogLine(line *logger.LogLine) {
if l.LogLineCalled != nil {
l.LogLineCalled(line)
}
}

// Trace -
func (l *LoggerStub) Trace(message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled("TRACE", message, args...)
if l.LogCalled != nil {
l.LogCalled(logger.LogTrace, message, args...)
}
}

// Debug -
func (l *LoggerStub) Debug(message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled("DEBUG", message, args...)
if l.LogCalled != nil {
l.LogCalled(logger.LogDebug, message, args...)
}
}

// Info -
func (l *LoggerStub) Info(message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled("INFO", message, args...)
if l.LogCalled != nil {
l.LogCalled(logger.LogInfo, message, args...)
}
}

// Warn -
func (l *LoggerStub) Warn(message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled("WARN", message, args...)
if l.LogCalled != nil {
l.LogCalled(logger.LogWarning, message, args...)
}
}

// Error -
func (l *LoggerStub) Error(message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled("ERROR", message, args...)
if l.LogCalled != nil {
l.LogCalled(logger.LogError, message, args...)
}
}

// LogIfError -
func (l *LoggerStub) LogIfError(err error, args ...interface{}) {
if l.LogLineCalled != nil && err != nil {
l.LogLineCalled("ERROR", err.Error(), args...)
}
}

// LogLine -
func (l *LoggerStub) LogLine(line *logger.LogLine) {
if l.LogLineCalled != nil {
l.LogLineCalled("Log", "line", line)
}
}

// Log -
func (l *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{}) {
if l.LogLineCalled != nil {
l.LogLineCalled(string(logLevel), message, args...)
if l.LogCalled != nil && err != nil {
l.LogCalled(logger.LogError, err.Error(), args...)
}
}

Expand Down
43 changes: 41 additions & 2 deletions cmd/node/config/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 = "undefined"

# MinTransactionVersion represents the minimum transaction version accepted
Expand Down Expand Up @@ -474,6 +478,10 @@
Capacity = 10000
Type = "LRU"

[PeersRatingConfig]
TopRatedCacheCapacity = 5000
BadRatedCacheCapacity = 5000

[TrieSyncStorage]
Capacity = 300000
SizeInBytes = 104857600 #100MB
Expand Down Expand Up @@ -694,6 +702,11 @@
{ StartEpoch = 1, Version = "v1.4" },
]

[VirtualMachine.GasConfig]
# MaxGasPerVmQuery defines the maximum amount of gas to be allocated for VM Queries coming from API
# If set to 0, then MaxUInt64 will be used
MaxGasPerVmQuery = 1500000000 #1.5b

[Hardfork]
EnableTrigger = true
EnableTriggerFromP2P = true
Expand Down Expand Up @@ -885,5 +898,31 @@

[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 = 60 # 1min
HeartbeatTimeBetweenSendsWhenErrorInSec = 60 # 1min
HeartbeatThresholdBetweenSends = 0.1 # 10%
MaxNumOfPeerAuthenticationInResponse = 10
HeartbeatExpiryTimespanInSec = 3600 # 1h
MinPeersThreshold = 0.8 # 80%
DelayBetweenRequestsInSec = 10 # 10sec
MaxTimeoutInSec = 7200 # 2h
DelayBetweenConnectionNotificationsInSec = 60 # 1min
MaxMissingKeysInRequest = 1000
MaxDurationPeerUnresponsiveInSec = 900 # 15min
HideInactiveValidatorIntervalInSec = 3600 # 1h
HardforkTimeBetweenSendsInSec = 10 # 10sec
[HeartbeatV2.PeerAuthenticationPool]
DefaultSpanInSec = 3600 # 1h
CacheExpiryInSec = 3600 # 1h
[HeartbeatV2.HeartbeatPool]
Name = "HeartbeatPool"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
13 changes: 12 additions & 1 deletion cmd/node/config/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 = 1

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

# 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 = 1

# 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 = 1

# FixOOGReturnCodeEnableEpoch represents the epoch when the backward compatibility returning out of gas error is enabled
Expand Down Expand Up @@ -187,6 +188,9 @@
# SCRSizeInvariantOnBuiltInResultEnableEpoch represents the epoch when scr size invariant on built in result is enabled
SCRSizeInvariantOnBuiltInResultEnableEpoch = 1

# CheckCorrectTokenIDForTransferRoleEnableEpoch represents the epoch when the correct token ID check is applied for transfer role verification
CheckCorrectTokenIDForTransferRoleEnableEpoch = 2

# FailExecutionOnEveryAPIErrorEnableEpoch represent the epoch when new protection in VM is enabled to fail all wrong API calls
FailExecutionOnEveryAPIErrorEnableEpoch = 3

Expand Down Expand Up @@ -214,7 +218,14 @@
{ EpochEnable = 6, MaxNumNodes = 48, NodesToShufflePerShard = 2 },
]

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

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

[GasSchedule]
# GasScheduleByEpochs holds the configuration for the gas schedule that will be applied from specific epochs
GasScheduleByEpochs = [
{ StartEpoch = 0, FileName = "gasScheduleV1.toml" },
{ StartEpoch = 1, FileName = "gasScheduleV6.toml" },
Expand Down
6 changes: 3 additions & 3 deletions cmd/node/config/external.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#Strongly suggested to activate this on a regular observer node.
Enabled = false
IndexerCacheSize = 0
BulkRequestMaxSizeInBytes = 4194304 # 4MB
URL = "http://localhost:9200"
UseKibana = false
Username = ""
Password = ""
# EnabledIndexes represents a slice of indexes that will be enabled for indexing. Full list is:
# ["tps", "rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators"]
EnabledIndexes = ["tps", "rating", "transactions", "blocks", "validators", "miniblocks", "rounds", "accounts", "accountshistory", "receipts", "scresults", "accountsesdt", "accountsesdthistory", "epochinfo", "scdeploys", "tokens", "tags", "logs", "delegators"]

# ["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"]
# EventNotifierConnector defines settings needed to configure and launch the event notifier component
[EventNotifierConnector]
# Enabled will turn on or off the event notifier connector
Expand Down
6 changes: 3 additions & 3 deletions cmd/node/config/prefs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# 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 = []
1 change: 1 addition & 0 deletions cmd/seednode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ func createNode(p2pConfig config.P2PConfig, marshalizer marshal.Marshalizer) (p2
SyncTimer: &libp2p.LocalSyncTimer{},
PreferredPeersHolder: disabled.NewPreferredPeersHolder(),
NodeOperationMode: p2p.NormalOperation,
PeersRatingHandler: disabled.NewDisabledPeersRatingHandler(),
}

return libp2p.NewNetworkMessenger(arg)
Expand Down
12 changes: 6 additions & 6 deletions cmd/termui/view/termuic/termuiRenders/widgetsRender.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type WidgetsRender struct {
presenter view.Presenter
}

//NewWidgetsRender method will create new WidgetsRender that display termui console
// NewWidgetsRender method will create new WidgetsRender that display termui console
func NewWidgetsRender(presenter view.Presenter, grid *DrawableContainer) (*WidgetsRender, error) {
if presenter == nil || presenter.IsInterfaceNil() {
return nil, view.ErrNilPresenterInterface
Expand Down Expand Up @@ -106,7 +106,7 @@ func (wr *WidgetsRender) setGrid() {
wr.container.SetBottom(gridBottom)
}

//RefreshData method is used to prepare data that are displayed on container
// RefreshData method is used to prepare data that are displayed on container
func (wr *WidgetsRender) RefreshData(numMillisecondsRefreshTime int) {
wr.prepareInstanceInfo()
wr.prepareChainInfo(numMillisecondsRefreshTime)
Expand All @@ -116,7 +116,7 @@ func (wr *WidgetsRender) RefreshData(numMillisecondsRefreshTime int) {
}

func (wr *WidgetsRender) prepareInstanceInfo() {
//8 rows and one column
// 8 rows and one column
numRows := 8
rows := make([][]string, numRows)

Expand All @@ -138,7 +138,7 @@ func (wr *WidgetsRender) prepareInstanceInfo() {
fmt.Sprintf("Node name: %s (Shard %s - %s)",
nodeName,
shardIdStr,
strings.Title(nodeTypeAndListDisplay),
nodeTypeAndListDisplay,
),
}

Expand Down Expand Up @@ -174,7 +174,7 @@ func (wr *WidgetsRender) prepareInstanceInfo() {
}

func (wr *WidgetsRender) prepareChainInfo(numMillisecondsRefreshTime int) {
//10 rows and one column
// 10 rows and one column
numRows := 10
rows := make([][]string, numRows)

Expand Down Expand Up @@ -266,7 +266,7 @@ func computeRedundancyStr(redundancyLevel int64, redundancyIsMainActive string)
}

func (wr *WidgetsRender) prepareBlockInfo() {
//7 rows and one column
// 7 rows and one column
numRows := 8
rows := make([][]string, numRows)

Expand Down
15 changes: 15 additions & 0 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ const GenesisTxSignatureString = "GENESISGENESISGENESISGENESISGENESISGENESISGENE
// HeartbeatTopic is the topic used for heartbeat signaling
const HeartbeatTopic = "heartbeat"

// HeartbeatV2Topic is the topic used for heartbeatV2 signaling
const HeartbeatV2Topic = "heartbeatV2"

// PeerAuthenticationTopic is the topic used for peer authentication signaling
const PeerAuthenticationTopic = "peerAuthentication"

// ConnectionTopic represents the topic used when sending the new connection message data
const ConnectionTopic = "connection"

// PathShardPlaceholder represents the placeholder for the shard ID in paths
const PathShardPlaceholder = "[S]"

Expand Down Expand Up @@ -493,6 +502,9 @@ const (
// MetricWaitingListFixEnableEpoch represents the epoch when the waiting list fix is enabled
MetricWaitingListFixEnableEpoch = "erd_waiting_list_fix_enable_epoch"

// MetricHeartbeatDisableEpoch represents the epoch when heartbeat v1 messages stop being sent and processed
MetricHeartbeatDisableEpoch = "erd_heartbeat_disable_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 @@ -827,3 +839,6 @@ const (
// ApiOutputFormatProto outport format returns the bytes of the proto object
ApiOutputFormatProto ApiOutputFormat = 1
)

// MaxIndexOfTxInMiniBlock defines the maximum index of a tx inside one mini block
const MaxIndexOfTxInMiniBlock = int32(29999)
Loading