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

Sync stable-cadence branch with master #5260

Merged
merged 484 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
484 commits
Select commit Hold shift + click to select a range
ddb0519
Merge branch 'master' into janez/evm-addres-storage-limit-exception
janezpodhostnik Jan 2, 2024
05fbf98
add more tests
janezpodhostnik Jan 2, 2024
bd7e919
remove empty payload
janezpodhostnik Jan 2, 2024
8912a6d
change contract code migration
janezpodhostnik Jan 2, 2024
ecb340a
wip refactors gossipsub spam records cache
yhassanzadeh13 Jan 2, 2024
dd49925
fixes TestGossipSubSpamRecordCache_Adjust_Preprocess_Error
yhassanzadeh13 Jan 3, 2024
d1998b1
[Access] Log script exec mismatches as error
peterargue Jan 3, 2024
6b1e0a4
fixes TestGossipSubSpamRecordCache_ByValue
yhassanzadeh13 Jan 3, 2024
d4f2646
apply PR feedbacks
ramtinms Jan 3, 2024
fe23319
fixes TestGossipSubSpamRecordCache_Get_With_Preprocessors
yhassanzadeh13 Jan 3, 2024
3ec9e32
fixes TestGossipSubSpamRecordCache_Get_Preprocessor_Error
yhassanzadeh13 Jan 3, 2024
efd5a8d
fixes TestGossipSubSpamRecordCache_Get_Without_Preprocessors
yhassanzadeh13 Jan 3, 2024
245d0c0
fixes TestGossipSubSpamRecordCache_Duplicate_Adjust_Sequential
yhassanzadeh13 Jan 3, 2024
cfa2e61
revises comments
yhassanzadeh13 Jan 3, 2024
01fa7ee
only check the cache for get code
ramtinms Jan 3, 2024
dd63065
wip fixing atomic adjust with GossipSubSpamRecordCache
yhassanzadeh13 Jan 3, 2024
b5cd226
improvements to collections
ramtinms Jan 3, 2024
47be287
lazy allocate slot collections
ramtinms Jan 3, 2024
88e0f64
Merge branch 'master' into ramtin/5129-new-evm-stateDB-part1
ramtinms Jan 3, 2024
b0df046
fix lint
ramtinms Jan 3, 2024
db791d1
Merge branch 'ramtin/5129-new-evm-stateDB-part1' of github.com:onflow…
ramtinms Jan 3, 2024
b8a2fd2
add long silence period
kc1116 Jan 3, 2024
43cda46
Merge branch 'ramtin/5129-new-evm-stateDB-part1' into ramtin/5129-new…
ramtinms Jan 3, 2024
3983134
PR feedbacks
ramtinms Jan 3, 2024
7826821
fixes unicast config cache tests
yhassanzadeh13 Jan 3, 2024
17e97d1
wip
yhassanzadeh13 Jan 3, 2024
b00521c
Merge branch 'master' into khalil/4979-scoring-registry-startup-silen…
kc1116 Jan 3, 2024
3e45ea0
update registry tests
kc1116 Jan 3, 2024
7a570cb
update logic to handle creation after destruction
ramtinms Jan 3, 2024
d33c546
Merge branch 'ramtin/5129-new-evm-stateDB-part2' into ramtin/5129-new…
ramtinms Jan 3, 2024
fb0ab2a
handle case for delete and create
ramtinms Jan 3, 2024
8f58da6
dont store empty values
ramtinms Jan 3, 2024
893baeb
Merge branch 'ramtin/5129-new-evm-stateDB-part1' into ramtin/5129-new…
ramtinms Jan 3, 2024
145ce71
Merge branch 'ramtin/5129-new-evm-stateDB-part2' into ramtin/5129-new…
ramtinms Jan 3, 2024
5625564
minor fixes
ramtinms Jan 3, 2024
a45a4b6
lint fix
ramtinms Jan 3, 2024
61a9904
doc update
ramtinms Jan 3, 2024
aa0f58e
hot fix
ramtinms Jan 3, 2024
31b7394
Merge branch 'ramtin/5129-new-evm-stateDB-part3' into ramtin/5129-new…
ramtinms Jan 3, 2024
90e0c27
fix tests
ramtinms Jan 3, 2024
a9a2989
fix test
ramtinms Jan 3, 2024
b05b5a3
update geth version
ramtinms Jan 4, 2024
497b593
fix default tx context
ramtinms Jan 4, 2024
46dc4ce
apply PR feedbacks
ramtinms Jan 4, 2024
eeff3f3
Merge pull request #5166 from onflow/ramtin/5129-new-evm-stateDB-part1
ramtinms Jan 4, 2024
16bcb53
lint fix
ramtinms Jan 4, 2024
893b6be
Merge branch 'master' into ramtin/5129-new-evm-stateDB-part2
ramtinms Jan 4, 2024
d163786
minor improvements
ramtinms Jan 4, 2024
38a2259
fix tests
ramtinms Jan 4, 2024
271af50
Update config_test.go
kc1116 Jan 4, 2024
d8104dc
fix tests and flags
kc1116 Jan 4, 2024
521e58f
adds atomic adjust-with-init and get-with-init to backdata
yhassanzadeh13 Jan 4, 2024
8046a00
renames get with init
yhassanzadeh13 Jan 4, 2024
321858d
renames a method
yhassanzadeh13 Jan 4, 2024
6f452a1
fixes unicast config cache
yhassanzadeh13 Jan 4, 2024
06f2dd5
fixes comments
yhassanzadeh13 Jan 4, 2024
ffddae1
Merge pull request #5194 from onflow/petera/access-script-compare-log…
peterargue Jan 4, 2024
5a2d24e
implements subscription cache atomic
yhassanzadeh13 Jan 4, 2024
e53a728
makes app specific score cache atomic
yhassanzadeh13 Jan 4, 2024
4ad9138
apply PR feedbacks
ramtinms Jan 4, 2024
b92eacb
fixes disallowlist cache atomic
yhassanzadeh13 Jan 4, 2024
f4e9744
fixes record config cache atomic
yhassanzadeh13 Jan 4, 2024
e12038e
Merge branch 'ramtin/5129-new-evm-stateDB-part3' into ramtin/5129-new…
ramtinms Jan 4, 2024
bc0cba2
revert unwanted changes
ramtinms Jan 4, 2024
2b90d12
makes internal inspector cache atomic
yhassanzadeh13 Jan 4, 2024
5fb2881
generates mocks
yhassanzadeh13 Jan 4, 2024
ac8b622
Merge branch 'master' into ramtin/5129-new-evm-stateDB-part2
ramtinms Jan 4, 2024
d1b7957
fixes gossipsub spam records cache atomic
yhassanzadeh13 Jan 4, 2024
c779e48
fixes alsp spam record cache atomic
yhassanzadeh13 Jan 4, 2024
cae9ee8
generates mocks
yhassanzadeh13 Jan 4, 2024
0949404
fixes lint
yhassanzadeh13 Jan 4, 2024
7555376
fixes lint
yhassanzadeh13 Jan 4, 2024
9017336
adds TestMapBackData_AdjustWithInit
yhassanzadeh13 Jan 4, 2024
e613e85
simplify creat logic
ramtinms Jan 4, 2024
f07d721
apply PR feedback
ramtinms Jan 4, 2024
f5d2673
add a condition
ramtinms Jan 5, 2024
72a15a2
fix test
ramtinms Jan 5, 2024
6aba145
add config and cli flags for all score option configurations
kc1116 Jan 5, 2024
036c370
update suicide logic
ramtinms Jan 5, 2024
e9171b4
Merge branch 'ramtin/5129-new-evm-stateDB-part2' into ramtin/5129-new…
ramtinms Jan 5, 2024
ae9ef2e
apply PR feedbacks
ramtinms Jan 5, 2024
91c7f08
Merge pull request #5167 from onflow/ramtin/5129-new-evm-stateDB-part2
ramtinms Jan 5, 2024
6790065
Merge branch 'master' into ramtin/5129-new-evm-stateDB-part3
ramtinms Jan 5, 2024
a23bc7d
Merge branch 'ramtin/5129-new-evm-stateDB-part3' into ramtin/5129-new…
ramtinms Jan 5, 2024
fe783e3
no maps use
ramtinms Jan 5, 2024
bd17a8a
fix lint issue
ramtinms Jan 5, 2024
e95f776
update version
dsainati1 Jan 5, 2024
b7d6140
Merge remote-tracking branch 'origin/master' into yahya/temp-fix-atom…
yhassanzadeh13 Jan 5, 2024
fe65ef3
extends tests
yhassanzadeh13 Jan 5, 2024
17f2170
adds TestArrayBackData_AdjustWitInit
yhassanzadeh13 Jan 5, 2024
1d69e88
Update flags.go
kc1116 Jan 5, 2024
66f10a7
adds TestArrayBackData_GetWithInit
yhassanzadeh13 Jan 5, 2024
557ced8
adds adjustDone.Add(1)
yhassanzadeh13 Jan 5, 2024
7af2b9e
adds TestBackend_AdjustWithInit_Concurrent_MapBased
yhassanzadeh13 Jan 5, 2024
1166bfc
adds TestBackend_GetWithInit_Concurrent_HeroCache
yhassanzadeh13 Jan 5, 2024
1b64896
adds TestBackend_GetWithInit_Concurrent_MapBased
yhassanzadeh13 Jan 5, 2024
b205cc7
fixes the tests
yhassanzadeh13 Jan 5, 2024
214abde
lint fix
yhassanzadeh13 Jan 5, 2024
d247406
cleans up
yhassanzadeh13 Jan 5, 2024
23af494
Update cmd/util/ledger/migrations/change_contract_code_migration_test.go
turbolent Jan 5, 2024
20dcb77
Update cmd/util/ledger/migrations/change_contract_code_migration_test.go
turbolent Jan 5, 2024
6459232
Merge pull request #5168 from onflow/ramtin/5129-new-evm-stateDB-part3
ramtinms Jan 5, 2024
f617f0a
add system contract changes
turbolent Jan 5, 2024
e623391
refactor checkers
zhangchiqing Dec 22, 2023
e6ff36c
use defer to stop ticker
zhangchiqing Dec 22, 2023
bbbcded
fix lint
zhangchiqing Dec 22, 2023
78e24b6
Apply suggestions from code review
zhangchiqing Jan 5, 2024
5a0e698
address review comments
zhangchiqing Jan 5, 2024
911976c
add tests for checker engine core
zhangchiqing Jan 5, 2024
836c81c
add flag to enable / disable checker
zhangchiqing Jan 5, 2024
57d2266
Merge branch 'master' into yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 5, 2024
ca51594
Merge branch 'master' into ramtin/5129-new-evm-stateDB-part4
ramtinms Jan 5, 2024
5aa1c8f
lint fix
ramtinms Jan 6, 2024
ce3e11d
Merge branch 'ramtin/5129-new-evm-stateDB-part4' of github.com:onflow…
ramtinms Jan 6, 2024
b81d545
move registry constants to config file
kc1116 Jan 6, 2024
1ef9f1b
relax behaviour penalty configs
kc1116 Jan 6, 2024
cb7c070
Update default-config.yml
kc1116 Jan 6, 2024
c572fdf
fix lazy allocation
ramtinms Jan 6, 2024
f3bb713
Merge pull request #5169 from onflow/ramtin/5129-new-evm-stateDB-part4
ramtinms Jan 6, 2024
662e5ad
Merge branch 'master' into ramtin/5178-update-geth-version
ramtinms Jan 6, 2024
178cc86
fix create method
ramtinms Jan 6, 2024
02b5725
small fix
ramtinms Jan 6, 2024
24d30dc
update to flow-go-sdk v0.41.18
dsainati1 Jan 8, 2024
5154a70
Merge branch 'master' of github.com:onflow/flow-go into sainati/caden…
dsainati1 Jan 8, 2024
e2d6831
Merge pull request #5184 from onflow/leo/checker-engine
zhangchiqing Jan 8, 2024
73bbc9d
revert mock changes
dsainati1 Jan 8, 2024
11f865d
Merge branch 'master' into yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 8, 2024
c6ee697
add missing ScoreParamsKey to score option flags
kc1116 Jan 8, 2024
f850c19
Merge branch 'master' into khalil/6923-configurable-scoring-parameters
kc1116 Jan 8, 2024
1833916
add elementsmatch to test
janezpodhostnik Jan 8, 2024
61b47f4
parallelize sub-tests
turbolent Jan 8, 2024
3cc3c47
clean up
turbolent Jan 8, 2024
41a2e61
make contracts map concurrency safe
turbolent Jan 8, 2024
8fcaaa8
Update score_registry.go
kc1116 Jan 8, 2024
458695c
Merge branch 'khalil/6923-configurable-scoring-parameters' of github.…
kc1116 Jan 8, 2024
e3546cb
refactor helper function
turbolent Jan 8, 2024
525390a
improve naming
turbolent Jan 8, 2024
f08d0a7
Merge branch 'khalil/6923-configurable-scoring-parameters' into khali…
kc1116 Jan 8, 2024
68a9326
update branch with updated scoring option configs
kc1116 Jan 8, 2024
a98f4c2
fix lint
janezpodhostnik Jan 8, 2024
f413638
Merge pull request #5128 from onflow/janez/migration-infrastructure
janezpodhostnik Jan 8, 2024
d06de96
Merge pull request #5106 from onflow/janez/evm-addres-storage-limit-e…
janezpodhostnik Jan 8, 2024
996820f
Merge branch 'master' into janez/deduplicate-contract-names
janezpodhostnik Jan 8, 2024
c71114e
Merge branch 'master' into janez/deduplicate-contract-names
janezpodhostnik Jan 8, 2024
e7e4a4f
add more contracts
turbolent Jan 8, 2024
07f3a41
[Access] Optimize header ID calculation in get events
peterargue Jan 4, 2024
c1fdaa8
Merge pull request #5196 from onflow/ramtin/5178-update-geth-version
ramtinms Jan 8, 2024
815ae74
Merge branch 'master' into ramtin/fix-evm-statedb-create-func
ramtinms Jan 9, 2024
e7ffe88
comment typo
Jan 9, 2024
90700a8
fix comments
Jan 9, 2024
60c0ece
Merge pull request #5143 from onflow/janez/deduplicate-contract-names
janezpodhostnik Jan 9, 2024
120ef8f
Update EVM test
janezpodhostnik Jan 9, 2024
de63803
Merge pull request #5205 from onflow/sainati/cadence-0.42.7
dsainati1 Jan 9, 2024
f4ee5de
add test to check for evm error
Jan 9, 2024
86d48b6
improve test to check whether error is not internal
Jan 9, 2024
998b3cc
change evm error is it satisfies the user error and embeds coded error
Jan 9, 2024
a8e4edd
remove unneded workaround
Jan 9, 2024
398986d
remove unneded workaround
Jan 9, 2024
2e1c4de
Merge branch 'master' into yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 9, 2024
0bcb7c9
Add the EVM.encodeABIWithSignature and EVM.decodeABIWithSignature fun…
m-Peter Dec 30, 2023
205d50a
Merge pull request #5189 from m-Peter/abi-encoding-decoding-function-…
franklywatson Jan 9, 2024
0c9615a
add suggested unittest
peterargue Jan 9, 2024
8fbd4a0
expand tests
peterargue Jan 9, 2024
1d5c8e0
Merge branch 'master' into petera/fix-without-netgo-semver
peterargue Jan 9, 2024
c5cf716
Merge pull request #5214 from onflow/petera/optimize-access-events-he…
peterargue Jan 9, 2024
c981273
Merge branch 'master' into yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 9, 2024
ddb3c7d
Merge branch 'master' into ramtin/fix-evm-statedb-create-func
ramtinms Jan 9, 2024
cf13892
refactors adjust with init on hashicorp
yhassanzadeh13 Jan 9, 2024
d7045d8
fixes peek or add utilization
yhassanzadeh13 Jan 9, 2024
cb735a1
Merge branch 'master' into yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 10, 2024
e5511da
add tests for internal evm errors
Jan 10, 2024
5c3d62f
fix format
Jan 10, 2024
78d66c5
adds readme
yhassanzadeh13 Jan 10, 2024
c6fda80
Merge branch 'yahya/temp-fix-atomic-adjust' of github.com:onflow/flow…
yhassanzadeh13 Jan 10, 2024
644cc14
revises the readme
yhassanzadeh13 Jan 10, 2024
cbce910
adds sanity check for the returned value by adjust-and-init in tests
yhassanzadeh13 Jan 10, 2024
913db0c
switches letter cases
yhassanzadeh13 Jan 10, 2024
b384458
Merge pull request #5206 from onflow/yahya/temp-fix-atomic-adjust
yhassanzadeh13 Jan 10, 2024
72c9210
Merge branch 'master' into janez/change-contract-code-migration
turbolent Jan 11, 2024
6a9a32c
go fmt
turbolent Jan 11, 2024
1c7fa64
handle error
turbolent Jan 11, 2024
1482187
go mod tidy
turbolent Jan 11, 2024
d908c60
Merge branch 'master' into ramtin/fix-evm-statedb-create-func
ramtinms Jan 11, 2024
127021c
add mock generation for storage snapshot
Jan 11, 2024
db33d33
add mock for storage snapshot
Jan 11, 2024
6119064
fix the tests to use mocks
Jan 11, 2024
e2c455f
import lint
Jan 11, 2024
7c2f987
Merge pull request #5212 from onflow/ramtin/fix-evm-statedb-create-func
ramtinms Jan 12, 2024
f51fac9
rename ScoreOption -> InternalPeerScoring
kc1116 Jan 12, 2024
14b3dd7
trim godocs remove notions of "set . . ."
kc1116 Jan 12, 2024
dd0b5ef
shorten flag names where applicable
kc1116 Jan 12, 2024
73cf1b1
remove redundant GossipSubCtrlMsgPenaltyValue
kc1116 Jan 12, 2024
1393487
rename network/p2p/config/score_option.go -> network/p2p/config/peer_…
kc1116 Jan 12, 2024
6c6a7f6
Merge pull request #5216 from onflow/gregor/evm/runtime-error-handling
sideninja Jan 12, 2024
aa1626d
refactor configs with into 2 top level fields internal and protocol
kc1116 Jan 12, 2024
6a0676a
remove DecayFunctionConfig
kc1116 Jan 12, 2024
933acf4
use p2pconfig.ApplicationSpecificScoreParameters directly
kc1116 Jan 12, 2024
872583b
Update gossipSubScoreTracer_test.go
kc1116 Jan 12, 2024
9350765
Merge branch 'master' into khalil/6923-configurable-scoring-parameters
kc1116 Jan 12, 2024
c209683
fix lint
kc1116 Jan 12, 2024
b112554
remove redundant decay interval
kc1116 Jan 12, 2024
5a628fa
add empty hash and random packages
Jan 12, 2024
fa090c0
quarantine flakey test TestSubscriptionValidator_Integration
kc1116 Jan 12, 2024
47e239c
Merge pull request #5210 from onflow/khalil/6923-configurable-scoring…
kc1116 Jan 13, 2024
3f6c4c1
Merge pull request #5239 from onflow/tarak/revert-crypto-hash-random
tarakby Jan 16, 2024
401f589
update dependencies and tidy
Jan 16, 2024
cd1f338
merge master
Jan 16, 2024
eaa1f3f
fix engine unit test state hashes
Jan 16, 2024
fa28024
update genesis state
Jan 16, 2024
f040031
Merge pull request #5157 from onflow/petera/fix-without-netgo-semver
peterargue Jan 16, 2024
5602784
update core-contract version in emulator
Jan 16, 2024
feb74a3
use epoch random source of correct length
Jan 16, 2024
e25bd0b
remove module.Local from ingestion engine
zhangchiqing Jan 16, 2024
6d2d169
Merge branch 'master' into khalil/4979-scoring-registry-startup-silen…
kc1116 Jan 17, 2024
042274f
update flags
kc1116 Jan 17, 2024
dd4e82c
Merge branch 'master' into khalil/6664-invalid-control-message-weight
kc1116 Jan 17, 2024
a357134
Update model/convert/service_event_test.go
tarakby Jan 17, 2024
f9fa32a
Merge branch 'master' into tarak/fix-epoch-setup-random-source
tarakby Jan 17, 2024
05cf85a
update with changes from master
kc1116 Jan 17, 2024
52db024
fix lint
kc1116 Jan 17, 2024
bb1d6a3
Update flags.go
kc1116 Jan 17, 2024
d4b77de
Update peer_scoring.go
kc1116 Jan 18, 2024
aeb29e8
Merge pull request #5084 from onflow/khalil/4979-scoring-registry-sta…
kc1116 Jan 18, 2024
b584f37
Merge branch 'master' into khalil/6664-invalid-control-message-weight
kc1116 Jan 18, 2024
e5c2a03
fix tests and node builders
kc1116 Jan 18, 2024
3c27e97
Merge pull request #5215 from onflow/janez/update-evm-test
janezpodhostnik Jan 18, 2024
73e2641
Merge branch 'master' into tarak/fix-epoch-setup-random-source
tarakby Jan 18, 2024
c272728
Merge branch 'master' into janez/change-contract-code-migration
turbolent Jan 18, 2024
d89815f
attempt to fix linter
Jan 18, 2024
5fe4f98
Merge pull request #5191 from onflow/janez/change-contract-code-migra…
turbolent Jan 18, 2024
00d5617
Merge pull request #5088 from onflow/tarak/fix-epoch-setup-random-source
tarakby Jan 18, 2024
23e734a
cherry pick threshold test fix
kc1116 Jan 18, 2024
7969310
Merge pull request #5243 from onflow/leo/cleanup-ingestion-engine
zhangchiqing Jan 18, 2024
12ceb0e
Merge branch 'master' into khalil/6664-invalid-control-message-weight
kc1116 Jan 18, 2024
f60f782
Merge pull request #4978 from onflow/khalil/6664-invalid-control-mess…
kc1116 Jan 18, 2024
04617c5
Revert "Merge pull request #4978 from onflow/khalil/6664-invalid-cont…
yhassanzadeh13 Jan 19, 2024
76798e8
Add feature flag for deploying EVM contract only with ABI functionality
m-Peter Jan 11, 2024
9e6dfd7
Add comments to describe the usage of evm feature flags
m-Peter Jan 12, 2024
8fcffc4
Add test for the WithEVMABIOnly bootstrap flag
m-Peter Jan 17, 2024
0f15f20
Include WithEVMEnabled(true) in default FVM options
m-Peter Jan 18, 2024
a989313
Fix context options setup for TestEVM
m-Peter Jan 19, 2024
c73f949
Use evmAbiOnly contract version in contract code migration
m-Peter Jan 19, 2024
2b49cb0
Merge pull request #5230 from m-Peter/feature-flag-for-evm-abi-only
janezpodhostnik Jan 19, 2024
baa1ccb
fixes ihave broken promises tests
yhassanzadeh13 Jan 19, 2024
1ad6824
Merge branch 'master' into yahya-revert-pr4978
yhassanzadeh13 Jan 19, 2024
7909b62
Merge pull request #5252 from onflow/yahya-revert-pr4978
yhassanzadeh13 Jan 19, 2024
49635b7
Merge branch 'master' of https://github.com/onflow/flow-go into supun…
SupunS Jan 19, 2024
55f1cc8
Bump dependency versions
SupunS Jan 20, 2024
d3a7e3b
Merge branch 'feature/stable-cadence' of https://github.com/onflow/fl…
SupunS Jan 20, 2024
6806845
Update to match changes in master
SupunS Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ifeq (${IMAGE_TAG},)
IMAGE_TAG := ${SHORT_COMMIT}
endif

