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

Rc/v1.7.0 #5592

Merged
merged 1,677 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1677 commits
Select commit Hold shift + click to select a range
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
5688d9b
Merge branch 'feat/staking-v4' into staking-for-direct-staked-nodes
ssd04 Feb 25, 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
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
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
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
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
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
8d43578
- added staking v4 scenario 11
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
d8ac9b4
- fixed typo
iulianpascalau Mar 4, 2024
5501075
Merge pull request #6006 from multiversx/staking-v4-scenario-11
iulianpascalau 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
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
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
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
8e78d24
Merge pull request #6013 from multiversx/apple-arm64
andreibancioiu 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
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
6d81fe8
- applied custom arch config tweaks on the chain simulator
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
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
0a752e8
MX-15168: Merge remote-tracking branch 'origin/rc/v1.7.0' into MX-15168
dragos-rebegea Mar 16, 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
7a9b96a
- added more files in the overridable configs options
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
a9975e6
- fixed the configs changes in chain simulator
iulianpascalau Mar 20, 2024
1cb8995
Merge branch 'rc/v1.7.0' into extend-overridable-configs-files
iulianpascalau Mar 20, 2024
e7dac66
- exposed function ForceResetValidatorStatisticsCache in the chain si…
iulianpascalau Mar 22, 2024
f81d1df
enable host driver chain simulator
miiu96 Mar 22, 2024
bcccf59
Merge branch 'master' of https://github.com/multiversx/mx-chain-go in…
sstanculeanu Mar 27, 2024
d9f215f
Merge pull request #6067 from multiversx/merge_master_into_rc170_2024…
sstanculeanu Mar 27, 2024
01caab9
Merge branch 'rc/v1.7.0' into extend-overridable-configs-files
sstanculeanu Mar 27, 2024
3994d89
updated dependencies
sstanculeanu Mar 27, 2024
720648a
fix test processor node
miiu96 Mar 27, 2024
600a1bc
updated dependencies 2
sstanculeanu Mar 27, 2024
99ac996
updated indexer
sstanculeanu Mar 27, 2024
e06b2d5
small fix
miiu96 Mar 27, 2024
5b7797b
Merge pull request #6071 from multiversx/update_deps
sstanculeanu Mar 28, 2024
ad0082c
Merge branch 'rc/v1.7.0' into extend-overridable-configs-files
sstanculeanu Mar 28, 2024
f634eaa
Merge pull request #6054 from multiversx/extend-overridable-configs-f…
sstanculeanu Mar 28, 2024
ec6d1f3
Merge branch 'rc/v1.7.0' into host-driver-option-chain-simulator
miiu96 Mar 28, 2024
99c9793
fixed unstaked list on delegation when nodes are unstaked from queue
sasurobert Mar 29, 2024
6078204
fixed unstaked list on delegation when nodes are unstaked from queue
sasurobert Mar 29, 2024
1e79ea7
staking provider with node scenario
miiu96 Mar 29, 2024
bb090ce
fix linter
miiu96 Mar 29, 2024
1f2fae1
fixes after review
miiu96 Mar 29, 2024
028f6a3
extra check
miiu96 Mar 29, 2024
c227dd5
extend unit test and fixes
miiu96 Apr 2, 2024
fd7b7da
Merge pull request #6078 from multiversx/correct-unStakedList-after-e…
iulianpascalau Apr 2, 2024
b0e9ead
extend unit test and fixes
miiu96 Apr 2, 2024
3b90cf3
Merge branch 'rc/v1.7.0' into multiple-packages-integration-tests-cs
miiu96 Apr 2, 2024
5b6ccb9
fix test
miiu96 Apr 2, 2024
d9ef2e9
fixes
miiu96 Apr 2, 2024
7b5677b
fixes after review
miiu96 Apr 3, 2024
669f0e7
missing comments
miiu96 Apr 3, 2024
06f8e33
Merge branch 'rc/v1.7.0' into host-driver-option-chain-simulator
miiu96 Apr 3, 2024
1bb58ac
Merge pull request #6061 from multiversx/host-driver-option-chain-sim…
iulianpascalau Apr 3, 2024
46636b6
Merge branch 'rc/v1.7.0' into multiple-packages-integration-tests-cs
sstanculeanu Apr 3, 2024
56b13a8
- fixed backwards compatibility problem
iulianpascalau Apr 3, 2024
ad0bc8e
Merge pull request #6092 from multiversx/multiple-packages-integratio…
iulianpascalau Apr 3, 2024
d21e61d
Merge branch 'rc/v1.7.0' into fix-backwards-compatibility-problem-202…
iulianpascalau Apr 3, 2024
eb9bd65
fix backwards compatibility issues in legacySystemSCs
AdoAdoAdo Apr 4, 2024
4a4000f
only return error if not replaced
AdoAdoAdo Apr 4, 2024
e932f1b
rename local variable
AdoAdoAdo Apr 4, 2024
bd41b67
- added block timestamp + scripts update for the round duration
iulianpascalau Apr 8, 2024
760a767
FIX: Possible backwards incompatibilities fixes
mariusmihaic Apr 8, 2024
df4da69
fixes after review
AdoAdoAdo Apr 10, 2024
be60cce
Merge pull request #6105 from multiversx/backward-incompatibility-fix…
AdoAdoAdo Apr 10, 2024
ea7bf27
Merge pull request #6108 from multiversx/add-block-timestamp-in-netwo…
sstanculeanu Apr 11, 2024
1658254
Merge branch 'rc/v1.7.0' into fix-backwards-compatibility-problem-202…
sstanculeanu Apr 11, 2024
a47a099
Merge branch 'fix-backwards-compatibility-problem-2024.04.03' into MX…
mariusmihaic Apr 11, 2024
c655353
FEAT: Extra safety measure checks
mariusmihaic Apr 11, 2024
e9c876a
FEAT: Distribute to waiting from auction based on leaving nodes
mariusmihaic Apr 11, 2024
d7b665d
FEAT: Test + compute forced to stay
mariusmihaic Apr 11, 2024
f8151b1
CLN: AddNewValidator to trie
mariusmihaic Apr 12, 2024
86445c9
CLN: auctionListSelector.go
mariusmihaic Apr 12, 2024
a320744
FEAT: Integration tests with more leaving than to shuffle
mariusmihaic Apr 12, 2024
c332095
Merge pull request #6104 from multiversx/fix-backwards-compatibility-…
gabi-vuls Apr 12, 2024
ddd8cdb
FEAT: Integration tests chain simulator with leaving active nodes
mariusmihaic Apr 12, 2024
4626f80
CLN: Comm
mariusmihaic Apr 12, 2024
f5e038b
Merge branch 'rc/v1.7.0' into MX-15351-backwards-compat-issues
mariusmihaic Apr 12, 2024
e1d0f11
FIX: Remove StakingQueueEnabled flag
mariusmihaic Apr 12, 2024
fe51ca6
Merge branch 'MX-15351-backwards-compat-issues' into MX-15360-waiting…
mariusmihaic Apr 12, 2024
560b15b
Merge pull request #6110 from multiversx/MX-15351-backwards-compat-is…
mariusmihaic Apr 16, 2024
4dbc163
Merge branch 'rc/v1.7.0' into MX-15360-waiting-list-distribution-leav…
mariusmihaic Apr 16, 2024
5258bf0
CLN: Test + fix linter
mariusmihaic Apr 16, 2024
652ef7a
update x/crypto to v0.22.0
raduchis Apr 19, 2024
1030bcd
add withKeys option on account
raduchis Apr 19, 2024
ddb907c
- fixed the initialization of the chain simulator when working with 0…
iulianpascalau Apr 19, 2024
bcd6efc
refactored withKeys
raduchis Apr 22, 2024
ec6236c
- added RemoveAccounts feature on the chain simulator
iulianpascalau Apr 23, 2024
4cae25d
added test for withKeys error
raduchis Apr 23, 2024
e4338c6
- removed useless empty line
iulianpascalau Apr 23, 2024
5a774a5
fix after review
raduchis Apr 23, 2024
a9347e3
MX-15168: Merge remote-tracking branch 'origin/rc/v1.7.0' into MX-15168
dragos-rebegea Apr 23, 2024
b0f7a5c
Merge pull request #6114 from multiversx/MX-15360-waiting-list-distri…
mariusmihaic Apr 23, 2024
a32cde0
Merge branch 'rc/v1.7.0' into fixed-chain-simulator-zero-epoch-init
iulianpascalau Apr 23, 2024
3531379
refactored and fixed test
raduchis Apr 23, 2024
6bb1f8a
Merge branch 'rc/v1.7.0' into MX-15168
dragos-rebegea Apr 23, 2024
74c90c5
Merge branch 'rc/v1.7.0' into MX-15381-add-withKeys-on-api-address
raduchis Apr 23, 2024
813d97a
Merge branch 'rc/v1.7.0' into update-x-crypto-to-0.22
raduchis Apr 23, 2024
144a039
downgraded to v0.21.0
raduchis Apr 23, 2024
0886067
Merge remote-tracking branch 'origin/update-x-crypto-to-0.22' into up…
raduchis Apr 23, 2024
11f6f05
Merge pull request #5953 from multiversx/MX-15168
dragos-rebegea Apr 24, 2024
60e9e86
Merge branch 'rc/v1.7.0' into fixed-chain-simulator-zero-epoch-init
mariusmihaic Apr 24, 2024
e8f1b3e
Merge branch 'rc/v1.7.0' into MX-15381-add-withKeys-on-api-address
mariusmihaic Apr 24, 2024
8c93450
Merge branch 'rc/v1.7.0' into update-x-crypto-to-0.22
gabi-vuls Apr 24, 2024
884c593
Merge pull request #6122 from multiversx/update-x-crypto-to-0.22
miiu96 Apr 24, 2024
ebb386a
Merge branch 'rc/v1.7.0' into fixed-chain-simulator-zero-epoch-init
iulianpascalau Apr 24, 2024
855f68b
Merge branch 'rc/v1.7.0' into MX-15381-add-withKeys-on-api-address
raduchis Apr 24, 2024
e5c9201
Merge pull request #6126 from multiversx/fixed-chain-simulator-zero-e…
miiu96 Apr 24, 2024
c0a6756
Merge branch 'rc/v1.7.0' into MX-15381-add-withKeys-on-api-address
miiu96 Apr 24, 2024
52a19be
Merge pull request #6123 from multiversx/MX-15381-add-withKeys-on-api…
miiu96 Apr 24, 2024
bef6592
- fixed the genesis flag
iulianpascalau Apr 25, 2024
66e5d41
- fixed a chain simulator test
iulianpascalau Apr 25, 2024
8732346
Merge pull request #6141 from multiversx/fix-genesis-flags-2024.04.25
miiu96 Apr 25, 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
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,36 @@ sudo cp protoc-gen-gogoslick /usr/bin/

