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 rc 1.6.0 trie sync optimizations #5293

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
354 commits
Select commit Hold shift + click to select a range
d7c1e24
Merge pull request #5129 from multiversx/outport-notifier-marshaller
ssd04 Mar 31, 2023
fdc540f
latest version of indexer and mx-chain-core
miiu96 Mar 31, 2023
2e2ea4c
Merge branch 'feat/outport-refactor' into fixes-outport-refactor
miiu96 Mar 31, 2023
74dc1e4
fixes after review
miiu96 Mar 31, 2023
ee0e9d2
Merge pull request #5135 from multiversx/fixes-outport-refactor
miiu96 Mar 31, 2023
cf828e3
Merge branch 'rc/v1.6.0' into merge-rc-into-feat-outport
miiu96 Mar 31, 2023
69e7aca
go mod tidy
miiu96 Mar 31, 2023
079e8c0
Merge pull request #5143 from multiversx/merge-rc-into-feat-outport
miiu96 Mar 31, 2023
ecc4f3f
Merge remote-tracking branch 'origin/rc/v1.6.0' into merge-rc/v1.6.0-…
BeniaminDrasovean Apr 3, 2023
a729637
Merge pull request #5147 from multiversx/merge-rc/v1.6.0-in-feat/sync…
BeniaminDrasovean Apr 3, 2023
3e522d6
Merge branch 'feat/sync-missing-trie-nodes' into sync-missing-keys-only
BeniaminDrasovean Apr 3, 2023
90c6e21
move IsGetNodeFromDbErr() to core
BeniaminDrasovean Apr 3, 2023
0c39afd
integrate the new web-sockets connector
miiu96 Apr 11, 2023
6ab26f4
extra field in config
miiu96 Apr 12, 2023
1899b85
small fix
miiu96 Apr 12, 2023
f774a29
change core version
miiu96 Apr 12, 2023
71523ac
latest core commit
miiu96 Apr 12, 2023
162d334
commit
miiu96 Apr 12, 2023
2ebe548
new commit hash
miiu96 Apr 12, 2023
be9bf90
tests for factory/processing
sstanculeanu Apr 13, 2023
26fb309
tests for newShardBlockProcessor
sstanculeanu Apr 13, 2023
d829b0c
more tests on processComponents
sstanculeanu Apr 13, 2023
2a46bcc
fix after review
BeniaminDrasovean Apr 19, 2023
2209162
added semi-integration test for relayed v2 multi nft transfers
bogdan-rosianu Apr 19, 2023
3490ead
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert Apr 19, 2023
79efe79
new go mod
sasurobert Apr 19, 2023
494736d
fixes after merge
sasurobert Apr 19, 2023
96231ea
fixes after merge
sasurobert Apr 19, 2023
b6134fe
Merge branch 'rc/v1.6.0' into relayed-v2-multi-transfer-semi-int-test
bogdan-rosianu Apr 19, 2023
ca44765
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert Apr 20, 2023
da1e15e
Merge pull request #4724 from multiversx/sync-missing-keys-only
BeniaminDrasovean Apr 21, 2023
de31e03
pass storageMarker as argument when SyncAccounts() is called
BeniaminDrasovean Apr 24, 2023
1fcd9ac
Merge branch 'more_factory_tests_p4' of https://github.com/multiversx…
sstanculeanu Apr 24, 2023
1fd7feb
some fixes after merge
sstanculeanu Apr 24, 2023
7fa44f6
Merge branch 'more_factory_tests_p4' of https://github.com/multiversx…
sstanculeanu Apr 24, 2023
f3170d8
Merge branch 'more_factory_tests_p4' of https://github.com/multiversx…
sstanculeanu Apr 25, 2023
5b7804b
Merge branch 'more_factory_tests_p4' of https://github.com/multiversx…
sstanculeanu Apr 25, 2023
3968467
fix after review
BeniaminDrasovean Apr 25, 2023
e4cd99a
add TODOs
BeniaminDrasovean Apr 25, 2023
c7848fa
- refactored transaction simulation construction
iulianpascalau Apr 25, 2023
0388d3f
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau Apr 25, 2023
de940c9
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert Apr 26, 2023
c4cb35e
fixes after merge
sasurobert Apr 26, 2023
99f15d7
fixes after merge
sasurobert Apr 26, 2023
4478bb5
Merge branch 'more_factory_tests_p4' of https://github.com/multiversx…
sstanculeanu Apr 26, 2023
3a06cbf
- fixes after merge
iulianpascalau Apr 26, 2023
a24d0c3
Merge branch 'rc/v1.6.0' into more_factory_tests_p5
sstanculeanu Apr 27, 2023
84ff072
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert Apr 27, 2023
d57f655
- added integration-test
iulianpascalau Apr 27, 2023
063d4f2
- added integration-test for shard
iulianpascalau Apr 27, 2023
9867e16
- added exception for some new tests, they are not short
iulianpascalau Apr 27, 2023
d742e29
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau Apr 27, 2023
220900e
- fixes after merge
iulianpascalau Apr 27, 2023
2528267
- linter issues
iulianpascalau Apr 27, 2023
245e527
MX-14120: repopulate tokens supplies
bogdan-rosianu Apr 27, 2023
04c3205
Merge branch 'rc/v1.6.0' into MX-14120-repopulate-tokens-supplies
bogdan-rosianu Apr 27, 2023
2d07755
MX-14120: fix linter issue
bogdan-rosianu Apr 27, 2023
84aef9f
Merge remote-tracking branch 'origin/MX-14120-repopulate-tokens-suppl…
bogdan-rosianu Apr 27, 2023
03318c0
- fixes after review
iulianpascalau Apr 27, 2023
ada98d4
extra tests and fixes
sstanculeanu Apr 28, 2023
4e14bdf
fix linter
sstanculeanu Apr 28, 2023
7f573ae
Merge branch 'rc/v1.6.0' into more_factory_tests_p5
sstanculeanu Apr 28, 2023
26cd750
MX-14120: fixes
bogdan-rosianu Apr 28, 2023
4d6a2cf
Merge branch 'rc/v1.6.0' into more_factory_tests_p5
sstanculeanu Apr 28, 2023
959a913
more processing tests fixes
sstanculeanu Apr 28, 2023
4717ac3
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau May 2, 2023
231e7f9
Merge branch 'rc/v1.6.0' into MX-14120-repopulate-tokens-supplies
bogdan-rosianu May 2, 2023
a66b340
MX-14120: adapt tests
bogdan-rosianu May 2, 2023
2f769c1
Merge remote-tracking branch 'origin/MX-14120-repopulate-tokens-suppl…
bogdan-rosianu May 2, 2023
2f0e0ba
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert May 3, 2023
0831292
increased code coverage on dataRetriever package
sstanculeanu May 3, 2023
5d57d8e
MX-14120: fixes after review
bogdan-rosianu May 3, 2023
947b124
Merge branch 'rc/v1.6.0' into dataretriever_tests
sstanculeanu May 4, 2023
64f4e3e
Merge branch 'rc/v1.6.0' into more_factory_tests_p5
sstanculeanu May 4, 2023
a3b1530
fix after review
sstanculeanu May 4, 2023
ad10f3c
notify and sync missing data trie node
BeniaminDrasovean May 4, 2023
4c49b06
Merge pull request #5188 from multiversx/accounts-db-syncer-refactor
BeniaminDrasovean May 4, 2023
891ac8c
Merge branch 'feat/sync-missing-trie-nodes' into sync-missing-data-tr…
BeniaminDrasovean May 4, 2023
ce1eafd
bugfix + add custom rounds per epoch in local testnet
bogdan-rosianu May 4, 2023
0881d9e
add unit test for MissingDataTrieNodeFound method
BeniaminDrasovean May 4, 2023
455e0f2
fix race condition
BeniaminDrasovean May 4, 2023
4fd5d96
Merge branch 'rc/v1.6.0' into MX-14120-repopulate-tokens-supplies
bogdan-rosianu May 4, 2023
13d01bd
fix after review
bogdan-rosianu May 4, 2023
08a2a9b
Merge remote-tracking branch 'origin/MX-14120-repopulate-tokens-suppl…
bogdan-rosianu May 4, 2023
a5a3878
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau May 4, 2023
0d49956
fixes after review
sstanculeanu May 5, 2023
227bbf6
Merge branch 'rc/v1.6.0' into more_factory_tests_p5
sstanculeanu May 5, 2023
98fe8ce
adding lost proposal fee
sasurobert May 5, 2023
591300e
- regenerated governance.pb.go
iulianpascalau May 5, 2023
7aa5793
integrate new host
miiu96 May 5, 2023
d141a54
adding lost proposal fee
sasurobert May 5, 2023
a672ceb
- regenerated governance.pb.go
iulianpascalau May 5, 2023
841e308
add claim accumulated fees function
sasurobert May 5, 2023
f6bbe26
add claim accumulated fees function
sasurobert May 5, 2023
9c8fa9c
MX-13965: block processing cut-off first implementation
bogdan-rosianu May 5, 2023
0e2ebb4
fixes after review
bogdan-rosianu May 5, 2023
cc695a7
Merge branch 'rc/v1.6.0' into MX-14120-repopulate-tokens-supplies
bogdan-rosianu May 5, 2023
d588d34
MX-13965: fixes
bogdan-rosianu May 5, 2023
e540957
reset watchdog timeout on MissingDataTrieNodeFound() call
BeniaminDrasovean May 8, 2023
618f1f3
fixes after review
sasurobert May 8, 2023
3748c54
fixes and additions
bogdan-rosianu May 8, 2023
5651ee3
rename cutoff type to cutoff trigger
bogdan-rosianu May 8, 2023
a50871b
bugfix
bogdan-rosianu May 8, 2023
77689fa
Merge pull request #5173 from multiversx/more_factory_tests_p5
sstanculeanu May 8, 2023
58698a7
Merge branch 'rc/v1.6.0' into dataretriever_tests
sstanculeanu May 8, 2023
24984f1
Merge branch 'rc/v1.6.0' into governance-proposal-lose-fee
sasurobert May 9, 2023
c54692e
fixes after review
sasurobert May 9, 2023
a7601a2
fixes
bogdan-rosianu May 9, 2023
89f5c97
Merge branch 'rc/v1.6.0' into MX-13965-block-processing-cutoff
bogdan-rosianu May 9, 2023
4a8523e
fixes and additions
bogdan-rosianu May 9, 2023
8ace67f
fixes after review
sstanculeanu May 9, 2023
b778829
added some trie package tests
sstanculeanu May 9, 2023
0b10886
Merge branch 'rc/v1.6.0' into trie_tests
sstanculeanu May 9, 2023
898a8c0
added more tests
sstanculeanu May 10, 2023
606b6a0
new address
sasurobert May 10, 2023
aead785
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau May 10, 2023
42f28c7
move host driver
miiu96 May 10, 2023
d42c502
latest version of communication go
miiu96 May 10, 2023
386a99e
fixes after review
bogdan-rosianu May 10, 2023
246b3f8
fix processing tests
bogdan-rosianu May 10, 2023
908ff49
update mx-chain-core and communication go
miiu96 May 10, 2023
48fa297
fix
miiu96 May 11, 2023
c4a3312
fixes after review
bogdan-rosianu May 11, 2023
72ffd89
change comm go
miiu96 May 11, 2023
1c66c1e
fix after review
BeniaminDrasovean May 11, 2023
8271e8f
fixes after review
bogdan-rosianu May 11, 2023
b50438f
fix test formatting
bogdan-rosianu May 11, 2023
6ccd573
fix formatting try 2
bogdan-rosianu May 11, 2023
4d5cc99
change comm go
miiu96 May 11, 2023
0d004e5
added facade tests
sstanculeanu May 11, 2023
dd4c89a
fixes after review
sstanculeanu May 11, 2023
ed65313
fix after review
BeniaminDrasovean May 12, 2023
ae1775f
fixes
miiu96 May 12, 2023
8a053b2
fixes after review
sstanculeanu May 12, 2023
7afe9f3
Merge pull request #5217 from multiversx/sync-missing-data-trie-nodes
BeniaminDrasovean May 12, 2023
d592f3d
Merge remote-tracking branch 'origin/rc/v1.6.0' into merge-rc/v1.6.0-…
BeniaminDrasovean May 12, 2023
fa09e17
Merge pull request #5235 from multiversx/trie_tests
sstanculeanu May 12, 2023
cafae33
Merge branch 'rc/v1.6.0' into facade_tests
sstanculeanu May 12, 2023
0dcfa09
Merge branch 'rc/v1.6.0' into dataretriever_tests
sstanculeanu May 12, 2023
5ce0b74
fix after merge
BeniaminDrasovean May 12, 2023
1722e8a
Merge pull request #5241 from multiversx/merge-rc/v1.6.0-in-feat/sync…
BeniaminDrasovean May 12, 2023
fc3828f
fix
miiu96 May 15, 2023
ba3e5e3
MX-13962: consistent tokens values length checks
bogdan-rosianu May 15, 2023
d6034af
Merge pull request #5237 from multiversx/facade_tests
sstanculeanu May 16, 2023
14a7c6c
Merge branch 'rc/v1.6.0' into dataretriever_tests
sstanculeanu May 16, 2023
5c3e58f
revert a change
bogdan-rosianu May 16, 2023
ee6a55d
extend log
bogdan-rosianu May 16, 2023
b85c67e
integrate new go mod
sasurobert May 16, 2023
0148ab0
Merge branch 'rc/v1.6.0' into MX-14120-repopulate-tokens-supplies
bogdan-rosianu May 16, 2023
7538fbd
fix interface
bogdan-rosianu May 16, 2023
7e2d147
Merge remote-tracking branch 'origin/rc/v1.6.0' into merge-rc/1.6.0-i…
BeniaminDrasovean May 16, 2023
7029a48
fix test are merge
bogdan-rosianu May 16, 2023
f2cdeee
fix after merge
BeniaminDrasovean May 16, 2023
be5247f
Merge pull request #5243 from multiversx/merge-rc/1.6.0-in-feat/sync-…
BeniaminDrasovean May 16, 2023
70645bf
Merge branch 'rc/v1.6.0' into integrate-dns-v2
gabi-vuls May 16, 2023
81d49ac
fix flag initialization
bogdan-rosianu May 16, 2023
360ed29
Merge pull request #5204 from multiversx/MX-14120-repopulate-tokens-s…
bogdan-rosianu May 16, 2023
aa2d155
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau May 17, 2023
29973e7
integrate new go mod
sasurobert May 17, 2023
b540bf2
Merge branch 'rc/v1.6.0' into integrate-dns-v2
sasurobert May 17, 2023
6a56c48
fix after review
sasurobert May 17, 2023
2ecd4b6
Merge remote-tracking branch 'origin/integrate-dns-v2' into integrate…
sasurobert May 17, 2023
20400d4
- fixes after merge
iulianpascalau May 17, 2023
6b0650a
fix tests
sasurobert May 17, 2023
614ac64
proper core release
bogdan-rosianu May 17, 2023
0f483a6
fix enable epochs formatting
bogdan-rosianu May 17, 2023
850eeba
fix enable epochs formatting - take 2
bogdan-rosianu May 17, 2023
c13c3ab
Merge pull request #5045 from multiversx/integrate-dns-v2
sasurobert May 17, 2023
9afcdfe
Merge branch 'rc/v1.6.0' into governance-proposal-lose-fee
sasurobert May 17, 2023
34050b7
Merge branch 'rc/v1.6.0' into proper-core-release-rc-v-1-6
bogdan-rosianu May 17, 2023
0ee6c04
Merge pull request #5223 from multiversx/governance-proposal-lose-fee
sasurobert May 17, 2023
89f4c8a
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
miiu96 May 17, 2023
ebf3740
Merge branch 'rc/v1.6.0' into proper-core-release-rc-v-1-6
bogdan-rosianu May 17, 2023
9a551a5
Merge pull request #5244 from multiversx/proper-core-release-rc-v-1-6
bogdan-rosianu May 17, 2023
5630cf7
Merge branch 'rc/v1.6.0' into tx-simulator-construction-refactor
iulianpascalau May 17, 2023
2406623
Merge pull request #5201 from multiversx/tx-simulator-construction-re…
iulianpascalau May 17, 2023
3e1988b
Merge branch 'rc/v1.6.0' into merge-rc-1-6-into-outport3
mariusmihaic May 17, 2023
fad08d2
FIX: After merge
mariusmihaic May 17, 2023
0b2e12f
FIX: After merge 2
mariusmihaic May 17, 2023
6a6f938
Merge remote-tracking branch 'origin/rc/v1.6.0' into merge-rc/v1.6.0-…
BeniaminDrasovean May 18, 2023
b84e042
fix after merge and update go mod
BeniaminDrasovean May 18, 2023
e183734
Merge pull request #5251 from multiversx/merge-rc/v1.6.0-in-feat/sync…
BeniaminDrasovean May 18, 2023
a58411d
fix comment
miiu96 May 18, 2023
a446e70
Merge branch 'rc/v1.6.0' into MX-13962-consistent-tokens-values-lengt…
bogdan-rosianu May 18, 2023
62ab595
fixes after merge
bogdan-rosianu May 18, 2023
20bf440
Merge pull request #5170 from multiversx/integrate-new-ws-client-server
miiu96 May 18, 2023
3b8b0a7
move config values
bogdan-rosianu May 18, 2023
57f5f3c
FIX: Indexer
mariusmihaic May 18, 2023
38f8309
Merge branch 'feat/outport-refactor' into merge-rc-1-6-into-outport3
mariusmihaic May 18, 2023
b70a400
FIX: Unit test
mariusmihaic May 18, 2023
f4460b5
fixes after merge
miiu96 May 18, 2023
c5e1070
Merge pull request #5249 from multiversx/merge-rc-1-6-into-outport3
mariusmihaic May 18, 2023
c834e29
Merge branch 'rc/v1.6.0' into MX-13965-block-processing-cutoff
bogdan-rosianu May 18, 2023
8fc8f4f
fix after merge
bogdan-rosianu May 18, 2023
9b4dc71
latest indexer version
miiu96 May 18, 2023
e9e0b6c
fix after merge 2
bogdan-rosianu May 18, 2023
d6315b7
update toml config
bogdan-rosianu May 19, 2023
83c48f5
proper tags
miiu96 May 19, 2023
5aa0ab3
Merge pull request #5252 from multiversx/latest-indexer-version
miiu96 May 19, 2023
e921b57
Merge pull request #5142 from multiversx/feat/outport-refactor
miiu96 May 19, 2023
30ac222
Merge branch 'rc/v1.6.0' into MX-13965-block-processing-cutoff
bogdan-rosianu May 19, 2023
72ec673
Merge branch 'rc/v1.6.0' into MX-13962-consistent-tokens-values-lengt…
bogdan-rosianu May 19, 2023
7ec6cfe
remove duplicate inits of NewTrieStorageManagerArgs in trie package
BeniaminDrasovean May 22, 2023
1bae65d
Merge pull request #5229 from multiversx/MX-13965-block-processing-cu…
bogdan-rosianu May 22, 2023
1094c2d
remove duplicated NewTrieStorageManagerArgs inits
BeniaminDrasovean May 22, 2023
cb6d084
add identifier to trie storage manager
BeniaminDrasovean May 22, 2023
b992485
use identifier from tsm instead of id from storage
BeniaminDrasovean May 22, 2023
cdedfc2
- fixed the indexer creation
iulianpascalau May 22, 2023
fded02f
removed mx-chain-p2p-go dependency and used the p2p package from mx-c…
sstanculeanu May 23, 2023
6a693ce
Merge pull request #5265 from multiversx/fix-indexer-creation
bogdan-rosianu May 23, 2023
2fd5d53
Merge branch 'rc/v1.6.0' into integrate_communication-go_with_p2p
sstanculeanu May 23, 2023
075f73a
fix after review
BeniaminDrasovean May 23, 2023
4672b47
Merge pull request #5258 from multiversx/add-identifer-in-tsm
BeniaminDrasovean May 23, 2023
ed32aca
Merge remote-tracking branch 'origin/rc/v1.6.0' into merge-rc/v1.6.0-…
BeniaminDrasovean May 23, 2023
63d3d01
update go mod
BeniaminDrasovean May 23, 2023
fb3be8c
Merge branch 'feat/sync-missing-trie-nodes' into merge-rc/v1.6.0-in-f…
BeniaminDrasovean May 23, 2023
3c7d956
Merge pull request #5270 from multiversx/merge-rc/v1.6.0-in-feat/bala…
BeniaminDrasovean May 23, 2023
5e123e5
fix race condition in test
BeniaminDrasovean May 24, 2023
170bc43
Merge pull request #5271 from multiversx/fix-failing-test
BeniaminDrasovean May 24, 2023
9b2d400
proper release
BeniaminDrasovean May 24, 2023
ac275df
Merge pull request #5273 from multiversx/proper-releases-for-feat/syn…
BeniaminDrasovean May 24, 2023
d3ebeb7
Merge pull request #4616 from multiversx/feat/sync-missing-trie-nodes
BeniaminDrasovean May 24, 2023
80d101c
update vm common ref
bogdan-rosianu May 24, 2023
9f506e3
Merge branch 'rc/v1.6.0' into MX-13962-consistent-tokens-values-lengt…
bogdan-rosianu May 24, 2023
9fabb12
go mod tidy
bogdan-rosianu May 24, 2023
bc9a598
update vm versions in go mod
BeniaminDrasovean May 24, 2023
7c5c785
Merge branch 'rc/v1.6.0' of https://github.com/multiversx/mx-chain-go…
sstanculeanu May 25, 2023
2b78e16
Merge branch 'rc/v1.6.0' into relayed-v2-multi-transfer-semi-int-test
bogdan-rosianu May 25, 2023
261a975
updated mx-chain-communication-go
sstanculeanu May 25, 2023
d80dcd2
Merge pull request #5276 from multiversx/update-go-mod
BeniaminDrasovean May 25, 2023
b0661dd
Merge branch 'rc/v1.6.0' into integrate_communication-go_with_p2p
sstanculeanu May 25, 2023
5c2dcb3
Merge branch 'rc/v1.6.0' into relayed-v2-multi-transfer-semi-int-test
bogdan-rosianu May 25, 2023
818aa20
Merge pull request #5267 from multiversx/integrate_communication-go_w…
sstanculeanu May 25, 2023
49af375
Merge branch 'rc/v1.6.0' into MX-13962-consistent-tokens-values-lengt…
bogdan-rosianu May 25, 2023
aa3ec08
proper tag
bogdan-rosianu May 25, 2023
f5ad863
Merge pull request #5245 from multiversx/MX-13962-consistent-tokens-v…
bogdan-rosianu May 25, 2023
26ace54
Merge branch 'rc/v1.6.0' into relayed-v2-multi-transfer-semi-int-test
bogdan-rosianu May 25, 2023
b7dd36b
Merge pull request #5177 from multiversx/relayed-v2-multi-transfer-se…
bogdan-rosianu May 25, 2023
47b0d25
fix encoding
miiu96 May 25, 2023
169c70b
Merge branch 'rc/v1.6.0' into fix-transactions-fee-processor
miiu96 May 25, 2023
84e1501
latest version of the indexer
miiu96 May 25, 2023
5f5fece
fixes after review
miiu96 May 25, 2023
c00f667
Merge branch 'rc/v1.6.0' of https://github.com/multiversx/mx-chain-go…
sstanculeanu May 25, 2023
0a981e6
fix after merge
sstanculeanu May 25, 2023
4c49a65
Merge pull request #5213 from multiversx/dataretriever_tests
sstanculeanu May 26, 2023
8dd0a90
Merge branch 'rc/v1.6.0' into fix-transactions-fee-processor
miiu96 May 26, 2023
97b43f0
proper tag
miiu96 May 26, 2023
488ded7
Merge pull request #5283 from multiversx/fix-transactions-fee-processor
miiu96 May 26, 2023
33cf83d
Merge branch 'rc/v1.6.0' into merge-rc-1.6.0-trie-sync-optimizations
ssd04 May 29, 2023
1798719
fixes after merge
ssd04 May 29, 2023
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: 2 additions & 2 deletions api/groups/blockGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/gin-gonic/gin"
"github.com/multiversx/mx-chain-core-go/core/check"
"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
"github.com/multiversx/mx-chain-core-go/data/api"
"github.com/multiversx/mx-chain-core-go/data/outport"
"github.com/multiversx/mx-chain-go/api/errors"
"github.com/multiversx/mx-chain-go/api/shared"
"github.com/multiversx/mx-chain-go/api/shared/logging"
Expand All @@ -33,7 +33,7 @@ type blockFacadeHandler interface {
GetBlockByHash(hash string, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByNonce(nonce uint64, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByRound(round uint64, options api.BlockQueryOptions) (*api.Block, error)
GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*outport.AlteredAccount, error)
GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error)
IsInterfaceNil() bool
}

