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/v1.7.next1 in feat/esdt improvements 28mar #6072

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1300 commits
Select commit Hold shift + click to select a range
cb25f66
fix after merge - update stub
ssd04 Feb 21, 2024
190de2b
more tests for chain simulator
sstanculeanu Feb 21, 2024
98392f1
genesis epoch
miiu96 Feb 21, 2024
62305a2
Merge pull request #5901 from multiversx/add-state-statistics-field
ssd04 Feb 21, 2024
b9aebc9
Merge branch 'rc/v1.7.0' into configurable-epoch
miiu96 Feb 21, 2024
0f3a9ca
genesis nonce
miiu96 Feb 21, 2024
e6e40b9
Merge remote-tracking branch 'origin/configurable-epoch' into configu…
miiu96 Feb 21, 2024
22a7909
- fixes after review
iulianpascalau Feb 21, 2024
aa16de3
fixes after review
miiu96 Feb 21, 2024
b0aa73d
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p2
sstanculeanu Feb 21, 2024
954cedb
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests
sstanculeanu Feb 21, 2024
a7aec8a
- fixed genesis flags usage
iulianpascalau Feb 21, 2024
6816571
Merge branch 'rc/v1.7.0' into fix-genesis-flags
iulianpascalau Feb 21, 2024
df1ee01
Merge pull request #5980 from multiversx/chain-simulator-initial-wall…
iulianpascalau Feb 22, 2024
820fda6
Merge branch 'feat/staking-v4' into unit-tests-for-proper-flags
iulianpascalau Feb 22, 2024
a2245c7
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Feb 22, 2024
b01c1c8
- fixed genesis block creator
iulianpascalau Feb 22, 2024
818c5c7
processComponentsHolder tests
sstanculeanu Feb 22, 2024
2ee20db
Merge pull request #5978 from multiversx/unit-tests-for-proper-flags
iulianpascalau Feb 22, 2024
67f251a
Merge remote-tracking branch 'origin/fix-genesis-flags' into fix-gene…
iulianpascalau Feb 22, 2024
5bc4c4d
fixes after review - refactor + update misleading comments
ssd04 Feb 22, 2024
298d5fd
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Feb 22, 2024
b0bdc7a
skip some tests with `cannot run with -race -short; requires Wasm VM …
sstanculeanu Feb 22, 2024
3e19e99
update to latest storage version
ssd04 Feb 22, 2024
d3111de
more chain simulator tests
sstanculeanu Feb 22, 2024
a6706b1
Merge pull request #5971 from multiversx/more_chainSimulator_tests
sstanculeanu Feb 22, 2024
fc4e6b1
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p3
sstanculeanu Feb 22, 2024
5fbd770
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p2
sstanculeanu Feb 22, 2024
7446804
closeHandler tests
sstanculeanu Feb 22, 2024
141ebb6
facade tests
sstanculeanu Feb 22, 2024
72229cf
fix race
sstanculeanu Feb 22, 2024
2605a16
Merge branch 'rc/v1.7.0' into configurable-epoch
iulianpascalau Feb 23, 2024
688b8ff
Merge pull request #5977 from multiversx/vm-query-logs
iulianpascalau Feb 23, 2024
99ba904
Merge branch 'rc/v1.6.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Feb 23, 2024
6b9a082
fix after review
sstanculeanu Feb 23, 2024
c873ed3
Merge pull request #5991 from multiversx/merge_rc16next1_into_rc170_2…
sstanculeanu Feb 23, 2024
2af27f4
Merge branch 'rc/v1.7.0' of https://github.com/multiversx/mx-chain-go…
sstanculeanu Feb 23, 2024
e8013b1
fixes after merge
sstanculeanu Feb 23, 2024
a31eafa
Merge branch 'rc/v1.7.0' into configurable-epoch
miiu96 Feb 23, 2024
29a112c
fix chain simulator testst after merge
sstanculeanu Feb 23, 2024
6b87cba
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p2
sstanculeanu Feb 23, 2024
d3489af
Merge pull request #5986 from multiversx/configurable-epoch
miiu96 Feb 23, 2024
5408d85
Merge branch 'rc/v1.7.0' into fix-genesis-flags
iulianpascalau Feb 23, 2024
d03d889
bug fixes set state
miiu96 Feb 23, 2024
56f9c85
Merge branch 'rc/v1.7.0' into bug-fixes-set-state
miiu96 Feb 23, 2024
1be70d9
Merge pull request #5992 from multiversx/merge_rc170_into_feat_stakin…
gabi-vuls Feb 23, 2024
4493a69
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p2
sstanculeanu Feb 23, 2024
06117d6
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p3
sstanculeanu Feb 23, 2024
685b3eb
use tmp as file path flag in persister creator
ssd04 Feb 25, 2024
4b0c94c
remove tmp filepath check
ssd04 Feb 25, 2024
5688d9b
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Feb 25, 2024
c4a1a60
Merge pull request #5797 from multiversx/common-storage-persister-fac…
ssd04 Feb 26, 2024
881a315
added scenario with withdraw in batches
ssd04 Feb 26, 2024
c113d89
Merge pull request #5985 from multiversx/more_chainSimulator_tests_p2
sstanculeanu Feb 26, 2024
f55f5c0
Merge branch 'rc/v1.7.0' into more_chainSimulator_tests_p3
sstanculeanu Feb 26, 2024
daaa78f
fix after review
sstanculeanu Feb 26, 2024
819285a
Merge branch 'rc/v1.7.0' into bug-fixes-set-state
miiu96 Feb 26, 2024
97c61d9
Merge branch 'feat/refactor-persister-factory' into persister-tmp-fil…
ssd04 Feb 26, 2024
d80e474
Merge pull request #5990 from multiversx/more_chainSimulator_tests_p3
sstanculeanu Feb 26, 2024
6b655f8
fixes after review - renaming
ssd04 Feb 26, 2024
81d81e9
Merge branch 'rc/v1.7.0' into bug-fixes-set-state
miiu96 Feb 27, 2024
3f716b1
Merge pull request #5993 from multiversx/bug-fixes-set-state
miiu96 Feb 27, 2024
0fe9d80
Merge branch 'rc/v1.7.0' into fix-edge-case-tx-gas-used-and-fee
miiu96 Feb 27, 2024
e137936
fixes after review
miiu96 Feb 27, 2024
20c6fb6
extra nil check
miiu96 Feb 27, 2024
4d1c907
Merge branch 'rc/v1.7.0' into remove-built-in-functions-cost-handler
miiu96 Feb 27, 2024
d6c8730
fix tmp path unit test
ssd04 Feb 27, 2024
c73f9a8
fix tmp path unit test
ssd04 Feb 27, 2024
6ae8dcf
Merge branch 'rc/v1.7.0' into merge-rc-v1.7.0-feat-staking-v4-2024.02.27
iulianpascalau Feb 27, 2024
4c25093
- fixes after merge
iulianpascalau Feb 27, 2024
398171a
- removed unnecessary config init
iulianpascalau Feb 27, 2024
6c1b610
Merge branch 'rc/v1.7.0' into fix-genesis-flags
iulianpascalau Feb 27, 2024
e45fbbc
Merge pull request #5997 from multiversx/merge-rc-v1.7.0-feat-staking…
iulianpascalau Feb 27, 2024
990bd74
- fix after merge
iulianpascalau Feb 28, 2024
263a1c3
tmp path - more unit tests
ssd04 Feb 28, 2024
dd12d5f
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Feb 28, 2024
6953030
Merge pull request #5767 from multiversx/fix-edge-case-tx-gas-used-an…
miiu96 Feb 28, 2024
a7c032a
Merge branch 'rc/v1.7.0' into remove-built-in-functions-cost-handler
miiu96 Feb 28, 2024
94743e7
use path package
ssd04 Feb 28, 2024
69baeea
move tmp file path check into persister factory
ssd04 Feb 28, 2024
a91e9d0
fix linter issue
ssd04 Feb 28, 2024
2e88a8f
fix linter issue
ssd04 Feb 28, 2024
949cbd5
- minor chain simulator refactor
iulianpascalau Feb 28, 2024
9ea68ca
- fixes
iulianpascalau Feb 28, 2024
882f233
- optimized GetTransaction call
iulianpascalau Feb 28, 2024
e7b14b1
Merge branch 'rc/v1.7.0' into fix-genesis-flags
iulianpascalau Feb 29, 2024
7de84bd
- fixes after review + fixed tests
iulianpascalau Feb 29, 2024
0494b7c
Merge pull request #6000 from multiversx/chain-simulator-minor-refact…
iulianpascalau Feb 29, 2024
7d8cd10
Merge pull request #5995 from multiversx/persister-tmp-file-path
ssd04 Feb 29, 2024
6e3b05f
Merge branch 'rc/v1.7.next1' into merge-rc-1.7.next1-to-common-persis…
ssd04 Feb 29, 2024
b059f21
fixes after merge
ssd04 Feb 29, 2024
0742145
fixes after merge
ssd04 Feb 29, 2024
cb193df
Merge pull request #5728 from multiversx/remove-built-in-functions-co…
miiu96 Feb 29, 2024
88779d8
- fixed chain simulator's synced messenger to prepare the Peer field …
iulianpascalau Feb 29, 2024
26883ef
- unit tests
iulianpascalau Feb 29, 2024
c29d8d5
Merge pull request #6004 from multiversx/fix-synced-messenger-in-chai…
iulianpascalau Mar 1, 2024
707530b
Remember latest queried epoch.
andreibancioiu Mar 1, 2024
0bbe9df
Fix after review.
andreibancioiu Mar 1, 2024
8d43578
- added staking v4 scenario 11
iulianpascalau Mar 1, 2024
e731ccb
Fix tests.
andreibancioiu Mar 1, 2024
211beab
Fix condition for RecreateTrie.
andreibancioiu Mar 1, 2024
952ccc8
- handled vm queries in snapshotless mode
iulianpascalau Mar 1, 2024
b39c59e
Merge branch 'vm-queries-remember-epoch' into vm-queries-remember-epo…
iulianpascalau Mar 1, 2024
d44648e
- fix after merge
iulianpascalau Mar 1, 2024
7959088
Merge pull request #6007 from multiversx/vm-queries-remember-epoch-sn…
andreibancioiu Mar 1, 2024
d867f82
- refactored solution
iulianpascalau Mar 1, 2024
0b561d7
fix unstake in batches scenario
ssd04 Mar 2, 2024
8c2e732
added multiple unstake in same epoch scenario
ssd04 Mar 2, 2024
c8d3483
fix log messages
ssd04 Mar 2, 2024
c50eb8c
- linter fix
iulianpascalau Mar 4, 2024
333c4f2
Merge branch 'rc/v1.7.0' into fix-genesis-flags
iulianpascalau Mar 4, 2024
6e4c044
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Mar 4, 2024
ca68006
Merge pull request #6008 from multiversx/vm-queries-remember-epoch-re…
iulianpascalau Mar 4, 2024
d8ac9b4
- fixed typo
iulianpascalau Mar 4, 2024
5501075
Merge pull request #6006 from multiversx/staking-v4-scenario-11
iulianpascalau Mar 4, 2024
6d7d76c
Merge pull request #6003 from multiversx/merge-rc-1.7.next1-to-common…
ssd04 Mar 4, 2024
d84ab59
update storage version
ssd04 Mar 4, 2024
284f784
Merge pull request #6010 from multiversx/update-storage-version
ssd04 Mar 4, 2024
cd040b9
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Mar 4, 2024
7352b5f
Merge pull request #5949 from multiversx/staking-for-direct-staked-nodes
ssd04 Mar 4, 2024
8347bc5
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes-p…
ssd04 Mar 4, 2024
319fc0c
Merge branch 'rc/v1.7.0' into tests-for-requests
sstanculeanu Mar 5, 2024
4a0b699
Merge pull request #5813 from multiversx/tests-for-requests
sstanculeanu Mar 5, 2024
6207335
Merge branch 'rc/v1.7.0' into fix-genesis-flags
sstanculeanu Mar 5, 2024
4d73dbb
Reference VMs with wasmer for MacOS ARM64.
andreibancioiu Mar 5, 2024
7fac17b
Attempt to make packages for MacOS, as well.
andreibancioiu Mar 5, 2024
4b03546
Undo CI workflow.
andreibancioiu Mar 5, 2024
f731d80
Merge pull request #6005 from multiversx/vm-queries-remember-epoch
iulianpascalau Mar 5, 2024
64154cd
Merge pull request #5988 from multiversx/fix-genesis-flags
iulianpascalau Mar 5, 2024
36603dd
Merge branch 'rc/v1.6.next1' into merge-rc-v1.6.next1-rc-v1.7.0-2024.…
iulianpascalau Mar 5, 2024
0a6277c
Merge pull request #6015 from multiversx/merge-rc-v1.6.next1-rc-v1.7.…
iulianpascalau Mar 5, 2024
aed2799
Merge branch 'rc/v1.7.0' into merge-rc-v1.7.0-staking-v4-2024.03.05
iulianpascalau Mar 5, 2024
4ffa415
- fixes after merge
iulianpascalau Mar 5, 2024
e5455f3
Merge pull request #6016 from multiversx/merge-rc-v1.7.0-staking-v4-2…
iulianpascalau Mar 5, 2024
34badde
Conditional compilation.
andreibancioiu Mar 5, 2024
d21c9eb
Patch VM config wrt. architecture.
andreibancioiu Mar 5, 2024
78a2a94
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes-p…
ssd04 Mar 6, 2024
b4baa9a
fixes after review
ssd04 Mar 6, 2024
9318acb
fix integration tests
miiu96 Mar 6, 2024
50359d9
Linux ARM64, attempt 1.
andreibancioiu Mar 6, 2024
055aada
Use shim for Linux ARM64.
andreibancioiu Mar 6, 2024
8bfcd2e
Merge pull request #6017 from multiversx/fix-jail-test-that-fail
miiu96 Mar 6, 2024
1395537
Merge branch 'rc/v1.7.0' into apple-arm64
andreibancioiu Mar 6, 2024
ef60635
Reference newer commits.
andreibancioiu Mar 6, 2024
63a6c78
Merge branch 'apple-arm64' of github.com:multiversx/mx-chain-go into …
andreibancioiu Mar 6, 2024
164da49
Merge pull request #6001 from multiversx/feat/refactor-persister-factory
ssd04 Mar 7, 2024
271fd46
Merge pull request #4934 from multiversx/feat/staking-v4
mariusmihaic Mar 7, 2024
069b541
fixed linter issues by removing unused methods
sstanculeanu Mar 7, 2024
41cd680
- added generic configs tweaks based on architecture
iulianpascalau Mar 7, 2024
4b95ffd
- cleanup
iulianpascalau Mar 7, 2024
aac68b1
Merge pull request #6026 from multiversx/fix_linter_rc170
sstanculeanu Mar 7, 2024
5f3a8c2
Merge pull request #6028 from multiversx/apple-arm64-custom-configs
dragos-rebegea Mar 7, 2024
e7b40ae
Merge branch 'rc/v1.7.0' into apple-arm64
andreibancioiu Mar 7, 2024
510bf55
Fix go.mod.
andreibancioiu Mar 7, 2024
517d190
Adjust "build" workflow.
andreibancioiu Mar 7, 2024
d72cde8
Rename files, adjust build conditions.
andreibancioiu Mar 7, 2024
3944eb1
Adjust trigger.
andreibancioiu Mar 7, 2024
5742a68
Add smoke test.
andreibancioiu Mar 7, 2024
82a5153
Fix smoke tests.
andreibancioiu Mar 7, 2024
5b2b4ca
For MacOS, run short tests.
andreibancioiu Mar 7, 2024
343340f
Adjust "create release" flow to include wasmer2, as well.
andreibancioiu Mar 7, 2024
c17aab3
Adjust CI (trial and error).
andreibancioiu Mar 7, 2024
50a3c0d
Smoke tests.
andreibancioiu Mar 7, 2024
0a7c96c
Test assets upload.
andreibancioiu Mar 7, 2024
51c5e60
Undo trigger.
andreibancioiu Mar 7, 2024
69c732d
Adjust smoke test.
andreibancioiu Mar 7, 2024
6278e95
Better smoke testing.
andreibancioiu Mar 7, 2024
41bbb80
Fix tests.
andreibancioiu Mar 7, 2024
290fc9c
Remove smoke tests which aren't very useful (and failing on MacOS AMD…
andreibancioiu Mar 7, 2024
4a21358
Skip some tests on darwin, on ARM64.
andreibancioiu Mar 7, 2024
5afa0a3
Skip some tests.
andreibancioiu Mar 7, 2024
7a287d8
Skip test.
andreibancioiu Mar 7, 2024
f3d8afe
Drop -v on short tests.
andreibancioiu Mar 7, 2024
1459637
Fix tests for MacOS AMD64.
andreibancioiu Mar 7, 2024
bf0eb1c
Fix workflow.
andreibancioiu Mar 7, 2024
be72e67
Trial and error.
andreibancioiu Mar 7, 2024
42fd24b
Trial and error.
andreibancioiu Mar 7, 2024
56d45ce
Trial and error.
andreibancioiu Mar 7, 2024
eb15883
Re-enable runners.
andreibancioiu Mar 7, 2024
6f3afe2
- initialized 2 new metrics
iulianpascalau Mar 8, 2024
629ebc9
Use patched "libwasmer_darwin_amd64.dylib".
andreibancioiu Mar 8, 2024
6c2ee99
Merge branch 'rc/v1.7.0' into staking-for-direct-staked-nodes-part2
ssd04 Mar 8, 2024
2370e25
Verbose mode - to catch the failing test on MacOS.
andreibancioiu Mar 8, 2024
324f285
- fixed test
iulianpascalau Mar 8, 2024
3102cfc
Merge pull request #5984 from multiversx/staking-for-direct-staked-no…
ssd04 Mar 8, 2024
92d6776
Merge branch 'rc/v1.7.0' into apple-arm64
iulianpascalau Mar 11, 2024
afc35e9
Merge branch 'rc/v1.7.0' into fix-metrics-in-epoch-0
iulianpascalau Mar 11, 2024
16504d4
Skip test on Darwin AMD64.
andreibancioiu Mar 11, 2024
730349a
FIX: Warn for too low waiting list to debug
mariusmihaic Mar 11, 2024
a857a9a
Merge pull request #6034 from multiversx/warn-low-waiting-list-to-debug
mariusmihaic Mar 11, 2024
93b3c9d
added guardian as field on the transaction/pool by-sender request
sstanculeanu Mar 11, 2024
f2af5c6
Merge branch 'rc/v1.7.0' into apple-arm64
andreibancioiu Mar 11, 2024
fb6969c
Merge branch 'rc/v1.7.0' into fix-metrics-in-epoch-0
iulianpascalau Mar 11, 2024
e4c6e06
- added stake-unstake-unbond scenario
iulianpascalau Mar 11, 2024
9eefd27
Merge branch 'rc/v1.7.0' into stake-unstake-unbond-nodes-scenario
iulianpascalau Mar 11, 2024
8be1556
added more fields + wild card
sstanculeanu Mar 11, 2024
4040b05
more tests
sstanculeanu Mar 11, 2024
c07e4f2
improvement after review
sstanculeanu Mar 11, 2024
81f35e4
fixes after second review
sstanculeanu Mar 12, 2024
8e78d24
Merge pull request #6013 from multiversx/apple-arm64
andreibancioiu Mar 12, 2024
caa2b90
fix tests
sstanculeanu Mar 12, 2024
8306614
Merge branch 'rc/v1.7.0' into fix-metrics-in-epoch-0
iulianpascalau Mar 12, 2024
3a34a4a
Merge pull request #6032 from multiversx/fix-metrics-in-epoch-0
iulianpascalau Mar 12, 2024
6d6332c
fixes after review
sstanculeanu Mar 13, 2024
e7039aa
- finished scenarios
iulianpascalau Mar 13, 2024
a5fc39c
Merge branch 'rc/v1.7.0' into stake-unstake-unbond-nodes-scenario
iulianpascalau Mar 13, 2024
7a1e189
- fixes after review
iulianpascalau Mar 13, 2024
c596985
Merge remote-tracking branch 'origin/stake-unstake-unbond-nodes-scena…
iulianpascalau Mar 13, 2024
7e2ac98
- fixed test
iulianpascalau Mar 13, 2024
e7a18fa
remove all nodes from queue on the activation of staking v4.
sasurobert Mar 13, 2024
a8ce97c
- fixed linter issue
iulianpascalau Mar 13, 2024
935273d
Merge pull request #6043 from multiversx/fix-linter-issue-2024.03.13
iulianpascalau Mar 14, 2024
6d81fe8
- applied custom arch config tweaks on the chain simulator
iulianpascalau Mar 14, 2024
5e1569b
Merge pull request #5945 from multiversx/rc/v1.6.next1
iulianpascalau Mar 14, 2024
f93e5d8
fix after review
sasurobert Mar 14, 2024
c2f8310
starting unit tests
sasurobert Mar 14, 2024
b9cab5c
- duplicated code reduction
iulianpascalau Mar 14, 2024
025af9c
Merge remote-tracking branch 'origin/unStake-from-queue-at-activation…
iulianpascalau Mar 14, 2024
259dd4f
- fixed test
iulianpascalau Mar 14, 2024
1d25207
Merge pull request #6039 from multiversx/guardian_in_response_of_tx_p…
sstanculeanu Mar 14, 2024
90f14fb
starting unit tests
sasurobert Mar 14, 2024
1ebaf40
Merge remote-tracking branch 'origin/unStake-from-queue-at-activation…
sasurobert Mar 14, 2024
8e6e6f1
- uniformized the calling methods for integration tests
iulianpascalau Mar 14, 2024
5b75a43
fixed tests
sasurobert Mar 14, 2024
6cade7f
fixed tests
sasurobert Mar 14, 2024
0f84d98
- more skipped tests
iulianpascalau Mar 14, 2024
f484a82
- fixed some tests
iulianpascalau Mar 14, 2024
273c826
- fixed chain simulator's seldom failing tests
iulianpascalau Mar 15, 2024
515aa50
Merge pull request #6045 from multiversx/arch-config-tweaks-in-chain-…
iulianpascalau Mar 15, 2024
dc0da21
Merge branch 'rc/v1.7.0' into stake-unstake-unbond-nodes-scenario
iulianpascalau Mar 15, 2024
f94623c
FIX: Unit test
mariusmihaic Mar 15, 2024
d790058
FIX: Tests
mariusmihaic Mar 15, 2024
b5e8ac8
FIX: Tests
mariusmihaic Mar 15, 2024
9361efa
Merge pull request #6040 from multiversx/stake-unstake-unbond-nodes-s…
iulianpascalau Mar 15, 2024
5425cac
Merge branch 'rc/v1.7.0' into unStake-from-queue-at-activation
iulianpascalau Mar 15, 2024
d0d9ece
- set enable epoch
iulianpascalau Mar 19, 2024
9cf69bd
- renamed a test
iulianpascalau Mar 19, 2024
b55004a
- fixed tests
iulianpascalau Mar 19, 2024
790e71d
Merge branch 'rc/v1.7.0' into integration-tests-calling-refactor
sstanculeanu Mar 20, 2024
5c3ca8c
Merge pull request #6042 from multiversx/unStake-from-queue-at-activa…
iulianpascalau Mar 20, 2024
d2b1804
Merge branch 'rc/v1.7.0' into integration-tests-calling-refactor
iulianpascalau Mar 20, 2024
b70bd26
Merge pull request #6047 from multiversx/integration-tests-calling-re…
sstanculeanu Mar 20, 2024
4cc12d3
Merge branch 'master' of https://github.com/multiversx/mx-chain-go in…
sstanculeanu Mar 20, 2024
c3a1bf9
Merge pull request #6055 from multiversx/merge_master_into_rc170_2024…
sstanculeanu Mar 20, 2024
aeb4ade
Merge branch 'rc/v1.7.0' of https://github.com/multiversx/mx-chain-go…
sstanculeanu Mar 21, 2024
8c50313
updated deps after merge for rc/v1.7.next1
sstanculeanu Mar 21, 2024
6d93fee
fixed test failing on mac
sstanculeanu Mar 21, 2024
347ff4e
Merge pull request #6058 from multiversx/merge_rc170_into_rc17next1_2…
sstanculeanu Mar 22, 2024
9aa29c5
Merge remote-tracking branch 'origin/rc/v1.7.next1' into merge-rc/v1.…
BeniaminDrasovean Mar 28, 2024
9ff5a69
update go mod
BeniaminDrasovean Mar 28, 2024
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
  •  
  •  
  •  
23 changes: 16 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Build
name: Build and smoke test

on:
pull_request:
branches: [ master, rc/* ]
types: [opened, ready_for_review]
push:
branches: [master, rc/*]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest]
runs-on: [ubuntu-latest, macos-latest, macos-13-xlarge]
runs-on: ${{ matrix.runs-on }}
name: Build
steps:
Expand All @@ -28,12 +26,23 @@ jobs:
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

- name: Build
run: |
cd ${GITHUB_WORKSPACE}/cmd/node && go build .
cd ${GITHUB_WORKSPACE}/cmd/seednode && go build .
cd ${GITHUB_WORKSPACE}/cmd/keygenerator && go build .
cd ${GITHUB_WORKSPACE}/cmd/logviewer && go build .
cd ${GITHUB_WORKSPACE}/cmd/termui && go build .

# On GitHub, we only run the short tests, and we only run them for some OS/ARCH combinations.
- name: Run tests
run: |
GOOS=$(go env GOOS)

if [[ "$GOOS" == darwin ]]; then
go test -short -v ./...
fi
72 changes: 59 additions & 13 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest] # TODO add macos-latest when builds are possible on macs
runs-on: [ubuntu-latest, macos-latest, macos-13-xlarge]
runs-on: ${{ matrix.runs-on }}
name: Build
steps:
Expand Down Expand Up @@ -45,21 +45,23 @@ jobs:
GOOS=$(go env GOOS)
GOARCH=$(go env GOARCH)
GOPATH=$(go env GOPATH)
ARCHIVE="multiversx_""$APP_VER_SHORT""_""$GOOS""_""$GOARCH"".tgz"
ARCHIVE="multiversx_""$APP_VER_SHORT""_""$GOOS""_""$GOARCH"".zip"
BUILD_DIR=${GITHUB_WORKSPACE}/build
WASM_VERSION=$(cat go.mod | grep mx-chain-vm-v | sort -n | tail -n -1| awk -F '/' '{print$3}'| sed 's/ /@/g')
WASMER_DIR=${GOPATH}/pkg/mod/github.com/multiversx/${WASM_VERSION}/wasmer
VM_GO_VERSION=$(cat go.mod | grep mx-chain-vm-go | sort -n | tail -n -1| awk -F '/' '{print$3}'| sed 's/ /@/g')
VM_GO_DIR=${GOPATH}/pkg/mod/github.com/multiversx/${VM_GO_VERSION}

echo "GOOS=${GOOS}" >> $GITHUB_ENV
echo "GOARCH=${GOARCH}" >> $GITHUB_ENV
echo "ARCHIVE=${ARCHIVE}" >> $GITHUB_ENV
echo "BUILD_DIR=${BUILD_DIR}" >> $GITHUB_ENV
echo "WASMER_DIR=${WASMER_DIR}" >> $GITHUB_ENV
echo "VM_GO_VERSION=${VM_GO_VERSION}" >> $GITHUB_ENV
echo "VM_GO_DIR=${VM_GO_DIR}" >> $GITHUB_ENV

- name: Build
run: |
mkdir -p ${BUILD_DIR}
cd ${GITHUB_WORKSPACE}/cmd/node && go build -o "${BUILD_DIR}/node" -a -ldflags="-X main.appVersion=${APP_VER}"
cd ${GITHUB_WORKSPACE}/cmd/seednode && go build -o "${BUILD_DIR}/seednode" -a -ldflags="-X main.appVersion=${APP_VER}"
cd ${GITHUB_WORKSPACE}/cmd/keygenerator && go build -o "${BUILD_DIR}/keygenerator" -a -ldflags="-X main.appVersion=${APP_VER}"
cd ${GITHUB_WORKSPACE}/cmd/logviewer && go build -o "${BUILD_DIR}/logviewer" -a -ldflags="-X main.appVersion=${APP_VER}"
cd ${GITHUB_WORKSPACE}/cmd/termui && go build -o "${BUILD_DIR}/termui" -a -ldflags="-X main.appVersion=${APP_VER}"
Expand All @@ -69,24 +71,68 @@ jobs:
cd ${GITHUB_WORKSPACE}

if [[ "$GOOS" == linux && "$GOARCH" == amd64 ]]; then
cp -f ${WASMER_DIR}/libwasmer_linux_amd64.so ${BUILD_DIR};
cp --verbose --no-preserve=mode,ownership ${VM_GO_DIR}/wasmer2/libvmexeccapi.so ${BUILD_DIR}/libvmexeccapi.so
cp --verbose --no-preserve=mode,ownership ${VM_GO_DIR}/wasmer/libwasmer_linux_amd64.so ${BUILD_DIR}/libwasmer_linux_amd64.so
fi

# Actually, there's no runner for this combination (as of March 2024).
if [[ "$GOOS" == linux && "$GOARCH" == arm64 ]]; then
cp -f ${WASMER_DIR}/libwasmer_linux_arm64.so ${BUILD_DIR};
cp --verbose --no-preserve=mode,ownership ${VM_GO_DIR}/wasmer2/libvmexeccapi_arm.so ${BUILD_DIR}/libvmexeccapi_arm.so
cp --verbose --no-preserve=mode,ownership ${VM_GO_DIR}/wasmer/libwasmer_linux_arm64_shim.so ${BUILD_DIR}/libwasmer_linux_arm64_shim.so
fi

if [[ "$GOOS" == darwin && "$GOARCH" == amd64 ]]; then
cp -f ${WASMER_DIR}/libwasmer_darwin_amd64.dylib ${BUILD_DIR};
cp -v ${VM_GO_DIR}/wasmer2/libvmexeccapi.dylib ${BUILD_DIR}/libvmexeccapi.dylib
cp -v ${VM_GO_DIR}/wasmer/libwasmer_darwin_amd64.dylib ${BUILD_DIR}/libwasmer_darwin_amd64.dylib
fi

if [[ "$GOOS" == darwin && "$GOARCH" == arm64 ]]; then
cp -v ${VM_GO_DIR}/wasmer2/libvmexeccapi_arm.dylib ${BUILD_DIR}/libvmexeccapi_arm.dylib
cp -v ${VM_GO_DIR}/wasmer/libwasmer_darwin_arm64_shim.dylib ${BUILD_DIR}/libwasmer_darwin_arm64_shim.dylib
fi

cd ${BUILD_DIR}
tar czvf "${GITHUB_WORKSPACE}/${ARCHIVE}" *
stat ${GITHUB_WORKSPACE}/${ARCHIVE}
if [[ "$GOOS" == linux ]]; then
patchelf --set-rpath "\$ORIGIN" ${BUILD_DIR}/node
patchelf --set-rpath "\$ORIGIN" ${BUILD_DIR}/seednode

ldd ${BUILD_DIR}/node
ldd ${BUILD_DIR}/seednode
fi

if [[ "$GOOS" == darwin ]]; then
install_name_tool -add_rpath "@loader_path" ${BUILD_DIR}/node
install_name_tool -add_rpath "@loader_path" ${BUILD_DIR}/seednode

otool -L ${BUILD_DIR}/node
otool -L ${BUILD_DIR}/seednode
fi

- name: Smoke test
run: |
# Remove all downloaded Go packages, so that we can test the binary's independence from them (think of Wasmer libraries).
sudo rm -rf ${GOPATH}/pkg/mod

# Test binaries in different current directories.
cd ${BUILD_DIR} && ./node --version
cd ${GITHUB_WORKSPACE} && ${BUILD_DIR}/node --version
cd / && ${BUILD_DIR}/node --version

cd ${BUILD_DIR} && ./seednode --version
cd ${GITHUB_WORKSPACE} && ${BUILD_DIR}/seednode --version
cd / && ${BUILD_DIR}/seednode --version

- name: Package build output
run: |
sudo chown -R $USER: ${BUILD_DIR}
chmod -R 755 ${BUILD_DIR}
ls -al ${BUILD_DIR}
zip -r -j ${ARCHIVE} ${BUILD_DIR}

- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARCHIVE }}
path: ${{ github.workspace }}/${{ env.ARCHIVE }}
path: ${{ env.ARCHIVE }}
if-no-files-found: error

release:
Expand All @@ -113,6 +159,6 @@ jobs:
run: |
gh release create --draft --notes="Release draft from Github Actions" vNext
sleep 10
for i in $(find ./assets -name '*.tgz' -type f); do
for i in $(find ./assets -name '*.zip' -type f); do
gh release upload vNext ${i}
done
20 changes: 20 additions & 0 deletions api/groups/nodeGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const (
bootstrapStatusPath = "/bootstrapstatus"
connectedPeersRatingsPath = "/connected-peers-ratings"
managedKeys = "/managed-keys"
loadedKeys = "/loaded-keys"
managedKeysCount = "/managed-keys/count"
eligibleManagedKeys = "/managed-keys/eligible"
waitingManagedKeys = "/managed-keys/waiting"
Expand All @@ -44,6 +45,7 @@ type nodeFacadeHandler interface {
GetConnectedPeersRatingsOnMainNetwork() (string, error)
GetManagedKeysCount() int
GetManagedKeys() []string
GetLoadedKeys() []string
GetEligibleManagedKeys() ([]string, error)
GetWaitingManagedKeys() ([]string, error)
GetWaitingEpochsLeftForPublicKey(publicKey string) (uint32, error)
Expand Down Expand Up @@ -129,6 +131,11 @@ func NewNodeGroup(facade nodeFacadeHandler) (*nodeGroup, error) {
Method: http.MethodGet,
Handler: ng.managedKeys,
},
{
Path: loadedKeys,
Method: http.MethodGet,
Handler: ng.loadedKeys,
},
{
Path: eligibleManagedKeys,
Method: http.MethodGet,
Expand Down Expand Up @@ -411,6 +418,19 @@ func (ng *nodeGroup) managedKeys(c *gin.Context) {
)
}

// loadedKeys returns all keys loaded by the current node
func (ng *nodeGroup) loadedKeys(c *gin.Context) {
keys := ng.getFacade().GetLoadedKeys()
c.JSON(
http.StatusOK,
shared.GenericAPIResponse{
Data: gin.H{"loadedKeys": keys},
Error: "",
Code: shared.ReturnCodeSuccess,
},
)
}

// managedKeysEligible returns the node's eligible managed keys
func (ng *nodeGroup) managedKeysEligible(c *gin.Context) {
keys, err := ng.getFacade().GetEligibleManagedKeys()
Expand Down
38 changes: 38 additions & 0 deletions api/groups/nodeGroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ type managedKeysResponse struct {
generalResponse
}

type loadedKeysResponse struct {
Data struct {
LoadedKeys []string `json:"loadedKeys"`
} `json:"data"`
generalResponse
}

type managedEligibleKeysResponse struct {
Data struct {
Keys []string `json:"eligibleKeys"`
Expand Down Expand Up @@ -764,6 +771,36 @@ func TestNodeGroup_ManagedKeys(t *testing.T) {
assert.Equal(t, providedKeys, response.Data.ManagedKeys)
}

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

providedKeys := []string{
"pk1",
"pk2",
}
facade := mock.FacadeStub{
GetLoadedKeysCalled: func() []string {
return providedKeys
},
}

nodeGroup, err := groups.NewNodeGroup(&facade)
require.NoError(t, err)

ws := startWebServer(nodeGroup, "node", getNodeRoutesConfig())

req, _ := http.NewRequest("GET", "/node/loaded-keys", nil)
resp := httptest.NewRecorder()
ws.ServeHTTP(resp, req)

response := &loadedKeysResponse{}
loadResponse(resp.Body, response)

assert.Equal(t, http.StatusOK, resp.Code)
assert.Equal(t, "", response.Error)
assert.Equal(t, providedKeys, response.Data.LoadedKeys)
}

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

Expand Down Expand Up @@ -1046,6 +1083,7 @@ func getNodeRoutesConfig() config.ApiRoutesConfig {
{Name: "/connected-peers-ratings", Open: true},
{Name: "/managed-keys/count", Open: true},
{Name: "/managed-keys", Open: true},
{Name: "/loaded-keys", Open: true},
{Name: "/managed-keys/eligible", Open: true},
{Name: "/managed-keys/waiting", Open: true},
{Name: "/waiting-epochs-left/:key", Open: true},
Expand Down
4 changes: 4 additions & 0 deletions api/groups/transactionGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,10 @@ func validateQuery(sender, fields string, lastNonce, nonceGaps bool) error {
return errors.ErrEmptySenderToGetNonceGaps
}

if fields == "*" {
return nil
}

if fields != "" {
return validateFields(fields)
}
Expand Down
4 changes: 2 additions & 2 deletions api/groups/transactionGroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ func TestTransactionGroup_getTransactionsPool(t *testing.T) {
t.Run("fields + nonce gaps", testTxPoolWithInvalidQuery("?fields=sender,receiver&nonce-gaps=true", apiErrors.ErrFetchingNonceGapsCannotIncludeFields))
t.Run("fields has spaces", testTxPoolWithInvalidQuery("?fields=sender ,receiver", apiErrors.ErrInvalidFields))
t.Run("fields has numbers", testTxPoolWithInvalidQuery("?fields=sender1", apiErrors.ErrInvalidFields))
t.Run("fields + wild card", testTxPoolWithInvalidQuery("?fields=sender,receiver,*", apiErrors.ErrInvalidFields))
t.Run("GetTransactionsPool error should error", func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -816,8 +817,7 @@ func TestTransactionGroup_getTransactionsPool(t *testing.T) {
t.Parallel()

expectedSender := "sender"
providedFields := "sender,receiver"
query := "?by-sender=" + expectedSender + "&fields=" + providedFields
query := "?by-sender=" + expectedSender + "&fields=*"
expectedResp := &common.TransactionsPoolForSenderApiResponse{
Transactions: []common.Transaction{
{
Expand Down
37 changes: 36 additions & 1 deletion api/groups/validatorGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ import (
"github.com/multiversx/mx-chain-core-go/data/validator"
"github.com/multiversx/mx-chain-go/api/errors"
"github.com/multiversx/mx-chain-go/api/shared"
"github.com/multiversx/mx-chain-go/common"
)

const statisticsPath = "/statistics"
const (
statisticsPath = "/statistics"
auctionPath = "/auction"
)

// validatorFacadeHandler defines the methods to be implemented by a facade for validator requests
type validatorFacadeHandler interface {
ValidatorStatisticsApi() (map[string]*validator.ValidatorStatistics, error)
AuctionListApi() ([]*common.AuctionListValidatorAPIResponse, error)
IsInterfaceNil() bool
}

Expand All @@ -43,6 +48,11 @@ func NewValidatorGroup(facade validatorFacadeHandler) (*validatorGroup, error) {
Method: http.MethodGet,
Handler: ng.statistics,
},
{
Path: auctionPath,
Method: http.MethodGet,
Handler: ng.auction,
},
}
ng.endpoints = endpoints

Expand Down Expand Up @@ -74,6 +84,31 @@ func (vg *validatorGroup) statistics(c *gin.Context) {
)
}

// auction will return the list of the validators in the auction list
func (vg *validatorGroup) auction(c *gin.Context) {
valStats, err := vg.getFacade().AuctionListApi()
if err != nil {
c.JSON(
http.StatusBadRequest,
shared.GenericAPIResponse{
Data: nil,
Error: err.Error(),
Code: shared.ReturnCodeRequestError,
},
)
return
}

c.JSON(
http.StatusOK,
shared.GenericAPIResponse{
Data: gin.H{"auctionList": valStats},
Error: "",
Code: shared.ReturnCodeSuccess,
},
)
}

func (vg *validatorGroup) getFacade() validatorFacadeHandler {
vg.mutFacade.RLock()
defer vg.mutFacade.RUnlock()
Expand Down
Loading
Loading