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 v1.4.0 feat optimise consensus sigcheck #4501

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
608 commits
Select commit Hold shift + click to select a range
19af831
rollback lint issue
bogdan-rosianu Aug 11, 2022
b957be2
* Merged development into feat/refactor-peers-mbs
SebastianMarian Aug 11, 2022
151094c
Merge pull request #4342 from ElrondNetwork/EN-12707-improve-sc-gener…
bogdan-rosianu Aug 11, 2022
dc313c8
Merge branch 'development' into refer-elrond-go-storage
bogdan-rosianu Aug 11, 2022
16c0ee9
fixes after merge + go fmt
bogdan-rosianu Aug 11, 2022
58bee12
reference new elrond go storage
bogdan-rosianu Aug 11, 2022
4cb3756
fix starting from sync and destroy without closing
BeniaminDrasovean Aug 11, 2022
9a1ee6d
Merge remote-tracking branch 'origin/rc/2022-july' into open-more-dbs…
BeniaminDrasovean Aug 11, 2022
243818c
fixes after review
bogdan-rosianu Aug 11, 2022
7544338
Merge branch 'rc/2022-july' into sync-missing-snapshot-nodes
BeniaminDrasovean Aug 11, 2022
3ef2e70
add error logs if there is a trie node missing during snapshot
BeniaminDrasovean Aug 11, 2022
6328965
Merge pull request #4363 from ElrondNetwork/merge-dev-into-feat-refac…
SebastianMarian Aug 11, 2022
f6a9328
* Reverted to 4 shards and requests with hash array
SebastianMarian Aug 11, 2022
081ed52
Merge branch 'feat/refactor-peers-mbs' into refactor-peers-mbs-on-met…
SebastianMarian Aug 11, 2022
fb16b70
Merge branch 'rc/2022-july' into sync-missing-snapshot-nodes
BeniaminDrasovean Aug 11, 2022
b098639
Merge branch 'rc/2022-july' into open-more-dbs-if-necessary
BeniaminDrasovean Aug 11, 2022
69a5ac9
added stubGenerator.sh script
sstanculeanu Aug 11, 2022
927d7bf
added more supported return types
sstanculeanu Aug 11, 2022
5c2a752
change label name for exclude case
schimih Aug 12, 2022
12ecbb2
fix after review
sstanculeanu Aug 12, 2022
1fcc29e
Merge branch 'rc/2022-july' into sync-missing-snapshot-nodes
BeniaminDrasovean Aug 12, 2022
75f347e
Merge branch 'rc/2022-july' into open-more-dbs-if-necessary
BeniaminDrasovean Aug 12, 2022
8e402fa
Merge pull request #4369 from ElrondNetwork/update-release-yml
schimih Aug 12, 2022
018294d
refer new commit
bogdan-rosianu Aug 12, 2022
6d9aa55
use tag for elrond go storage
bogdan-rosianu Aug 12, 2022
cca896e
fix go sum
bogdan-rosianu Aug 12, 2022
1446bbc
added support for function pointer parameters
sstanculeanu Aug 16, 2022
c347578
fixed search for func( to use the first find
sstanculeanu Aug 16, 2022
66bef2a
* Integrated EnableEpochHandler into feat/refactor-peers-mbs
SebastianMarian Aug 16, 2022
d6fc99c
* Fixed unit/integration tests
SebastianMarian Aug 16, 2022
979a046
* Added unit tests for nil checks
SebastianMarian Aug 16, 2022
2b5164a
remove duplicated code and extract a new component
BeniaminDrasovean Aug 17, 2022
07dff5e
* Fixed RefactorPeersMiniBlocks activation flag
SebastianMarian Aug 17, 2022
fe1cd4b
* Fixed integration tests
SebastianMarian Aug 17, 2022
b523359
Merge branch 'refactor-peers-mbs-on-meta-proposer-side' into unit-tes…
SebastianMarian Aug 17, 2022
98f3b51
* Fixed restriction given by GetValidatorWithPublicKey in intercepted…
SebastianMarian Aug 18, 2022
8e24b90
* Fixed restriction given by GetValidatorWithPublicKey in intercepted…
SebastianMarian Aug 18, 2022
810a9da
* Removed nodesCoordinator from interceptedValidatorInfo and intercep…
SebastianMarian Aug 18, 2022
f59dbc3
* Removed nodesCoordinator from interceptedValidatorInfo and intercep…
SebastianMarian Aug 18, 2022
24db64d
* Refactored/cleanup code
SebastianMarian Aug 19, 2022
f3efbe6
Merge branch 'refactor-peers-mbs-on-meta-proposer-side' into unit-tes…
SebastianMarian Aug 19, 2022
d34698a
Merge branch 'development' into feat/refactor-peers-mbs
SebastianMarian Aug 19, 2022
3e04062
Merge pull request #4380 from ElrondNetwork/merge-dev-into-feat-refac…
SebastianMarian Aug 19, 2022
7b4f9b3
Merge branch 'feat/refactor-peers-mbs' into refactor-peers-mbs-on-met…
SebastianMarian Aug 19, 2022
899de04
Merge branch 'feat/refactor-peers-mbs' into unit-tests-for-feat-refac…
SebastianMarian Aug 19, 2022
7a6f74e
* Fixed sorting of imports
SebastianMarian Aug 19, 2022
9055ada
Merge branch 'refactor-peers-mbs-on-meta-proposer-side' into unit-tes…
SebastianMarian Aug 19, 2022
9a5b73a
* Added unit tests for validatorInfoCreator in validator.go
SebastianMarian Aug 19, 2022
a4633f5
unexport persistersTracker constructor and methods
BeniaminDrasovean Aug 22, 2022
c66d445
Merge branch 'rc/2022-july' into open-more-dbs-if-necessary
BeniaminDrasovean Aug 22, 2022
2bd27c4
fix after review
BeniaminDrasovean Aug 22, 2022
9dfb5f8
Merge branch 'rc/2022-july' into sync-missing-snapshot-nodes
BeniaminDrasovean Aug 22, 2022
e07eebe
fix after merge
BeniaminDrasovean Aug 22, 2022
6621e65
fix after review
BeniaminDrasovean Aug 22, 2022
1ec62e7
* Added unit tests for peerMiniBlocksSyncer in shardChain package
SebastianMarian Aug 22, 2022
c30baae
Merge branch 'rc/2022-july' into open-more-dbs-if-necessary
BeniaminDrasovean Aug 23, 2022
7de4aaf
Add code-hash endpoint to address group
lcswillems Aug 24, 2022
73a3726
* Added unit tests for metaProcessor in metaBlock.go
SebastianMarian Aug 24, 2022
e3dad2c
Move encoding in addressGroup
lcswillems Aug 24, 2022
73b812f
Fix two failing tests
lcswillems Aug 24, 2022
d0b9b98
Merge branch 'rc/2022-july' into open-more-dbs-if-necessary
BeniaminDrasovean Aug 25, 2022
da5deb1
Merge branch 'rc/2022-july' into sync-missing-snapshot-nodes
BeniaminDrasovean Aug 25, 2022
c8f5a7d
Merge branch 'rc/2022-july' into update-dev-rc-july-2022.08.25
iulianpascalau Aug 25, 2022
835801f
- fixes after merge
iulianpascalau Aug 25, 2022
3dd2132
Merge pull request #4349 from ElrondNetwork/refer-elrond-go-storage
bogdan-rosianu Aug 25, 2022
fccc51f
fix case in which on bootstrap the triePruningStorer opens dbs until …
BeniaminDrasovean Aug 25, 2022
f87fe4c
Remove useless encoding
lcswillems Aug 25, 2022
65ccced
Merge pull request #4396 from ElrondNetwork/update-dev-rc-july-2022.0…
gabi-vuls Aug 26, 2022
09bac7a
fix after review
BeniaminDrasovean Aug 26, 2022
296f7f9
add isSnapshotInProgress flag and remove duplicated code
BeniaminDrasovean Aug 26, 2022
7c6d380
* Fixed after reviews
SebastianMarian Aug 26, 2022
e973bfd
Merge branch 'rc/2022-july' into update-dev-rc-july-2022.08.29
iulianpascalau Aug 29, 2022
1fce7a8
- new compatible vm-common v1.3.16
iulianpascalau Aug 29, 2022
99dd450
Merge branch 'development' into development
bogdan-rosianu Aug 29, 2022
7afd536
Merge pull request #4391 from lcswillems/development
bogdan-rosianu Aug 29, 2022
39e6f1a
Merge branch 'rc/2022-july' into update-kosk-bls-multisigner-rc-july
ssd04 Aug 29, 2022
08bb77b
Merge branch 'rc/2022-july' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Aug 29, 2022
a57334e
* Fixed after self review
SebastianMarian Aug 29, 2022
2768eb7
fix merge conflicts
ssd04 Aug 29, 2022
d424b06
remove duplicate test file; fix factory api resolver unit test
ssd04 Aug 29, 2022
b7481d0
Merge branch 'refactor-peers-mbs-on-meta-proposer-side' into unit-tes…
SebastianMarian Aug 29, 2022
23d28bf
* Fixed after merge
SebastianMarian Aug 29, 2022
eb8a79d
Merge pull request #4035 from ElrondNetwork/refactor-peers-mbs-on-met…
SebastianMarian Aug 29, 2022
b5d0a28
Merge branch 'feat/refactor-peers-mbs' into unit-tests-for-feat-refac…
SebastianMarian Aug 29, 2022
b1c21ab
fix after review
BeniaminDrasovean Aug 29, 2022
749e202
Merge pull request #4405 from ElrondNetwork/update-kosk-bls-multisign…
ssd04 Aug 30, 2022
616e2c2
* Fixed after review
SebastianMarian Aug 30, 2022
db2fbff
* Refactored test methods name
SebastianMarian Aug 30, 2022
ae87e01
Merge pull request #4402 from ElrondNetwork/update-dev-rc-july-2022.0…
gabi-vuls Aug 30, 2022
d5cd600
Bump github.com/gin-contrib/pprof from 1.3.0 to 1.4.0
dependabot[bot] Aug 30, 2022
b31f222
* Added some nil checks in shardedDataStub.go
SebastianMarian Aug 30, 2022
89d6fbd
Merge pull request #4377 from ElrondNetwork/unit-tests-for-feat-refac…
SebastianMarian Aug 30, 2022
80f6fce
Merge branch 'rc/v1.4.0' into feat/refactor-peers-mbs
SebastianMarian Aug 30, 2022
60dc80c
Merge branch 'development' into external-codehash-endpoint
gabi-vuls Aug 30, 2022
afd0d66
Merge pull request #4403 from ElrondNetwork/external-codehash-endpoint
gabi-vuls Aug 30, 2022
908169d
Merge pull request #4411 from ElrondNetwork/merge-v1.4.0-into-feat-re…
SebastianMarian Aug 30, 2022
39e1d70
* Fixed linter issue
SebastianMarian Aug 30, 2022
ea57eb4
Merge pull request #4413 from ElrondNetwork/fix-linter-issue-in-feat-…
SebastianMarian Aug 30, 2022
b08e740
Merge branch 'rc/v1.4.0' into stub_generator
sstanculeanu Aug 31, 2022
dd4089e
Merge pull request #4024 from ElrondNetwork/feat/refactor-peers-mbs
bogdan-rosianu Aug 31, 2022
0fca8a1
Merge branch 'rc/v1.4.0' into stub_generator
sstanculeanu Aug 31, 2022
424fbee
Merge pull request #4368 from ElrondNetwork/stub_generator
sstanculeanu Aug 31, 2022
b6da3f1
Merge branch 'rc/2022-july' into feat/kosk-bls-multisigner
AdoAdoAdo Sep 1, 2022
b0ee408
Merge pull request #4430 from ElrondNetwork/merge-rc-july-feat-kosk
AdoAdoAdo Sep 2, 2022
97fd589
Merge branch 'rc/2022-july' into merge-rc-july-rc-v1.4.0-2022.09.02
iulianpascalau Sep 2, 2022
52a1ce5
- fixed timing in one unit test
iulianpascalau Sep 2, 2022
77cbb4b
- fixed more timings in integration tests
iulianpascalau Sep 2, 2022
c329054
Merge pull request #4433 from ElrondNetwork/merge-rc-july-rc-v1.4.0-2…
gabi-vuls Sep 2, 2022
984d9bf
Bump github.com/urfave/cli from 1.22.9 to 1.22.10
dependabot[bot] Sep 5, 2022
48b16f9
Merge branch 'development' into dev-to-rc-v1.4.0-2022.09.07
iulianpascalau Sep 7, 2022
57326eb
Merge remote-tracking branch 'origin/development' into open-more-dbs-…
BeniaminDrasovean Sep 7, 2022
d4b5983
fix after merge
BeniaminDrasovean Sep 7, 2022
c6101b4
Merge pull request #4443 from ElrondNetwork/dev-to-rc-v1.4.0-2022.09.07
iulianpascalau Sep 7, 2022
d1d7d2f
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
iulianpascalau Sep 7, 2022
675c3e3
Merge branch 'rc/v1.4.0' into open-more-dbs-if-necessary
BeniaminDrasovean Sep 7, 2022
e4efa09
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
iulianpascalau Sep 9, 2022
8f73599
Merge branch 'rc/v1.4.0' into process-debug-handler
iulianpascalau Sep 9, 2022
5b0ac6f
Merge branch 'rc/v1.4.0' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Sep 9, 2022
fc8abea
fix after review
BeniaminDrasovean Sep 9, 2022
9db5645
Merge branch 'rc/2022-july' into update-rc-v1.4.0-2022.09.09
iulianpascalau Sep 9, 2022
b287445
move external repo cache dependencies to storage adapter package
AdoAdoAdo Sep 9, 2022
2ae01ab
Merge pull request #4366 from ElrondNetwork/open-more-dbs-if-necessary
BeniaminDrasovean Sep 9, 2022
1ec174d
Merge branch 'rc/v1.4.0' into update-rc-v1.4.0-2022.09.09
iulianpascalau Sep 9, 2022
57c84e2
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
iulianpascalau Sep 9, 2022
7c60ea6
- integration fixes and changes in heartbeat v2 components
iulianpascalau Sep 9, 2022
09612ca
Merge branch 'rc/v1.4.0' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Sep 9, 2022
5057964
Merge remote-tracking branch 'origin/rc/v1.4.0' into sync-missing-sna…
BeniaminDrasovean Sep 9, 2022
f6f82ab
- race fixes
iulianpascalau Sep 9, 2022
b88b98e
- fixed test
iulianpascalau Sep 9, 2022
6d038ca
timecache dependencies update
AdoAdoAdo Sep 9, 2022
4226112
Merge pull request #4442 from ElrondNetwork/dependabot/go_modules/dev…
gabi-vuls Sep 9, 2022
78ae97a
Merge branch 'rc/v1.4.0' into update-rc-v1.4.0-2022.09.09
gabi-vuls Sep 9, 2022
b68f53d
Merge pull request #4447 from ElrondNetwork/update-rc-v1.4.0-2022.09.09
iulianpascalau Sep 9, 2022
0fac6b4
Merge remote-tracking branch 'origin/rc/2022-july' into rc/v1.4.0
sstanculeanu Sep 11, 2022
35d49b9
- added log prints whenever an outport driver gets stuck
iulianpascalau Sep 12, 2022
846ff81
- added new unit test
iulianpascalau Sep 12, 2022
9edf78e
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
iulianpascalau Sep 12, 2022
927071c
storage errors dependencies update
AdoAdoAdo Sep 12, 2022
6f509c1
fix after merge
BeniaminDrasovean Sep 12, 2022
f55263a
Merge remote-tracking branch 'origin/rc/v1.4.0' into sync-missing-sna…
BeniaminDrasovean Sep 12, 2022
b1a9140
Merge branch 'rc/v1.4.0' into process-debug-handler
iulianpascalau Sep 12, 2022
3040213
log txhash as well for too long sc calls
bogdan-rosianu Sep 12, 2022
ba9bcb2
fix after review: remove sanity checks
bogdan-rosianu Sep 12, 2022
ff936b2
Merge pull request #4451 from ElrondNetwork/merge_rc_july_into_rc_1.4…
gabi-vuls Sep 12, 2022
9b5a7cb
storage txcache dependencies update
AdoAdoAdo Sep 12, 2022
b180e4c
storage unit dependencies update
AdoAdoAdo Sep 12, 2022
b0c0349
storage memorydb dependencies update
AdoAdoAdo Sep 12, 2022
e50fe5e
save trie node to previous storer if missing
BeniaminDrasovean Sep 13, 2022
e60e6ca
Merge branch 'rc/v1.4.0' into snapshot-improvement
BeniaminDrasovean Sep 13, 2022
0ddd82b
Merge remote-tracking branch 'origin/rc/v1.4.0' into skip-snapshot-if…
BeniaminDrasovean Sep 13, 2022
8e84a1d
fix after merge
BeniaminDrasovean Sep 13, 2022
fd20734
Merge branch 'rc/v1.4.0' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Sep 13, 2022
55a1dfc
fix epoch underflow
BeniaminDrasovean Sep 13, 2022
d6d9bc8
Merge branch 'rc/v1.4.0' into outport-driver-stuck-prints
iulianpascalau Sep 13, 2022
dfbf79f
fix after review: log txhash in more places
bogdan-rosianu Sep 13, 2022
0e4f225
add log.Trace for missing hash Put
BeniaminDrasovean Sep 13, 2022
8c37efd
Merge branch 'rc/v1.4.0' into log-txhash-for-too-long-sc-calls
bogdan-rosianu Sep 13, 2022
7888a44
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
gabi-vuls Sep 13, 2022
9f0c489
- added message counter
iulianpascalau Sep 13, 2022
791ea86
- switched log level to warn
iulianpascalau Sep 13, 2022
b12139a
move pathmanager and directory handler back to elrond-go
AdoAdoAdo Sep 13, 2022
a12cffa
refactor immunitycache dependencies
AdoAdoAdo Sep 13, 2022
66e6f53
Merge branch 'rc/v1.4.0' into process-debug-handler
iulianpascalau Sep 14, 2022
fa98e7c
Merge pull request #4456 from ElrondNetwork/log-txhash-for-too-long-s…
gabi-vuls Sep 14, 2022
5b11a82
Merge branch 'rc/v1.4.0' into snapshot-improvement
gabi-vuls Sep 14, 2022
90bd65a
Merge pull request #4459 from ElrondNetwork/snapshot-improvement
BeniaminDrasovean Sep 14, 2022
dc680b2
Merge branch 'rc/v1.4.0' into process-debug-handler
iulianpascalau Sep 14, 2022
ed4d26e
Merge branch 'rc/v1.4.0' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Sep 14, 2022
99e11bb
Merge branch 'rc/v1.4.0' into outport-driver-stuck-prints
gabi-vuls Sep 14, 2022
326726a
Merge pull request #4288 from ElrondNetwork/process-debug-handler
iulianpascalau Sep 14, 2022
731530c
Merge branch 'rc/v1.4.0' into skip-snapshot-if-snapshot-in-progress
BeniaminDrasovean Sep 14, 2022
d76bffb
Merge branch 'rc/v1.4.0' into outport-driver-stuck-prints
iulianpascalau Sep 14, 2022
a72b09a
Merge pull request #4404 from ElrondNetwork/skip-snapshot-if-snapshot…
BeniaminDrasovean Sep 14, 2022
7d806e2
Merge branch 'rc/v1.4.0' into outport-driver-stuck-prints
iulianpascalau Sep 14, 2022
27567a0
Merge pull request #4452 from ElrondNetwork/outport-driver-stuck-prints
iulianpascalau Sep 14, 2022
7a32f56
Merge remote-tracking branch 'origin/rc/v1.4.0' into sync-missing-sna…
BeniaminDrasovean Sep 14, 2022
2380fe8
fix after merge
BeniaminDrasovean Sep 14, 2022
95e5203
Merge branch 'rc/v1.4.0' into dependabot/go_modules/development/githu…
iulianpascalau Sep 14, 2022
5a31928
cleanup unused constants, comments, types
AdoAdoAdo Sep 14, 2022
0a022bc
remove unused interfaces
AdoAdoAdo Sep 14, 2022
6f8740b
Merge branch 'rc/v1.4.0' into sync-missing-snapshot-nodes
BeniaminDrasovean Sep 14, 2022
05f6f1d
Merge pull request #4271 from ElrondNetwork/dependabot/go_modules/dev…
iulianpascalau Sep 14, 2022
f6181a9
created testConsensusNode
sstanculeanu Sep 14, 2022
c899ac6
Merge branch 'rc/v1.4.0' into test_consensus_node
sstanculeanu Sep 14, 2022
013b2cf
Merge pull request #4453 from ElrondNetwork/wrapper-storage-package
gabi-vuls Sep 15, 2022
f3b5d4f
fix meta genesis block
miiu96 Sep 15, 2022
2a5719b
async callback arguments inconsitency fix
sasurobert Sep 15, 2022
44d948c
async callback arguments inconsitency fix
sasurobert Sep 15, 2022
961ead7
Improve logging, add extra information.
andreibancioiu Sep 15, 2022
ceeb79f
Merge pull request #4471 from ElrondNetwork/get-from-epoch-logging
andreibancioiu Sep 15, 2022
52da3a3
Merge branch 'rc/v1.4.0' into merge-rc1.4-feat-elrond-go-storage
AdoAdoAdo Sep 15, 2022
8eecfa5
Merge branch 'rc/2022-july' into callBack-inconsistency
sasurobert Sep 15, 2022
8303b62
fixes after review
sstanculeanu Sep 15, 2022
09cd9ef
delete log lines for debugging
sstanculeanu Sep 15, 2022
f348a6c
Merge branch 'rc/2022-july' into indexer-partial-executed-mb-data
miiu96 Sep 16, 2022
06f259e
updated elrond-go-storage version with some fixes
AdoAdoAdo Sep 16, 2022
03660bd
added request timeout seconds for notifier http client + refactorings
ssd04 Sep 16, 2022
7981f9e
Merge pull request #4469 from ElrondNetwork/indexer-partial-executed-…
miiu96 Sep 16, 2022
e6bed50
fix unit tests in outport factory
ssd04 Sep 16, 2022
28a9823
reference new elrond-go-storage version
AdoAdoAdo Sep 16, 2022
2e4fae7
outport notifier: unit tests nil checks
ssd04 Sep 16, 2022
af5e1c1
Merge branch 'rc/2022-july' into callBack-inconsistency
gabi-vuls Sep 16, 2022
93e9ba2
outport notifier: fix race condition in unit tests
ssd04 Sep 16, 2022
a907030
create static storer for meta if snapshots are disabled
BeniaminDrasovean Sep 16, 2022
a50c6f5
fixes after review
sstanculeanu Sep 16, 2022
72b3676
Merge pull request #4477 from ElrondNetwork/fix-meta-without-snapshots
iulianpascalau Sep 16, 2022
7a0610c
Merge branch 'rc/2022-july' into callBack-inconsistency
iulianpascalau Sep 16, 2022
5aed6c6
Merge pull request #4470 from ElrondNetwork/callBack-inconsistency
iulianpascalau Sep 16, 2022
3f39a3c
Merge branch 'rc/v1.4.0' into sync-missing-snapshot-nodes
BeniaminDrasovean Sep 19, 2022
d646ca8
- added new flag for the async callback fix
iulianpascalau Sep 19, 2022
a982c2c
- fix after review
iulianpascalau Sep 19, 2022
14d5394
fix stub causing panic
sstanculeanu Sep 19, 2022
554158f
- fix long test
iulianpascalau Sep 19, 2022
bf806d4
Merge pull request #4464 from ElrondNetwork/test_consensus_node
sstanculeanu Sep 19, 2022
f33c98a
Merge pull request #4473 from ElrondNetwork/merge-rc1.4-feat-elrond-g…
gabi-vuls Sep 19, 2022
aeddd79
Merge branch 'rc/v1.4.0' into merge-v1.4.0-elrond-storage
AdoAdoAdo Sep 19, 2022
1c5dfa7
fix after merge
AdoAdoAdo Sep 19, 2022
2edb60b
fix storageunit reference
AdoAdoAdo Sep 19, 2022
8de041b
Merge pull request #4480 from ElrondNetwork/merge-v1.4.0-elrond-storage
AdoAdoAdo Sep 19, 2022
57fe4d9
Merge pull request #4397 from ElrondNetwork/feat/elrond-go-storage
AdoAdoAdo Sep 19, 2022
933f36c
Merge pull request #4479 from ElrondNetwork/new-flag-for-async-call-fix
gabi-vuls Sep 19, 2022
d0758e9
Merge branch 'rc/v1.4.0' into fix-notifier-client-timeout-issue
ssd04 Sep 19, 2022
46c31fc
upgrade vm common
miiu96 Sep 19, 2022
708aa24
Merge branch 'master' into update-master-rc-2022-09-19
iulianpascalau Sep 19, 2022
63414ce
Merge pull request #4482 from ElrondNetwork/update-master-rc-2022-09-19
iulianpascalau Sep 19, 2022
ff5c28a
proper release
miiu96 Sep 19, 2022
5027b0c
Merge branch 'rc/2022-july' into update-vm-common
iulianpascalau Sep 19, 2022
5c3f16e
Merge remote-tracking branch 'origin/rc/v1.4.0' into sync-missing-sna…
BeniaminDrasovean Sep 20, 2022
3796daf
fix after merge
BeniaminDrasovean Sep 20, 2022
ceabff3
Merge pull request #4475 from ElrondNetwork/fix-notifier-client-timeo…
ssd04 Sep 20, 2022
916458d
upgrade elastic indexer
miiu96 Sep 20, 2022
1097ca4
Merge branch 'rc/v1.4.0' into merge-v1.4-feat-kosk
AdoAdoAdo Sep 20, 2022
47b8513
Merge pull request #4481 from ElrondNetwork/update-vm-common
miiu96 Sep 20, 2022
5bd2e68
Merge branch 'rc/v1.4.0' into sync-missing-snapshot-nodes
BeniaminDrasovean Sep 20, 2022
bde1072
fixes after merge
AdoAdoAdo Sep 20, 2022
b08cc25
Merge branch 'rc/2022-july' into update-v1.4.0-rc-july
iulianpascalau Sep 20, 2022
de74bf1
- fix after merge
iulianpascalau Sep 20, 2022
36680d1
- rephrased the pull request template strings
iulianpascalau Sep 20, 2022
92fa342
Merge pull request #4487 from ElrondNetwork/merge-v1.4-feat-kosk
gabi-vuls Sep 21, 2022
f18d477
Merge pull request #4367 from ElrondNetwork/sync-missing-snapshot-nodes
BeniaminDrasovean Sep 21, 2022
e9fbe20
Merge branch 'rc/v1.4.0' into update-v1.4.0-rc-july
iulianpascalau Sep 21, 2022
62f2d9e
Merge pull request #4489 from ElrondNetwork/update-v1.4.0-rc-july
iulianpascalau Sep 21, 2022
b6a2105
Merge branch 'rc/v1.4.0' into merge-v1.4.0-feat-kosk-210922
AdoAdoAdo Sep 21, 2022
20b7aa7
fix signer mock
AdoAdoAdo Sep 21, 2022
1e290d8
remove logging in integration test
AdoAdoAdo Sep 21, 2022
94b10b3
Merge pull request #4494 from ElrondNetwork/merge-v1.4.0-feat-kosk-21…
AdoAdoAdo Sep 22, 2022
534f082
Merge pull request #4314 from ElrondNetwork/feat/kosk-bls-multisigner
AdoAdoAdo Sep 22, 2022
594c71b
Merge branch 'rc/v1.4.0' into merge-v1.4.0-feat-optimise-consensus-si…
ssd04 Sep 22, 2022
04f84c3
consensus spos: fixes after merge
ssd04 Sep 22, 2022
a56ce7c
consensus spos: added back deleted unit test
ssd04 Sep 22, 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: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Description of the reasoning behind the pull request (what feature was missing / how the problem was manifesting itself / what was the motive behind the refactoring)
## Reasoning behind the pull request
-
-
-

## Proposed Changes
## Proposed changes
-
-
-
Expand Down
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
changelog:
exclude:
labels:
- ignore-for-release
- ignore-for-release-notes
categories:
- title: Breaking Changes
labels:
Expand Down
3 changes: 3 additions & 0 deletions api/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ var ErrGetBalance = errors.New("get balance error")
// ErrGetUsername signals an error in getting the username for an account
var ErrGetUsername = errors.New("get username error")

// ErrGetCodeHash signals an error in getting the code hash for an account
var ErrGetCodeHash = errors.New("get code hash error")

// ErrGetValueForKey signals an error in getting the value of a key for an account
var ErrGetValueForKey = errors.New("get value for key error")

Expand Down
30 changes: 30 additions & 0 deletions api/groups/addressGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
getAccountPath = "/:address"
getBalancePath = "/:address/balance"
getUsernamePath = "/:address/username"
getCodeHashPath = "/:address/code-hash"
getKeysPath = "/:address/keys"
getKeyPath = "/:address/key/:key"
getESDTTokensPath = "/:address/esdt"
Expand All @@ -40,6 +41,7 @@ const (
type addressFacadeHandler interface {
GetBalance(address string, options api.AccountQueryOptions) (*big.Int, api.BlockInfo, error)
GetUsername(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetCodeHash(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error)
GetValueForKey(address string, key string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetAccount(address string, options api.AccountQueryOptions) (api.AccountResponse, api.BlockInfo, error)
GetESDTData(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error)
Expand Down Expand Up @@ -103,6 +105,11 @@ func NewAddressGroup(facade addressFacadeHandler) (*addressGroup, error) {
Method: http.MethodGet,
Handler: ag.getUsername,
},
{
Path: getCodeHashPath,
Method: http.MethodGet,
Handler: ag.getCodeHash,
},
{
Path: getKeyPath,
Method: http.MethodGet,
Expand Down Expand Up @@ -219,6 +226,29 @@ func (ag *addressGroup) getUsername(c *gin.Context) {
shared.RespondWithSuccess(c, gin.H{"username": userName, "blockInfo": blockInfo})
}

// getCodeHash returns the code hash for the address parameter
func (ag *addressGroup) getCodeHash(c *gin.Context) {
addr := c.Param("address")
if addr == "" {
shared.RespondWithValidationError(c, errors.ErrGetCodeHash, errors.ErrEmptyAddress)
return
}

options, err := parseAccountQueryOptions(c)
if err != nil {
shared.RespondWithValidationError(c, errors.ErrGetCodeHash, errors.ErrBadUrlParams)
return
}

codeHash, blockInfo, err := ag.getFacade().GetCodeHash(addr, options)
if err != nil {
shared.RespondWithInternalError(c, errors.ErrGetCodeHash, err)
return
}

shared.RespondWithSuccess(c, gin.H{"codeHash": codeHash, "blockInfo": blockInfo})
}

// getValueForKey returns the value for the given address and key
func (ag *addressGroup) getValueForKey(c *gin.Context) {
addr := c.Param("address")
Expand Down
65 changes: 65 additions & 0 deletions api/groups/addressGroup_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package groups_test

import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
Expand Down Expand Up @@ -139,6 +140,16 @@ type usernameResponse struct {
Code string `json:"code"`
}

type codeHashResponseData struct {
CodeHash string `json:"codeHash"`
}

type codeHashResponse struct {
Data codeHashResponseData `json:"data"`
Error string `json:"error"`
Code string `json:"code"`
}

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

Expand Down Expand Up @@ -395,6 +406,59 @@ func TestGetUsername_ShouldWork(t *testing.T) {
assert.Equal(t, testUsername, usernameResponseObj.Data.Username)
}

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

testAddress := "address"
expectedErr := errors.New("expected error")
facade := mock.FacadeStub{
GetCodeHashCalled: func(_ string, _ api.AccountQueryOptions) ([]byte, api.BlockInfo, error) {
return nil, api.BlockInfo{}, expectedErr
},
}

addrGroup, err := groups.NewAddressGroup(&facade)
require.NoError(t, err)

ws := startWebServer(addrGroup, "address", getAddressRoutesConfig())

req, _ := http.NewRequest("GET", fmt.Sprintf("/address/%s/code-hash", testAddress), nil)
resp := httptest.NewRecorder()
ws.ServeHTTP(resp, req)

codeHashResponseObj := codeHashResponse{}
loadResponse(resp.Body, &codeHashResponseObj)
assert.Equal(t, http.StatusInternalServerError, resp.Code)
assert.True(t, strings.Contains(codeHashResponseObj.Error, expectedErr.Error()))
}

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

testAddress := "address"
testCodeHash := []byte("value")
expectedResponseCodeHash := base64.StdEncoding.EncodeToString(testCodeHash)
facade := mock.FacadeStub{
GetCodeHashCalled: func(_ string, _ api.AccountQueryOptions) ([]byte, api.BlockInfo, error) {
return testCodeHash, api.BlockInfo{}, nil
},
}

addrGroup, err := groups.NewAddressGroup(&facade)
require.NoError(t, err)

ws := startWebServer(addrGroup, "address", getAddressRoutesConfig())

req, _ := http.NewRequest("GET", fmt.Sprintf("/address/%s/code-hash", testAddress), nil)
resp := httptest.NewRecorder()
ws.ServeHTTP(resp, req)

codeHashResponseObj := codeHashResponse{}
loadResponse(resp.Body, &codeHashResponseObj)
assert.Equal(t, http.StatusOK, resp.Code)
assert.Equal(t, expectedResponseCodeHash, codeHashResponseObj.Data.CodeHash)
}

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

Expand Down Expand Up @@ -1034,6 +1098,7 @@ func getAddressRoutesConfig() config.ApiRoutesConfig {
{Name: "/:address", Open: true},
{Name: "/:address/balance", Open: true},
{Name: "/:address/username", Open: true},
{Name: "/:address/code-hash", Open: true},
{Name: "/:address/keys", Open: true},
{Name: "/:address/key/:key", Open: true},
{Name: "/:address/esdt", Open: true},
Expand Down
10 changes: 10 additions & 0 deletions api/mock/facadeStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type FacadeStub struct {
GetPeerInfoCalled func(pid string) ([]core.QueryP2PPeerInfo, error)
GetThrottlerForEndpointCalled func(endpoint string) (core.Throttler, bool)
GetUsernameCalled func(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetCodeHashCalled func(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error)
GetKeyValuePairsCalled func(address string, options api.AccountQueryOptions) (map[string]string, api.BlockInfo, error)
SimulateTransactionExecutionHandler func(tx *transaction.Transaction) (*txSimData.SimulationResults, error)
GetESDTDataCalled func(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error)
Expand Down Expand Up @@ -132,6 +133,15 @@ func (f *FacadeStub) GetUsername(address string, options api.AccountQueryOptions
return "", api.BlockInfo{}, nil
}

// GetCodeHash -
func (f *FacadeStub) GetCodeHash(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error) {
if f.GetCodeHashCalled != nil {
return f.GetCodeHashCalled(address, options)
}

return nil, api.BlockInfo{}, nil
}

// GetThrottlerForEndpoint -
func (f *FacadeStub) GetThrottlerForEndpoint(endpoint string) (core.Throttler, bool) {
if f.GetThrottlerForEndpointCalled != nil {
Expand Down
1 change: 1 addition & 0 deletions api/shared/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type GroupHandler interface {
type FacadeHandler interface {
GetBalance(address string, options api.AccountQueryOptions) (*big.Int, api.BlockInfo, error)
GetUsername(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetCodeHash(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error)
GetValueForKey(address string, key string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetAccount(address string, options api.AccountQueryOptions) (api.AccountResponse, api.BlockInfo, error)
GetESDTData(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error)
Expand Down
1 change: 1 addition & 0 deletions api/shared/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

var log = logger.GetOrCreate("api/shared/logging")

const thresholdMinAPICallDurationToLog = 200 * time.Millisecond

// LogAPIActionDurationIfNeeded will log the duration of an action triggered by an API call if it's above a threshold
Expand Down
1 change: 1 addition & 0 deletions cmd/node/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ GLOBAL OPTIONS:
--num-epochs-to-keep value This flag represents the number of epochs which will kept in the databases. It is relevant only if the full archive flag is not set. (default: 2)
--num-active-persisters value This flag represents the number of databases (1 database = 1 epoch) which are kept open at a moment. It is relevant even if the node is full archive or not. (default: 2)
--start-in-epoch Boolean option for enabling a node the fast bootstrap mechanism from the network.Should be enabled if data is not available in local disk.
--no-key Boolean flag for enabling the node to generate a signing key when it starts (if the validatorKey.pem file is present, setting this flag to true will overwrite the BLS key used by the node)
--help, -h show help
--version, -v print the version

Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/api.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
# /address/:address/username will return the username of a given account
{ Name = "/:address/username", Open = true },

# /address/:address/code-hash will return the code hash of a given account
{ Name = "/:address/code-hash", Open = true },

# /address/:address/keys will return all the key-value pairs of a given account
{ Name = "/:address/keys", Open = true },

Expand Down
15 changes: 15 additions & 0 deletions cmd/node/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,12 @@
SizeInBytes = 26214400 # 25MB per each pair (metachain, destinationShard)
Shards = 4

[ValidatorInfoPool]
Name = "ValidatorInfoPool"
Capacity = 10000
SizeInBytes = 31457280 #30MB
Shards = 4

#PublicKeyPeerId represents the main cache used to map Elrond block signing public keys to their associated peer id's.
[PublicKeyPeerId]
Name = "PublicKeyPeerId"
Expand Down Expand Up @@ -482,6 +488,10 @@
TopRatedCacheCapacity = 5000
BadRatedCacheCapacity = 5000

[PoolsCleanersConfig]
MaxRoundsToKeepUnprocessedMiniBlocks = 300 # max number of rounds unprocessed miniblocks are kept in pool
MaxRoundsToKeepUnprocessedTransactions = 300 # max number of rounds unprocessed transactions are kept in pool

[TrieSyncStorage]
Capacity = 300000
SizeInBytes = 104857600 #100MB
Expand Down Expand Up @@ -805,6 +815,11 @@
[Debug.EpochStart]
GoRoutineAnalyserEnabled = true
ProcessDataTrieOnCommitEpoch = true
[Debug.Process]
Enabled = true
DebuggingLogLevel = "*:DEBUG,p2p:TRACE,debug:DEBUG,process:TRACE,intercept:TRACE"
GoRoutinesDump = true
PollingTimeInSeconds = 240 # 4 minutes

[Health]
IntervalVerifyMemoryInSeconds = 30
Expand Down
15 changes: 15 additions & 0 deletions cmd/node/config/enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,21 @@
# MiniBlockPartialExecutionEnableEpoch represents the epoch when mini block partial execution will be enabled
MiniBlockPartialExecutionEnableEpoch = 3

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

# SetSenderInEeiOutputTransferEnableEpoch represents the epoch when setting the sender in eei output transfers will be enabled
SetSenderInEeiOutputTransferEnableEpoch = 4

# RefactorPeersMiniBlocksEnableEpoch represents the epoch when refactor of the peers mini blocks will be enabled
RefactorPeersMiniBlocksEnableEpoch = 5

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
{ EnableEpoch = 0, Type = "no-KOSK"},
{ EnableEpoch = 3, 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
19 changes: 10 additions & 9 deletions cmd/node/config/enableRounds.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Since we do not have yet any round based enable flag, this file is empty for now.
# Below, there is an example of how a new flag shall be defined. Please notice the following:
# 1. It is mandatory that each flag is a separate table, e.g.: [ActivationDummyFlag1]
# 2. It is mandatory that each table contains Name and Round keys ONLY
# 3. It is NOT mandatory for table name to be the same as key Name, e.g.: [ActivationDummyFlag1] & Name = "Fix1" is fine
# All activation rounds need to be declared as strings containing valid uint64 numbers. All values will be checked in the
# enableRoundsHandler for correctness. The toml parser library can not correctly parse uint64, currently.

# Example:
#[ActivationDummyFlag1]
# Name = "Fix1"
# Round = 444
# Each activation round definition contains an optional slice of strings. These are useful, for example, when we have
# some exceptions to process in a different manner at a special round (say a block, a transaction, a smart contract result and such)

[RoundActivations]
# RoundActivations.Example represents an example how to use the round activation
# mechanism. Replace this with the first real use case
[RoundActivations.Example]
Options = ["test string1", "test string 2"]
Round = "18446744073709551614"
3 changes: 3 additions & 0 deletions cmd/node/config/external.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
# Password is used to authorize an observer to push event data
Password = ""

# RequestTimeoutSec defines the timeout in seconds for the http client
RequestTimeoutSec = 60

# CovalentConnector defines settings related to covalent indexer
[CovalentConnector]
# This flag shall only be used for observer nodes
Expand Down
10 changes: 10 additions & 0 deletions cmd/node/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ var (
Name: "serialize-snapshots",
Usage: "Flag that will serialize `state snapshotting` and `processing`",
}

// noKey defines a flag that, if set, will generate every time when node starts a new signing key
noKey = cli.BoolFlag{
Name: "no-key",
Usage: "Boolean flag for enabling the node to generate a signing key when it starts (if the validatorKey.pem" +
" file is present, setting this flag to true will overwrite the BLS key used by the node)",
}
)

func getFlags() []cli.Flag {
Expand Down Expand Up @@ -389,6 +396,7 @@ func getFlags() []cli.Flag {
forceStartFromNetwork,
disableConsensusWatchdog,
serializeSnapshots,
noKey,
}
}

Expand All @@ -414,6 +422,8 @@ func getFlagsConfig(ctx *cli.Context, log logger.Logger) *config.ContextFlagsCon
flagsConfig.ForceStartFromNetwork = ctx.GlobalBool(forceStartFromNetwork.Name)
flagsConfig.DisableConsensusWatchdog = ctx.GlobalBool(disableConsensusWatchdog.Name)
flagsConfig.SerializeSnapshots = ctx.GlobalBool(serializeSnapshots.Name)
flagsConfig.NoKeyProvided = ctx.GlobalBool(noKey.Name)

return flagsConfig
}

Expand Down
Loading