IMAGE_TAG_NO_NETGO := $(IMAGE_TAG)-without-netgo
IMAGE_TAG_NO_NETGO := $(IMAGE_TAG)+without-netgo

# Name of the cover profile
COVER_PROFILE := coverage.txt
Expand Down Expand Up @@ -207,11 +207,14 @@ generate-mocks: install-mock-generators
mockery --name '.*' --dir=./cmd/util/ledger/reporters --case=underscore --output="./cmd/util/ledger/reporters/mock" --outpkg="mock"
mockery --name 'Storage' --dir=module/executiondatasync/tracker --case=underscore --output="module/executiondatasync/tracker/mock" --outpkg="mocktracker"
mockery --name 'ScriptExecutor' --dir=module/execution --case=underscore --output="module/execution/mock" --outpkg="mock"
mockery --name 'StorageSnapshot' --dir=fvm/storage/snapshot --case=underscore --output="fvm/storage/snapshot/mock" --outpkg="mock"

#temporarily make insecure/ a non-module to allow mockery to create mocks
mv insecure/go.mod insecure/go2.mod
if [ -f go.work ]; then mv go.work go2.work; fi
mockery --name '.*' --dir=insecure/ --case=underscore --output="./insecure/mock" --outpkg="mockinsecure"
mv insecure/go2.mod insecure/go.mod
if [ -f go2.work ]; then mv go2.work go.work; fi