Done

## Running p2p Prometheus dashboards
1. Start the node with `--p2p-prometheus-metrics` flag. This exposes a metrics collection at http://localhost:8080/debug/metrics/prometheus (port defined by -rest-api-interface flag, default 8080)
2. Clone libp2p repository: `git clone https://github.com/libp2p/go-libp2p`
3. `cd go-libp2p/dasboards/swarm` and under the
```
"templating": {
"list": [
```
section, add the following lines:
```
{
"hide": 0,
"label": "datasource",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
```
(this step will be removed once it will be fixed on libp2p)
4. `cd ..` to dashboards directory and update the port of `host.docker.internal` from `prometheus.yml` to node's Rest API port(default `8080`)
5. From this directory, run the following docker compose command:
```
sudo docker compose -f docker-compose.base.yml -f docker-compose-linux.yml up --force-recreate
```
**Note:** If you choose to install the new Docker version manually, please make sure that installation is done for all users of the system. Otherwise, the docker command will fail because it needs the super-user privileges.
6. The preconfigured dashboards should be now available on Grafana at http://localhost:3000/dashboards

## Progress

### Done
Expand Down
3 changes: 3 additions & 0 deletions api/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,6 @@ var ErrGetEligibleManagedKeys = errors.New("error getting the eligible managed k

// ErrGetWaitingManagedKeys signals that an error occurred while getting the waiting managed keys
var ErrGetWaitingManagedKeys = errors.New("error getting the waiting managed keys")

// ErrGetWaitingEpochsLeftForPublicKey signals that an error occurred while getting the waiting epochs left for public key
var ErrGetWaitingEpochsLeftForPublicKey = errors.New("error getting the waiting epochs left for public key")
7 changes: 6 additions & 1 deletion api/gin/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ func TestCommon_checkArgs(t *testing.T) {
err := checkArgs(args)
require.True(t, errors.Is(err, apiErrors.ErrCannotCreateGinWebServer))

args.Facade, err = initial.NewInitialNodeFacade("api interface", false, &testscommon.StatusMetricsStub{})
args.Facade, err = initial.NewInitialNodeFacade(initial.ArgInitialNodeFacade{
ApiInterface: "api interface",
PprofEnabled: false,
P2PPrometheusMetricsEnabled: false,
StatusMetricsHandler: &testscommon.StatusMetricsStub{},
})
require.NoError(t, err)
err = checkArgs(args)
require.NoError(t, err)
Expand Down
7 changes: 7 additions & 0 deletions api/gin/webServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ import (
"github.com/multiversx/mx-chain-go/config"
"github.com/multiversx/mx-chain-go/facade"
logger "github.com/multiversx/mx-chain-logger-go"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

var log = logger.GetOrCreate("api/gin")

const prometheusMetricsRoute = "/debug/metrics/prometheus"

// ArgsNewWebServer holds the arguments needed to create a new instance of webServer
type ArgsNewWebServer struct {
Facade shared.FacadeHandler
Expand Down Expand Up @@ -227,6 +230,10 @@ func (ws *webServer) registerRoutes(ginRouter *gin.Engine) {
if ws.facade.PprofEnabled() {
pprof.Register(ginRouter)
}

if ws.facade.P2PPrometheusMetricsEnabled() {
ginRouter.GET(prometheusMetricsRoute, gin.WrapH(promhttp.Handler()))
}
}

func (ws *webServer) createMiddlewareLimiters() ([]shared.MiddlewareProcessor, error) {
Expand Down
9 changes: 9 additions & 0 deletions api/groups/addressGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (
urlParamBlockHash = "blockHash"
urlParamBlockRootHash = "blockRootHash"
urlParamHintEpoch = "hintEpoch"
urlParamWithKeys = "withKeys"
)

// addressFacadeHandler defines the methods to be implemented by a facade for handling address requests
Expand Down Expand Up @@ -185,6 +186,14 @@ func (ag *addressGroup) getAccount(c *gin.Context) {
return
}

withKeys, err := parseBoolUrlParam(c, urlParamWithKeys)
if err != nil {
shared.RespondWithValidationError(c, errors.ErrCouldNotGetAccount, err)
return
}

options.WithKeys = withKeys

accountResponse, blockInfo, err := ag.getFacade().GetAccount(addr, options)
if err != nil {
shared.RespondWithInternalError(c, errors.ErrCouldNotGetAccount, err)
Expand Down
19 changes: 19 additions & 0 deletions api/groups/nodeGroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
managedKeysCount = "/managed-keys/count"
eligibleManagedKeys = "/managed-keys/eligible"
waitingManagedKeys = "/managed-keys/waiting"
epochsLeftInWaiting = "/waiting-epochs-left/:key"
)

// nodeFacadeHandler defines the methods to be implemented by a facade for node requests
Expand All @@ -47,6 +48,7 @@ type nodeFacadeHandler interface {
GetLoadedKeys() []string
GetEligibleManagedKeys() ([]string, error)
GetWaitingManagedKeys() ([]string, error)
GetWaitingEpochsLeftForPublicKey(publicKey string) (uint32, error)
IsInterfaceNil() bool
}

Expand Down Expand Up @@ -144,6 +146,11 @@ func NewNodeGroup(facade nodeFacadeHandler) (*nodeGroup, error) {
Method: http.MethodGet,
Handler: ng.managedKeysWaiting,
},
{
Path: epochsLeftInWaiting,
Method: http.MethodGet,
Handler: ng.waitingEpochsLeft,
},
}
ng.endpoints = endpoints

Expand Down Expand Up @@ -460,6 +467,18 @@ func (ng *nodeGroup) managedKeysWaiting(c *gin.Context) {
)
}

// waitingEpochsLeft returns the number of epochs left for the public key until it becomes eligible
func (ng *nodeGroup) waitingEpochsLeft(c *gin.Context) {
publicKey := c.Param("key")
epochsLeft, err := ng.getFacade().GetWaitingEpochsLeftForPublicKey(publicKey)
if err != nil {
shared.RespondWithInternalError(c, errors.ErrGetWaitingEpochsLeftForPublicKey, err)
return
}

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

func (ng *nodeGroup) getFacade() nodeFacadeHandler {
ng.mutFacade.RLock()
defer ng.mutFacade.RUnlock()
Expand Down
Loading
Loading