Expand Down
16 changes: 8 additions & 8 deletions api/groups/blockGroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"testing"

"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
"github.com/multiversx/mx-chain-core-go/data/api"
"github.com/multiversx/mx-chain-core-go/data/outport"
apiErrors "github.com/multiversx/mx-chain-go/api/errors"
"github.com/multiversx/mx-chain-go/api/groups"
"github.com/multiversx/mx-chain-go/api/mock"
Expand Down Expand Up @@ -39,7 +39,7 @@ func TestNewBlockGroup(t *testing.T) {

type alteredAccountsForBlockResponse struct {
Data struct {
Accounts []*outport.AlteredAccount `json:"accounts"`
Accounts []*alteredAccount.AlteredAccount `json:"accounts"`
} `json:"data"`
Error string `json:"error"`
Code string `json:"code"`
Expand Down Expand Up @@ -251,7 +251,7 @@ func TestBlockGroup_getAlteredAccountsByNonce(t *testing.T) {
t.Parallel()

facade := &mock.FacadeStub{
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*outport.AlteredAccount, error) {
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) {
return nil, expectedErr
},
}
Expand All @@ -275,15 +275,15 @@ func TestBlockGroup_getAlteredAccountsByNonce(t *testing.T) {
Nonce: providedNonce,
},
}
expectedResponse := []*outport.AlteredAccount{
expectedResponse := []*alteredAccount.AlteredAccount{
{
Address: "alice",
Balance: "100000",
},
}

facade := &mock.FacadeStub{
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*outport.AlteredAccount, error) {
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) {
require.Equal(t, expectedOptions, options)
return expectedResponse, nil
},
Expand Down Expand Up @@ -320,7 +320,7 @@ func TestBlockGroup_getAlteredAccountsByHash(t *testing.T) {

providedHash := hex.EncodeToString([]byte("hash"))
facade := &mock.FacadeStub{
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*outport.AlteredAccount, error) {
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) {
return nil, expectedErr
},
}
Expand All @@ -344,15 +344,15 @@ func TestBlockGroup_getAlteredAccountsByHash(t *testing.T) {
Hash: []byte("hash"),
},
}
expectedResponse := []*outport.AlteredAccount{
expectedResponse := []*alteredAccount.AlteredAccount{
{
Address: "alice",
Balance: "100000",
},
}

facade := &mock.FacadeStub{
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*outport.AlteredAccount, error) {
GetAlteredAccountsForBlockCalled: func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) {
require.Equal(t, providedHash, hex.EncodeToString(options.Hash))
require.Equal(t, expectedOptions, options)
return expectedResponse, nil
Expand Down
2 changes: 1 addition & 1 deletion api/middleware/responseLogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (rlm *responseLoggerMiddleware) logRequestAndResponse(c *gin.Context, durat
reqBody := c.Request.Body
reqBodyBytes, err := ioutil.ReadAll(reqBody)
if err != nil {
log.Error(err.Error())
log.Debug(err.Error())
return
}

Expand Down
6 changes: 3 additions & 3 deletions api/mock/facadeStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"math/big"

"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
"github.com/multiversx/mx-chain-core-go/data/api"
"github.com/multiversx/mx-chain-core-go/data/esdt"
outportcore "github.com/multiversx/mx-chain-core-go/data/outport"
"github.com/multiversx/mx-chain-core-go/data/transaction"
"github.com/multiversx/mx-chain-core-go/data/vm"
"github.com/multiversx/mx-chain-go/common"
Expand Down Expand Up @@ -56,7 +56,7 @@ type FacadeStub struct {
GetNFTTokenIDsRegisteredByAddressCalled func(address string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error)
GetBlockByHashCalled func(hash string, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByNonceCalled func(nonce uint64, options api.BlockQueryOptions) (*api.Block, error)
GetAlteredAccountsForBlockCalled func(options api.GetAlteredAccountsForBlockOptions) ([]*outportcore.AlteredAccount, error)
GetAlteredAccountsForBlockCalled func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error)
GetBlockByRoundCalled func(round uint64, options api.BlockQueryOptions) (*api.Block, error)
GetInternalShardBlockByNonceCalled func(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
GetInternalShardBlockByHashCalled func(format common.ApiOutputFormat, hash string) (interface{}, error)
Expand Down Expand Up @@ -411,7 +411,7 @@ func (f *FacadeStub) GetBlockByRound(round uint64, options api.BlockQueryOptions
}

// GetAlteredAccountsForBlock -
func (f *FacadeStub) GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*outportcore.AlteredAccount, error) {
func (f *FacadeStub) GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) {
if f.GetAlteredAccountsForBlockCalled != nil {
return f.GetAlteredAccountsForBlockCalled(options)
}
Expand Down
4 changes: 2 additions & 2 deletions api/shared/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/gin-gonic/gin"
"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
"github.com/multiversx/mx-chain-core-go/data/api"
"github.com/multiversx/mx-chain-core-go/data/esdt"
outportcore "github.com/multiversx/mx-chain-core-go/data/outport"
"github.com/multiversx/mx-chain-core-go/data/transaction"
"github.com/multiversx/mx-chain-core-go/data/vm"
"github.com/multiversx/mx-chain-go/common"
Expand Down Expand Up @@ -77,7 +77,7 @@ type FacadeHandler interface {
GetBlockByHash(hash string, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByNonce(nonce uint64, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByRound(round uint64, options api.BlockQueryOptions) (*api.Block, error)
GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*outportcore.AlteredAccount, error)
GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error)
GetInternalShardBlockByNonce(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
GetInternalShardBlockByHash(format common.ApiOutputFormat, hash string) (interface{}, error)
GetInternalShardBlockByRound(format common.ApiOutputFormat, round uint64) (interface{}, error)
Expand Down
3 changes: 0 additions & 3 deletions cmd/keygenerator/converter/pidPubkeyConverter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import (
"github.com/multiversx/mx-chain-crypto-go/signing/secp256k1"
"github.com/multiversx/mx-chain-go/p2p"
"github.com/multiversx/mx-chain-go/p2p/factory"
logger "github.com/multiversx/mx-chain-logger-go"
)

var log = logger.GetOrCreate("cmd/keygenerator/converter")

type pidPubkeyConverter struct {
keyGen crypto.KeyGenerator
p2PKeyConverter p2p.P2PKeyConverter
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@
"erd1najnxxweyw6plhg8efql330nttrj6l5cf87wqsuym85s9ha0hmdqnqgenp", #shard 2
]
MaxNumAddressesInTransferRole = 100
DNSV2Addresses =[
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3",
]

[Hardfork]
EnableTrigger = true
Expand Down
16 changes: 11 additions & 5 deletions cmd/node/config/enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,21 @@
# MultiClaimOnDelegationEnableEpoch represents the epoch when the multi claim on delegation is enabled
MultiClaimOnDelegationEnableEpoch = 3

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
{ EnableEpoch = 0, Type = "no-KOSK"},
{ EnableEpoch = 1, Type = "KOSK"}
]
# ChangeUsernameEnableEpoch represents the epoch when changing username is enabled
ChangeUsernameEnableEpoch = 2

# SetGuardianEnableEpoch represents the epoch when the guard account feature is enabled in the protocol
SetGuardianEnableEpoch = 2

# ConsistentTokensValuesLengthCheckEnableEpoch represents the epoch when the consistent tokens values length check is enabled
ConsistentTokensValuesLengthCheckEnableEpoch = 2

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
{ EnableEpoch = 0, Type = "no-KOSK" },
{ EnableEpoch = 1, Type = "KOSK" }
]

# MaxNodesChangeEnableEpoch holds configuration for changing the maximum number of nodes and the enabling epoch
MaxNodesChangeEnableEpoch = [
{ EpochEnable = 0, MaxNumNodes = 36, NodesToShufflePerShard = 4 },
Expand Down
17 changes: 15 additions & 2 deletions cmd/node/config/external.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,23 @@
# RequestTimeoutSec defines the timeout in seconds for the http client
RequestTimeoutSec = 60

[WebSocketConnector]
# MarshallerType is used to define the marshaller type to be used for inner
# marshalled structures in block events data
MarshallerType = "json"

[HostDriverConfig]
# This flag shall only be used for observer nodes
Enabled = false
URL = "localhost:22111"
# This flag will start the WebSocket connector as server or client (can be "client" or "server")
Mode = "client"
# URL for the WebSocket client/server connection
# This value represents the IP address and port number that the WebSocket client or server will use to establish a connection.
URL = "127.0.0.1:22111"
# After a message will be sent it will wait for an ack message if this flag is enabled
WithAcknowledge = true
# Currently, only "json" is supported. In the future, "gogo protobuf" could also be supported
MarshallerType = "json"
# The number of seconds when the client will try again to send the data
RetryDurationInSec = 5
# Sets if, in case of data payload processing error, we should block or not the advancement to the next processing event. Set this to true if you wish the node to stop processing blocks if the client/server encounters errors while processing requests.
BlockingAckOnError = false
22 changes: 20 additions & 2 deletions cmd/node/config/prefs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# In multikey mode, all bls keys not mentioned in NamedIdentity section will use this one as default
NodeDisplayName = ""

# Identity represents the keybase's identity when the node does not run in multikey mode
# Identity represents the keybase/GitHub identity when the node does not run in multikey mode
# In multikey mode, all bls keys not mentioned in NamedIdentity section will use this one as default
Identity = ""

Expand Down Expand Up @@ -50,10 +50,28 @@
# { File = "external.toml", Path = "ElasticSearchConnector.Enabled", Value = "true" }
#]

# BlockProcessingCutoff can be used to stop processing blocks at a certain round, nonce or epoch.
# This can be useful for snapshotting different stuff and also for debugging purposes.
[BlockProcessingCutoff]
# If set to true, the node will stop at the given coordinate
Enabled = false

# Mode represents the cutoff mode. possible values: "pause" or "process-error".
# "pause" mode will halt the processing at the block with the given coordinates. Useful for snapshots/analytics
# "process-error" will return an error when processing the block with the given coordinates. Useful for debugging
Mode = "pause"

# CutoffTrigger represents the kind of coordinate to look after when cutting off the processing.
# Possible values: "round", "nonce", or "epoch"
CutoffTrigger = "round"

# The minimum value of the cutoff. For example, if CutoffType is set to "round", and Value to 20, then the node will stop processing at round 20+
Value = 0

# NamedIdentity represents an identity that runs nodes on the multikey
# There can be multiple identities set on the same node, each one of them having different bls keys, just by duplicating the NamedIdentity
[[NamedIdentity]]
# Identity represents the keybase identity for the current NamedIdentity
# Identity represents the keybase/GitHub identity for the current NamedIdentity
Identity = ""
# NodeName represents the name that will be given to the names of the current identity
NodeName = ""
Expand Down
3 changes: 2 additions & 1 deletion cmd/node/config/systemSmartContractsConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
OwnerAddress = "erd1fpkcgel4gcmh8zqqdt043yfcn5tyx8373kg6q2qmkxzu4dqamc0swts65c"

[GovernanceSystemSCConfig]
ChangeConfigAddress = "erd1vxy22x0fj4zv6hktmydg8vpfh6euv02cz4yg0aaws6rrad5a5awqgqky80" #should use a multisign contract instead of a wallet address
OwnerAddress = "erd1vxy22x0fj4zv6hktmydg8vpfh6euv02cz4yg0aaws6rrad5a5awqgqky80" #should use a multisign contract instead of a wallet address
[GovernanceSystemSCConfig.V1]
NumNodes = 500
ProposalCost = "5000000000000000000" #5 eGLD
Expand All @@ -26,6 +26,7 @@
MinVetoThreshold = 50
[GovernanceSystemSCConfig.Active]
ProposalCost = "1000000000000000000000" #1000 eGLD
LostProposalFee = "10000000000000000000" #10 eGLD
MinQuorum = 0.5 #fraction of value 0.5 - 50%
MinPassThreshold = 0.5 #fraction of value 0.5 - 50%
MinVetoThreshold = 0.33 #fraction of value 0.33 - 33%
Expand Down
13 changes: 13 additions & 0 deletions cmd/node/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ var (
Usage: "String flag for specifying the desired `operation mode`(s) of the node, resulting in altering some configuration values accordingly. Possible values are: snapshotless-observer, full-archive, db-lookup-extension, historical-balances or `\"\"` (empty). Multiple values can be separated via ,",
Value: "",
}

// repopulateTokensSupplies defines a flag that, if set, will repopulate the tokens supplies database by iterating over the trie
repopulateTokensSupplies = cli.BoolFlag{
Name: "repopulate-tokens-supplies",
Usage: "Boolean flag for repopulating the tokens supplies database. It will delete the current data, iterate over the entire trie and add he new obtained supplies",
}
)

func getFlags() []cli.Flag {
Expand Down Expand Up @@ -443,6 +449,7 @@ func getFlags() []cli.Flag {
dbDirectory,
logsDirectory,
operationMode,
repopulateTokensSupplies,
}
}

Expand Down Expand Up @@ -472,6 +479,7 @@ func getFlagsConfig(ctx *cli.Context, log logger.Logger) *config.ContextFlagsCon
flagsConfig.NoKeyProvided = ctx.GlobalBool(noKey.Name)
flagsConfig.SnapshotsEnabled = ctx.GlobalBool(snapshotsEnabled.Name)
flagsConfig.OperationMode = ctx.GlobalString(operationMode.Name)
flagsConfig.RepopulateTokensSupplies = ctx.GlobalBool(repopulateTokensSupplies.Name)

return flagsConfig
}
Expand Down Expand Up @@ -578,6 +586,11 @@ func applyCompatibleConfigs(log logger.Logger, configs *config.Configs) error {
return fmt.Errorf("import-db-no-sig-check can only be used with the import-db flag")
}

if configs.PreferencesConfig.BlockProcessingCutoff.Enabled {
log.Debug("node is started by using the block processing cut-off - will disable the watchdog")
configs.FlagsConfig.DisableConsensusWatchdog = true
}

operationModes, err := operationmodes.ParseOperationModes(configs.FlagsConfig.OperationMode)
if err != nil {
return err
Expand Down
29 changes: 22 additions & 7 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,6 @@ const InvalidMessageBlacklistDuration = time.Second * 3600
// rating to a minimum threshold due to improper messages
const PublicKeyBlacklistDuration = time.Second * 7200

// WrongP2PMessageBlacklistDuration represents the time to keep a peer id in the blacklist if it sends a message that
// do not follow this protocol
const WrongP2PMessageBlacklistDuration = time.Second * 7200

// InvalidSigningBlacklistDuration defines the time to keep a peer id in blacklist if it signs a message with invalid signature
const InvalidSigningBlacklistDuration = time.Second * 7200

Expand Down Expand Up @@ -774,9 +770,6 @@ const HardforkResolversIdentifier = "hardfork resolver"
// EpochStartInterceptorsIdentifier represents the identifier that is used in the start-in-epoch process
const EpochStartInterceptorsIdentifier = "epoch start interceptor"

// GetNodeFromDBErrorString represents the string which is returned when a getting node from DB returns an error
const GetNodeFromDBErrorString = "getNodeFromDB error"

// TimeoutGettingTrieNodes defines the timeout in trie sync operation if no node is received
const TimeoutGettingTrieNodes = 2 * time.Minute // to consider syncing a very large trie node of 64MB at ~1MB/s

Expand Down Expand Up @@ -831,6 +824,28 @@ const (
ApiOutputFormatProto ApiOutputFormat = 1
)

// BlockProcessingCutoffMode represents the type to be used to identify the mode of the block processing cutoff
type BlockProcessingCutoffMode string

const (
// BlockProcessingCutoffModePause represents the mode where the node will pause the processing at the given coordinates
BlockProcessingCutoffModePause = "pause"
// BlockProcessingCutoffModeProcessError represents the mode where the node will reprocess with error the block at the given coordinates
BlockProcessingCutoffModeProcessError = "process-error"
)

// BlockProcessingCutoffTrigger represents the trigger of the cutoff potentially used in block processing
type BlockProcessingCutoffTrigger string

const (
// BlockProcessingCutoffByNonce represents the cutoff by nonce
BlockProcessingCutoffByNonce BlockProcessingCutoffTrigger = "nonce"
// BlockProcessingCutoffByRound represents the cutoff by round
BlockProcessingCutoffByRound BlockProcessingCutoffTrigger = "round"
// BlockProcessingCutoffByEpoch represents the cutoff by epoch
BlockProcessingCutoffByEpoch BlockProcessingCutoffTrigger = "epoch"
)

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

Expand Down
6 changes: 4 additions & 2 deletions common/dtos.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package common

import "github.com/multiversx/mx-chain-core-go/data/outport"
import (
"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
)

// GetProofResponse is a struct that stores the response of a GetProof API request
type GetProofResponse struct {
Expand Down Expand Up @@ -71,5 +73,5 @@ type EpochStartDataAPI struct {

// AlteredAccountsForBlockAPIResponse holds the altered accounts for a certain block
type AlteredAccountsForBlockAPIResponse struct {
Accounts []*outport.AlteredAccount `json:"accounts"`
Accounts []*alteredAccount.AlteredAccount `json:"accounts"`
}
Loading