# this ensures there is no unused dependency being added by accident
.PHONY: tidy
Expand Down
67 changes: 54 additions & 13 deletions cmd/access/node_builder/access_node_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ func DefaultAccessNodeConfig() *AccessNodeConfig {
MaxFailures: 5,
MaxRequests: 1,
},
ScriptExecutionMode: backend.ScriptExecutionModeExecutionNodesOnly.String(), // default to ENs only for now
ScriptExecutionMode: backend.IndexQueryModeExecutionNodesOnly.String(), // default to ENs only for now
EventQueryMode: backend.IndexQueryModeExecutionNodesOnly.String(), // default to ENs only for now
},
RestConfig: rest.Config{
ListenAddress: "",
Expand Down Expand Up @@ -273,6 +274,7 @@ type FlowAccessNodeBuilder struct {
ExecutionIndexerCore *indexer.IndexerCore
ScriptExecutor *backend.ScriptExecutor
RegistersAsyncStore *execution.RegistersAsyncStore
IndexerDependencies *cmd.DependencyList

// The sync engine participants provider is the libp2p peer store for the access node
// which is not available until after the network has started.
Expand Down Expand Up @@ -488,8 +490,7 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess

// setup dependency chain to ensure indexer starts after the requester
requesterDependable := module.NewProxiedReadyDoneAware()
indexerDependencies := cmd.NewDependencyList()
indexerDependencies.Add(requesterDependable)
builder.IndexerDependencies.Add(requesterDependable)

builder.
AdminCommand("read-execution-data", func(config *cmd.NodeConfig) commands.AdminCommand {
Expand Down Expand Up @@ -669,10 +670,6 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess
indexedBlockHeight = bstorage.NewConsumerProgress(builder.DB, module.ConsumeProgressExecutionDataIndexerBlockHeight)
return nil
}).
Module("events storage", func(node *cmd.NodeConfig) error {
builder.Storage.Events = bstorage.NewEvents(node.Metrics.Cache, node.DB)
return nil
}).
Module("transaction results storage", func(node *cmd.NodeConfig) error {
builder.Storage.LightTransactionResults = bstorage.NewLightTransactionResults(node.Metrics.Cache, node.DB, bstorage.DefaultCacheSize)
return nil
Expand Down Expand Up @@ -716,14 +713,20 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess

checkpointHeight := builder.SealedRootBlock.Header.Height

buutstrap, err := pStorage.NewRegisterBootstrap(pdb, checkpointFile, checkpointHeight, builder.Logger)
if builder.SealedRootBlock.ID() != builder.RootSeal.BlockID {
return nil, fmt.Errorf("mismatching sealed root block and root seal: %v != %v",
builder.SealedRootBlock.ID(), builder.RootSeal.BlockID)
}

rootHash := ledger.RootHash(builder.RootSeal.FinalState)
bootstrap, err := pStorage.NewRegisterBootstrap(pdb, checkpointFile, checkpointHeight, rootHash, builder.Logger)
if err != nil {
return nil, fmt.Errorf("could not create registers bootstrapper: %w", err)
return nil, fmt.Errorf("could not create registers bootstrap: %w", err)
}

// TODO: find a way to hook a context up to this to allow a graceful shutdown
workerCount := 10
err = buutstrap.IndexCheckpointFile(context.Background(), workerCount)
err = bootstrap.IndexCheckpointFile(context.Background(), workerCount)
if err != nil {
return nil, fmt.Errorf("could not load checkpoint file: %w", err)
}
Expand All @@ -744,6 +747,7 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess
builder.Storage.Headers,
builder.Storage.Events,
builder.Storage.LightTransactionResults,
builder.IngestEng.OnCollection,
)
if err != nil {
return nil, err
Expand Down Expand Up @@ -790,7 +794,7 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess
builder.ScriptExecutor.InitReporter(builder.ExecutionIndexer, scripts)

return builder.ExecutionIndexer, nil
}, indexerDependencies)
}, builder.IndexerDependencies)
}

if builder.stateStreamConf.ListenAddr != "" {
Expand All @@ -813,19 +817,32 @@ func (builder *FlowAccessNodeBuilder) BuildExecutionSyncComponents() *FlowAccess
}
broadcaster := engine.NewBroadcaster()

eventQueryMode, err := backend.ParseIndexQueryMode(builder.rpcConf.BackendConfig.EventQueryMode)
if err != nil {
return nil, fmt.Errorf("could not parse event query mode: %w", err)
}

// use the events index for events if enabled and the node is configured to use it for
// regular event queries
useIndex := builder.executionDataIndexingEnabled &&
eventQueryMode != backend.IndexQueryModeExecutionNodesOnly

builder.stateStreamBackend, err = statestreambackend.New(
node.Logger,
builder.stateStreamConf,
node.State,
node.Storage.Headers,
node.Storage.Events,
node.Storage.Seals,
node.Storage.Results,
builder.ExecutionDataStore,
executionDataStoreCache,
broadcaster,
builder.executionDataConfig.InitialBlockHeight,
highestAvailableHeight,
builder.RegistersAsyncStore)
builder.RegistersAsyncStore,
useIndex,
)
if err != nil {
return nil, fmt.Errorf("could not create state stream backend: %w", err)
}
Expand Down Expand Up @@ -861,6 +878,7 @@ func FlowAccessNode(nodeBuilder *cmd.FlowNodeBuilder) *FlowAccessNodeBuilder {
AccessNodeConfig: DefaultAccessNodeConfig(),
FlowNodeBuilder: nodeBuilder,
FollowerDistributor: dist,
IndexerDependencies: cmd.NewDependencyList(),
}
}

Expand Down Expand Up @@ -1063,6 +1081,11 @@ func (builder *FlowAccessNodeBuilder) extraFlags() {
flags.StringVar(&builder.registersDBPath, "execution-state-dir", defaultConfig.registersDBPath, "directory to use for execution-state database")
flags.StringVar(&builder.checkpointFile, "execution-state-checkpoint", defaultConfig.checkpointFile, "execution-state checkpoint file")

flags.StringVar(&builder.rpcConf.BackendConfig.EventQueryMode,
"event-query-mode",
defaultConfig.rpcConf.BackendConfig.EventQueryMode,
"mode to use when querying events. one of [local-only, execution-nodes-only(default), failover]")

// Script Execution
flags.StringVar(&builder.rpcConf.BackendConfig.ScriptExecutionMode,
"script-execution-mode",
Expand Down Expand Up @@ -1259,6 +1282,9 @@ func (builder *FlowAccessNodeBuilder) Build() (cmd.Node, error) {
builder.BuildExecutionSyncComponents()
}

ingestionDependable := module.NewProxiedReadyDoneAware()
builder.IndexerDependencies.Add(ingestionDependable)

builder.
BuildConsensusFollower().
Module("collection node client", func(node *cmd.NodeConfig) error {
Expand Down Expand Up @@ -1402,6 +1428,10 @@ func (builder *FlowAccessNodeBuilder) Build() (cmd.Node, error) {
builder.RegistersAsyncStore = execution.NewRegistersAsyncStore()
return nil
}).
Module("events storage", func(node *cmd.NodeConfig) error {
builder.Storage.Events = bstorage.NewEvents(node.Metrics.Cache, node.DB)
return nil
}).
Component("RPC engine", func(node *cmd.NodeConfig) (module.ReadyDoneAware, error) {
config := builder.rpcConf
backendConfig := config.BackendConfig
Expand Down Expand Up @@ -1434,17 +1464,26 @@ func (builder *FlowAccessNodeBuilder) Build() (cmd.Node, error) {
),
}

scriptExecMode, err := backend.ParseScriptExecutionMode(config.BackendConfig.ScriptExecutionMode)
scriptExecMode, err := backend.ParseIndexQueryMode(config.BackendConfig.ScriptExecutionMode)
if err != nil {
return nil, fmt.Errorf("could not parse script execution mode: %w", err)
}

eventQueryMode, err := backend.ParseIndexQueryMode(config.BackendConfig.EventQueryMode)
if err != nil {
return nil, fmt.Errorf("could not parse script execution mode: %w", err)
}
if eventQueryMode == backend.IndexQueryModeCompare {
return nil, fmt.Errorf("event query mode 'compare' is not supported")
}

nodeBackend, err := backend.New(backend.Params{
State: node.State,
CollectionRPC: builder.CollectionRPC,
HistoricalAccessNodes: builder.HistoricalAccessRPCs,
Blocks: node.Storage.Blocks,
Headers: node.Storage.Headers,
Events: node.Storage.Events,
Collections: node.Storage.Collections,
Transactions: node.Storage.Transactions,
ExecutionReceipts: node.Storage.Receipts,
Expand All @@ -1463,6 +1502,7 @@ func (builder *FlowAccessNodeBuilder) Build() (cmd.Node, error) {
TxErrorMessagesCacheSize: builder.TxErrorMessagesCacheSize,
ScriptExecutor: builder.ScriptExecutor,
ScriptExecutionMode: scriptExecMode,
EventQueryMode: eventQueryMode,
})
if err != nil {
return nil, fmt.Errorf("could not initialize backend: %w", err)
Expand Down Expand Up @@ -1535,6 +1575,7 @@ func (builder *FlowAccessNodeBuilder) Build() (cmd.Node, error) {
if err != nil {
return nil, err
}
ingestionDependable.Init(builder.IngestEng)
builder.RequestEng.WithHandle(builder.IngestEng.OnCollection)
builder.FollowerDistributor.AddOnBlockFinalizedConsumer(builder.IngestEng.OnFinalizedBlock)

Expand Down
5 changes: 2 additions & 3 deletions cmd/bootstrap/cmd/finalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/onflow/flow-go/model/dkg"
"github.com/onflow/flow-go/model/encodable"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/model/flow/order"
"github.com/onflow/flow-go/module/epochs"
"github.com/onflow/flow-go/state/protocol"
"github.com/onflow/flow-go/state/protocol/badger"
Expand Down Expand Up @@ -156,7 +155,7 @@ func finalize(cmd *cobra.Command, args []string) {
log.Info().Msg("")

// create flow.IdentityList representation of participant set
participants := model.ToIdentityList(stakingNodes).Sort(order.Canonical)
participants := model.ToIdentityList(stakingNodes).Sort(flow.Canonical)

log.Info().Msg("reading root block data")
block := readRootBlock()
Expand Down Expand Up @@ -492,7 +491,7 @@ func mergeNodeInfos(internalNodes, partnerNodes []model.NodeInfo) []model.NodeIn
}

// sort nodes using the canonical ordering
nodes = model.Sort(nodes, order.Canonical)
nodes = model.Sort(nodes, flow.Canonical)

return nodes
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/bootstrap/cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/onflow/flow-go/crypto/hash"

"github.com/onflow/flow-go/cmd/bootstrap/utils"
"github.com/onflow/flow-go/model/flow/order"

"github.com/onflow/flow-go/crypto"

Expand Down Expand Up @@ -49,7 +48,7 @@ func genNetworkAndStakingKeys() []model.NodeInfo {
internalNodes = append(internalNodes, nodeInfo)
}

return model.Sort(internalNodes, order.Canonical)
return model.Sort(internalNodes, flow.Canonical)
}

func assembleNodeInfo(nodeConfig model.NodeConfig, networkKey, stakingKey crypto.PrivateKey) model.NodeInfo {
Expand Down
3 changes: 1 addition & 2 deletions cmd/bootstrap/cmd/seal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/onflow/flow-go/cmd/bootstrap/run"
"github.com/onflow/flow-go/model/dkg"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/model/flow/order"
"github.com/onflow/flow-go/module/signature"
)

Expand Down Expand Up @@ -39,7 +38,7 @@ func constructRootResultAndSeal(
DKGPhase1FinalView: firstView + flagNumViewsInStakingAuction + flagNumViewsInDKGPhase - 1,
DKGPhase2FinalView: firstView + flagNumViewsInStakingAuction + flagNumViewsInDKGPhase*2 - 1,
DKGPhase3FinalView: firstView + flagNumViewsInStakingAuction + flagNumViewsInDKGPhase*3 - 1,
Participants: participants.Sort(order.Canonical),
Participants: participants.Sort(flow.Canonical),
Assignments: assignments,
RandomSource: GenerateRandomSeed(flow.EpochSetupRandomSourceLength),
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/bootstrap/run/cluster_qc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/cluster"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/model/flow/order"
"github.com/onflow/flow-go/module/local"
)

Expand All @@ -29,7 +28,7 @@ func GenerateClusterRootQC(signers []bootstrap.NodeInfo, allCommitteeMembers flo
}

// STEP 2: create VoteProcessor
ordered := allCommitteeMembers.Sort(order.Canonical)
ordered := allCommitteeMembers.Sort(flow.Canonical)
committee, err := committees.NewStaticCommittee(ordered, flow.Identifier{}, nil, nil)
if err != nil {
return nil, err
Expand Down
3 changes: 1 addition & 2 deletions cmd/bootstrap/run/qc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/onflow/flow-go/crypto"
"github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/model/flow/order"
"github.com/onflow/flow-go/module/signature"
"github.com/onflow/flow-go/utils/unittest"
)
Expand Down Expand Up @@ -45,7 +44,7 @@ func TestGenerateRootQCWithSomeInvalidVotes(t *testing.T) {
}

func createSignerData(t *testing.T, n int) *ParticipantData {
identities := unittest.IdentityListFixture(n).Sort(order.Canonical)
identities := unittest.IdentityListFixture(n).Sort(flow.Canonical)

networkingKeys := unittest.NetworkingKeys(n)
stakingKeys := unittest.StakingKeys(n)
Expand Down
5 changes: 0 additions & 5 deletions cmd/consensus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func main() {
requiredApprovalsForSealVerification uint
requiredApprovalsForSealConstruction uint
emergencySealing bool
dkgControllerConfig dkgmodule.ControllerConfig
dkgMessagingEngineConfig = dkgeng.DefaultMessagingEngineConfig()
cruiseCtlConfig = cruisectl.DefaultConfig()
cruiseCtlTargetTransitionTimeFlag = cruiseCtlConfig.TargetTransition.String()
Expand Down Expand Up @@ -161,9 +160,6 @@ func main() {
flags.BoolVar(&emergencySealing, "emergency-sealing-active", flow.DefaultEmergencySealingActive, "(de)activation of emergency sealing")
flags.BoolVar(&insecureAccessAPI, "insecure-access-api", false, "required if insecure GRPC connection should be used")
flags.StringSliceVar(&accessNodeIDS, "access-node-ids", []string{}, fmt.Sprintf("array of access node IDs sorted in priority order where the first ID in this array will get the first connection attempt and each subsequent ID after serves as a fallback. Minimum length %d. Use '*' for all IDs in protocol state.", common.DefaultAccessNodeIDSMinimum))
flags.DurationVar(&dkgControllerConfig.BaseStartDelay, "dkg-controller-base-start-delay", dkgmodule.DefaultBaseStartDelay, "used to define the range for jitter prior to DKG start (eg. 500µs) - the base value is scaled quadratically with the # of DKG participants")
flags.DurationVar(&dkgControllerConfig.BaseHandleFirstBroadcastDelay, "dkg-controller-base-handle-first-broadcast-delay", dkgmodule.DefaultBaseHandleFirstBroadcastDelay, "used to define the range for jitter prior to DKG handling the first broadcast messages (eg. 50ms) - the base value is scaled quadratically with the # of DKG participants")
flags.DurationVar(&dkgControllerConfig.HandleSubsequentBroadcastDelay, "dkg-controller-handle-subsequent-broadcast-delay", dkgmodule.DefaultHandleSubsequentBroadcastDelay, "used to define the constant delay introduced prior to DKG handling subsequent broadcast messages (eg. 2s)")
flags.DurationVar(&dkgMessagingEngineConfig.RetryBaseWait, "dkg-messaging-engine-retry-base-wait", dkgMessagingEngineConfig.RetryBaseWait, "the inter-attempt wait time for the first attempt (base of exponential retry)")
flags.Uint64Var(&dkgMessagingEngineConfig.RetryMax, "dkg-messaging-engine-retry-max", dkgMessagingEngineConfig.RetryMax, "the maximum number of retry attempts for an outbound DKG message")
flags.Uint64Var(&dkgMessagingEngineConfig.RetryJitterPercent, "dkg-messaging-engine-retry-jitter-percent", dkgMessagingEngineConfig.RetryJitterPercent, "the percentage of jitter to apply to each inter-attempt wait time")
Expand Down Expand Up @@ -915,7 +911,6 @@ func main() {
node.Me,
dkgContractClients,
dkgBrokerTunnel,
dkgControllerConfig,
),
viewsObserver,
)
Expand Down
Loading
Loading