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] Sync master to feature/dynamic-protocol-state #4578

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
0e87757
Go 1.20
SaveTheRbtz Feb 8, 2023
026312d
Update golangci-lint
Kay-Zee Feb 8, 2023
85dcdc7
Merge branch 'master' into rbtz/go1.20
SaveTheRbtz Feb 9, 2023
a0e3434
replace math/rand in production code - remove depriacted functions in…
Mar 15, 2023
93b68dc
update crypto math/rand usage
Mar 16, 2023
92ea84b
merge master branch
Mar 16, 2023
9d19b51
add tests for new package utils/rand
Mar 16, 2023
92fdcae
fix more errors
Mar 16, 2023
5e2b255
more linter errors
Mar 16, 2023
5b58584
fix more linter errors
Mar 16, 2023
2b00584
1.20 never ending linter errors
Mar 16, 2023
2d315c0
merge master
Mar 16, 2023
5d1a431
update bootstrap beacon KG and fix integration errors
Mar 16, 2023
6f76e40
Revert "Update golangci-lint"
Mar 16, 2023
cd908b8
Revert "Go 1.20"
Mar 16, 2023
12f6663
more fixing
Mar 16, 2023
4377369
log error in pool random ejection and fallback to LRU
Mar 16, 2023
1533c2d
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby Mar 16, 2023
4919ba3
fix import order
Mar 16, 2023
07dce62
fix a new issue after merging master
Mar 17, 2023
77d83f0
improve unsafeRandom test for randomness and add determinicity test
Mar 17, 2023
361bbb7
merge master
Apr 22, 2023
910c04c
remove added spaces
Apr 22, 2023
0bebc15
minor cleanups
Apr 22, 2023
eb36425
merge master and fix conflicts
May 16, 2023
cb1db83
fix merging bug
May 16, 2023
5aaa8ca
Separated grpc server creation into grpc server package, refactored r…
UlyanaAndrukhiv May 31, 2023
23f79f8
Updated observer builder
UlyanaAndrukhiv May 31, 2023
13e35e8
Fixed tests
UlyanaAndrukhiv May 31, 2023
6fc1832
Linted
UlyanaAndrukhiv Jun 1, 2023
a485a12
Merged conflicts
UlyanaAndrukhiv Jun 1, 2023
f726c2e
merge master
Jun 1, 2023
6938f40
Created new RestServerApi, refactored rest router and server, added B…
UlyanaAndrukhiv Jun 8, 2023
fcbf397
Separated common forwarder logic to forwarder package, created and im…
UlyanaAndrukhiv Jun 8, 2023
a685db8
Updated access api proxy test
UlyanaAndrukhiv Jun 8, 2023
4ac6aa0
Fixed review remarks
UlyanaAndrukhiv Jun 8, 2023
9b2a245
Updated last commit
UlyanaAndrukhiv Jun 8, 2023
9ed9400
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jun 9, 2023
0a0e4e5
remove one more usage of math/rand in engine/execution
Jun 9, 2023
db663e3
avoid using math/rand in NewExponentialBackoff
Jun 9, 2023
ac5302b
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby Jun 9, 2023
908212f
clean up and comment updates
Jun 9, 2023
60a6b9d
bump crypto module to 0.24.8
Jun 2, 2023
234ff25
use flow-go/crypto randomness evaluation tools in flow-go
Jun 2, 2023
2944aee
replace tx index by tx ID in seed derivation
Jun 2, 2023
5a1bca3
use Throw to bubble the error up
tarakby Jun 13, 2023
3c2f5bd
fix logic change in identity list sample
Jun 13, 2023
14df98f
fix returning before unlock and add warning log when randomness fails
Jun 13, 2023
557c6dd
Added RestRouter, refactored engine and engine builder
UlyanaAndrukhiv Jun 16, 2023
0a8aa0d
Updated tests
UlyanaAndrukhiv Jun 16, 2023
8cac7af
replace block header ID by beacon source in execution PRG generation
Jun 16, 2023
7c940d2
use state/protocol/prg package to instanciate a CSPRG
Jun 17, 2023
ee5b7c5
Refactored tests ande added new tests for rest servise. Linted.
UlyanaAndrukhiv Jun 19, 2023
0fef814
add dummy unsafeRNG instance for script execution and separate it fro…
Jun 19, 2023
2b13c42
use protocol state as BlockComputer attribute and protocol snapshot a…
Jun 19, 2023
56f4f47
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jun 20, 2023
8a52a2e
update verification engine to use protocol snapshot
Jun 20, 2023
9db5213
merge master branch
Jun 20, 2023
23b4cd0
Added observer rest integration test, linted
UlyanaAndrukhiv Jun 21, 2023
ea525fd
Fixed MaxMsgSize argument
UlyanaAndrukhiv Jun 21, 2023
d8500ca
Merged with master
UlyanaAndrukhiv Jun 22, 2023
8c8cd48
Created Config structure for backend
UlyanaAndrukhiv Jun 22, 2023
ccadd27
merge master branch
Jun 22, 2023
dd3464d
commit missing master changes
Jun 22, 2023
4820fa6
add check for math/rand usage in production code
Jun 22, 2023
8d5d523
integrate ALSP misbehavior reporter with slashing violations consumer
kc1116 Jun 23, 2023
2aa9db8
update slashing violations consumer usages, handle error returned fro…
kc1116 Jun 23, 2023
a104988
update tests
kc1116 Jun 23, 2023
2368ca2
Removed old unnecessary comment, added small upgrade for ObserverColl…
UlyanaAndrukhiv Jun 23, 2023
743b408
add misbehavior report consumer factory
kc1116 Jun 23, 2023
e9a561b
Merge branch 'master' of github.com:onflow/flow-go into khalil/6743-s…
kc1116 Jun 23, 2023
8854978
Refactored rest api
UlyanaAndrukhiv Jun 23, 2023
2db0deb
Added more comments
UlyanaAndrukhiv Jun 23, 2023
5425957
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jun 23, 2023
0112864
merge master
Jun 23, 2023
264f86f
Updated rest README
UlyanaAndrukhiv Jun 23, 2023
e3447dc
add exclude-dir so that GNU grep matches BSD grep for go-math-rand-check
Jun 23, 2023
8d6767e
use protocol state in CompleteExecutionReceiptChainFixture
Jun 25, 2023
12f69d2
Moved forwarder package to engine/common/grpc/forwarder, added constr…
UlyanaAndrukhiv Jun 26, 2023
4bfc6d4
moving slashing violations consumer to the network
kc1116 Jun 27, 2023
ee9f714
update unit tests
kc1116 Jun 27, 2023
4a22fa9
add err const
kc1116 Jun 27, 2023
8a002e8
Update network/slashing/consumer.go
kc1116 Jun 27, 2023
cd16a57
Merge branch 'khalil/6743-slashing-violations-consumer-alsp' of githu…
kc1116 Jun 27, 2023
726f426
add counter metric for amount of time a violation report has been sk…
kc1116 Jun 27, 2023
0567193
remove error return emit fatal log instead
kc1116 Jun 27, 2023
33bdad8
fix lint
kc1116 Jun 27, 2023
6ca9d3b
Merge branch 'master' into khalil/6743-slashing-violations-consumer-alsp
kc1116 Jun 27, 2023
0e76e55
Refactored request forwarding according to suggestions from code review
UlyanaAndrukhiv Jun 29, 2023
280fa42
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jun 29, 2023
9deccb8
Added constructor to rest proxy handler, updated test
UlyanaAndrukhiv Jun 29, 2023
bbe70d0
Changed flow/protobuf/go/flow module to latest, removed lines with re…
UlyanaAndrukhiv Jun 29, 2023
276a101
Refactored according to commits
UlyanaAndrukhiv Jun 30, 2023
74c47d5
Removed RestBackendApi and refactored rest using standard Access API'…
UlyanaAndrukhiv Jun 30, 2023
e878214
Updated according to comments
UlyanaAndrukhiv Jun 30, 2023
4400ec3
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jun 30, 2023
f9a15e8
Updated logs, added CLI flag and added access metrics initialization
UlyanaAndrukhiv Jun 30, 2023
aee37a9
Updated README file, updated comment
UlyanaAndrukhiv Jun 30, 2023
d1ebcb7
Merged with master
UlyanaAndrukhiv Jun 30, 2023
e46ee77
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jun 30, 2023
e35477e
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 4, 2023
3d5dfc4
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jul 4, 2023
4c2f32c
update bootstrapping to include nft and metadata views
joshuahannan Jul 3, 2023
1583edf
update dependencies
joshuahannan Jul 3, 2023
9af82d3
running tests
joshuahannan Jul 3, 2023
70edc6c
fix build and deploy NFT on service account
janezpodhostnik Jul 4, 2023
3418422
upgrade emulator
janezpodhostnik Jul 4, 2023
e5669ef
make tidy
janezpodhostnik Jul 5, 2023
4c635c5
add control message rpc sent tracker for use in gossip sub tracer
kc1116 Jul 5, 2023
cefc60b
Merge branch 'master' of github.com:onflow/flow-go into khalil/1897-i…
kc1116 Jul 5, 2023
1595d09
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 5, 2023
2850cac
add rpc sent tracker to gossipsub mesh tracer
kc1116 Jul 6, 2023
86884ea
Refactored according to comments
UlyanaAndrukhiv Jul 6, 2023
a879d4e
Updated module ordering
UlyanaAndrukhiv Jul 6, 2023
9f04ea1
Removed unnecessary logs
UlyanaAndrukhiv Jul 6, 2023
d72f862
Added integration test accorfing to comment
UlyanaAndrukhiv Jul 6, 2023
3aa3705
Updated comment
UlyanaAndrukhiv Jul 6, 2023
b56ebee
Added workers to engines
UlyanaAndrukhiv Jul 6, 2023
923de3d
Update module/metrics/network.go
kc1116 Jul 6, 2023
b68dcec
add comment about fatal log when creating misbehavior report
kc1116 Jul 6, 2023
c5b2ff0
remove unused field
kc1116 Jul 6, 2023
f8c11fc
Merge branch 'master' of github.com:onflow/flow-go into khalil/6743-s…
kc1116 Jul 6, 2023
4b138db
merge master
kc1116 Jul 6, 2023
4e7b614
fix verification tests by building QC's source of randoms ahead of bu…
Jul 7, 2023
0d9bbe0
merge master and update crypto version to 0.24.9
Jul 7, 2023
3ae7c26
Configured state streaming on a separate port
UlyanaAndrukhiv Jul 7, 2023
8a0bef7
Merge branch 'master' into khalil/6743-slashing-violations-consumer-alsp
kc1116 Jul 7, 2023
70a431d
Merge pull request #4512 from onflow/khalil/6743-slashing-violations-…
kc1116 Jul 7, 2023
e4494b3
Merged with master and added new option to grpcServerBuilder
UlyanaAndrukhiv Jul 7, 2023
ed839f1
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 7, 2023
1e75800
use MakeIDFromFingerPrint
kc1116 Jul 7, 2023
c7119f9
update WasIHaveRPCSent test ensure false positive not returned
kc1116 Jul 7, 2023
33681ec
Update rpc_sent_tracker.go
kc1116 Jul 7, 2023
3dcbf9b
Merge branch 'master' into khalil/1897-ihave-rpc-tracker
kc1116 Jul 7, 2023
eef05fd
fix test bug: missing parameter
Jul 7, 2023
86464d7
clean up and rename unsafeRandomGenerator to RandomGenerator
Jul 7, 2023
e70640e
more renaming of unsafeRandom to random
Jul 7, 2023
f999399
refactor environment/randomGenerator to use simpler do.once pattern
Jul 7, 2023
94fbc10
Merge branch 'master' into tarak/env-safe-random
tarakby Jul 7, 2023
63e2b6d
rename VFMEnvRandom constant
Jul 7, 2023
54a6803
add tmate for remote debugging
Jul 7, 2023
d9ae9eb
merge master
Jul 7, 2023
3a3b8ba
fix merging bug
Jul 8, 2023
c7ed3c3
add random generator mock
Jul 8, 2023
8b2a7a5
[CI] Rename without_netgo tag to without-netgo
peterargue Jul 9, 2023
92674a7
Updated README file, updated logging accoring to comments
UlyanaAndrukhiv Jul 10, 2023
be61031
Merged with master
UlyanaAndrukhiv Jul 10, 2023
9256de4
Added tests for convert functions, moved 2 to right file
UlyanaAndrukhiv Jul 10, 2023
8bd1ae8
wip
kc1116 Jul 10, 2023
1eed112
applies the fix
yhassanzadeh13 Jul 10, 2023
c767545
update test
kc1116 Jul 10, 2023
1ed374c
Update manager.go
kc1116 Jul 10, 2023
cce68b5
Update manager_test.go
kc1116 Jul 10, 2023
c467235
Updated unittest according to comment
UlyanaAndrukhiv Jul 11, 2023
c7a4d58
Update config/default-config.yml
kc1116 Jul 11, 2023
252dd2d
Update module/metrics/labels.go
kc1116 Jul 11, 2023
647065b
Update network/p2p/tracer/gossipSubMeshTracer.go
kc1116 Jul 11, 2023
72e6b7d
document irrecoverable error in NewGossipSubMeshTracer
kc1116 Jul 11, 2023
1dcb3a4
Update network/p2p/tracer/gossipSubMeshTracer.go
kc1116 Jul 11, 2023
2b2d2fc
use cache size from default config
kc1116 Jul 11, 2023
6b6a74a
Update network/p2p/tracer/internal/cache.go
kc1116 Jul 11, 2023
4588903
rename RPCSentCacheConfig -> rpcCtrlMsgSentCacheConfig
kc1116 Jul 11, 2023
c52f26a
Merge branch 'khalil/1897-ihave-rpc-tracker' of github.com:onflow/flo…
kc1116 Jul 11, 2023
8d95bb4
add godoc for rpcCtrlMsgSentCacheConfig
kc1116 Jul 11, 2023
cfc3672
remove error return from NewGossipSubMeshTracer func signature
kc1116 Jul 11, 2023
d270551
rename messageId -> messageEntityID
kc1116 Jul 11, 2023
8edb744
remove unused funcs remove & ids
kc1116 Jul 11, 2023
145de05
Updated rest integration test
UlyanaAndrukhiv Jul 11, 2023
60b764d
improve cache func signature cohesion
kc1116 Jul 11, 2023
000581e
Fixed typo, updated last commit
UlyanaAndrukhiv Jul 11, 2023
64f629d
update WasIHaveRPCSent to check multiple topic IDs with multiple mess…
kc1116 Jul 11, 2023
c66755b
fix mock bug
Jul 11, 2023
67b4390
add error description for newSource()
Jul 11, 2023
36c7855
Merge pull request #4543 from onflow/khalil/1897-ihave-rpc-tracker
kc1116 Jul 11, 2023
1f1a341
revert LRUEjector and remove random ejection fallback
Jul 12, 2023
183ce49
use fatal logging when system randomness fails
Jul 12, 2023
a2aa5d7
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jul 12, 2023
6ddbb2b
auto update to onflow/cadence v0.39.14
SupunS Jul 11, 2023
82d6e5f
Update to flow-go-sdk@v0.41.9 version
SupunS Jul 12, 2023
a2f5f4b
update grep command to work for different grep versions and remove tmate
Jul 12, 2023
117fcc0
Verification Node documentation (#4528)
yhassanzadeh13 Jul 12, 2023
ac19f5f
Update network/alsp/manager/manager_test.go
kc1116 Jul 12, 2023
c924c1c
Update network/alsp/manager/manager_test.go
kc1116 Jul 12, 2023
ca4fc5b
Update network/alsp/manager/manager_test.go
kc1116 Jul 12, 2023
f67f007
Update network/alsp/manager/manager_test.go
kc1116 Jul 12, 2023
07796e9
Update manager_test.go
kc1116 Jul 12, 2023
8ca997d
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jul 14, 2023
fd4ffaf
Merge branch 'master' into bootstrapping-views
janezpodhostnik Jul 14, 2023
8e21991
Merge branch 'master' into tarak/go1.20-rand-prep
tarakby Jul 14, 2023
72b4db9
Merge pull request #4052 from onflow/tarak/go1.20-rand-prep
tarakby Jul 14, 2023
6228e63
Fix missing events in uploaded block data
fxamacker Jul 14, 2023
6fe26d1
Merge branch 'master' into fxamacker/fix-incomplete-events-in-gcp-upl…
fxamacker Jul 14, 2023
f1d5a06
Merge pull request #4562 from onflow/fxamacker/fix-incomplete-events-…
fxamacker Jul 14, 2023
f88f097
Go 1.20
SaveTheRbtz Feb 8, 2023
0bd284c
Update golangci-lint
Kay-Zee Feb 8, 2023
8455b98
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jul 17, 2023
52c701e
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 17, 2023
2b9e8ee
Merge #4550
bors[bot] Jul 17, 2023
81bc2d8
update more go1.20 deprecated functions
Jul 17, 2023
79c011b
remove math/rand.Read calls
Jul 17, 2023
8bd2eef
Merge branch 'master' into petera/rename-without-netgo-tag
peterargue Jul 17, 2023
e26bc28
Merge pull request #4548 from onflow/petera/rename-without-netgo-tag
peterargue Jul 17, 2023
ef86705
remove unused function
Jul 17, 2023
6b9cce5
use assert.Zero
Jul 17, 2023
aa528ad
Merge branch 'master' into bootstrapping-views
janezpodhostnik Jul 17, 2023
e3411ef
Merge pull request #4536 from onflow/bootstrapping-views
janezpodhostnik Jul 18, 2023
0af1f45
Merge branch 'master' into tarak/go1.20
tarakby Jul 18, 2023
e7dc893
[Networking] Handling iHave overpromising part-1 (#4556)
yhassanzadeh13 Jul 18, 2023
a97a02a
Merge branch 'master' into tarak/go1.20
tarakby Jul 18, 2023
1c55cf1
Merge branch 'master' into 1898-slashing-violations-consumer-alsp-int…
kc1116 Jul 18, 2023
2249991
[Access] Update REST metrics to use route name for all types
peterargue Jul 19, 2023
9682381
Merge pull request #4549 from onflow/1898-slashing-violations-consume…
kc1116 Jul 19, 2023
e67bcc9
Merge branch 'master' into tarak/go1.20
tarakby Jul 19, 2023
1aff7f9
Merge #4563
bors[bot] Jul 19, 2023
a2e8fb1
[Networking] Handling iHave broken promises (and part-2 of overpromis…
yhassanzadeh13 Jul 19, 2023
f2bc373
use new interface EntropyProvider in FVM instead of protocol.Snapshot
Jul 19, 2023
b8cf688
merge master branch
Jul 19, 2023
29deae0
update entropy provider mock file
Jul 19, 2023
c6624d2
ScriptExecutor should always populate env values even when the script…
m-Peter Jul 19, 2023
c7d1f07
Merged with master
UlyanaAndrukhiv Jul 19, 2023
574fb22
Append both errors in executeScript() with multierror
m-Peter Jul 19, 2023
7c2b340
Merge pull request #4498 from onflow/tarak/env-safe-random
tarakby Jul 19, 2023
1987e60
require url mapper in constructor
peterargue Jul 19, 2023
a7634ff
fix error return
peterargue Jul 19, 2023
1aa6e3d
Add test cases for asserting the population of ProcedureOutput from s…
m-Peter Jul 20, 2023
b62727f
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 20, 2023
1237a59
Merge branch 'master' into script-executor-populate-env-values
m-Peter Jul 20, 2023
c0b4436
Updated according to comments
UlyanaAndrukhiv Jul 20, 2023
ea7748f
Added part of updates according to comments
UlyanaAndrukhiv Jul 20, 2023
77ff167
Merged with master
UlyanaAndrukhiv Jul 20, 2023
06c67f2
Upgrade Emulator
janezpodhostnik Jul 20, 2023
de05263
Merge branch 'master' into petera/fix-rest-metrics-take3
peterargue Jul 20, 2023
2782d45
Merge pull request #4575 from onflow/janez/upgrade-emulator
janezpodhostnik Jul 20, 2023
e510954
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 20, 2023
4d37538
Merged with master
UlyanaAndrukhiv Jul 20, 2023
c1347be
Linted
UlyanaAndrukhiv Jul 20, 2023
435c8ff
Merge branch 'master' into petera/fix-rest-metrics-take3
peterargue Jul 20, 2023
806456f
Merge pull request #4571 from onflow/petera/fix-rest-metrics-take3
peterargue Jul 20, 2023
e96b90e
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 20, 2023
36869d1
Merge branch 'master' of github.com:UlyanaAndrukhiv/flow-go into Ulya…
UlyanaAndrukhiv Jul 20, 2023
7faa9e7
Fixed last commit
UlyanaAndrukhiv Jul 20, 2023
fe02ec9
Merge branch 'master' into script-executor-populate-env-values
janezpodhostnik Jul 21, 2023
ca27c87
Merge #4572
bors[bot] Jul 21, 2023
26b435e
Updated according to comments, added rest metrics to observer node
UlyanaAndrukhiv Jul 21, 2023
d47cc09
Merge branch 'master' into UlyanaAndrukhiv/3138-rest-api-on-observers
UlyanaAndrukhiv Jul 21, 2023
d6eb702
Merge branch 'master' into UlyanaAndrukhiv/4217-single-gRPC-port
UlyanaAndrukhiv Jul 21, 2023
3f3c15f
Merge pull request #4411 from UlyanaAndrukhiv/UlyanaAndrukhiv/4217-si…
durkmurder Jul 21, 2023
c7c05b9
Merged with master
UlyanaAndrukhiv Jul 21, 2023
b53dd43
Merge pull request #4499 from UlyanaAndrukhiv/UlyanaAndrukhiv/3138-re…
peterargue Jul 21, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
cache: true

- name: Build relic
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: "1.20"
- name: Checkout repo
uses: actions/checkout@v2
- name: Build relic
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- 'v[0-9]+.[0-9]+'

env:
GO_VERSION: 1.19
GO_VERSION: "1.20"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
version: v1.51
args: -v --build-tags relic
working-directory: ${{ matrix.dir }}
# https://github.com/golangci/golangci-lint-action/issues/244
Expand All @@ -66,8 +66,8 @@ jobs:
cache: true
- name: Run tidy
run: make tidy
- name: Emulator no relic check
run: make emulator-norelic-check
- name: code sanity check
run: make code-sanity-check

shell-check:
name: ShellCheck
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flaky-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- '**/*flaky-test-debug*'
env:
GO_VERSION: 1.19
GO_VERSION: "1.20"

#concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
version: v1.51
args: -v --build-tags relic
working-directory: ${{ matrix.dir }}
# https://github.com/golangci/golangci-lint-action/issues/244
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-monitor-flaky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
BIGQUERY_DATASET: production_src_flow_test_metrics
BIGQUERY_TABLE: test_results
GO_VERSION: 1.19
GO_VERSION: "1.20"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-monitor-regular-skipped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
BIGQUERY_DATASET: production_src_flow_test_metrics
BIGQUERY_TABLE: skipped_tests
BIGQUERY_TABLE2: test_results
GO_VERSION: 1.19
GO_VERSION: "1.20"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: "1.20"
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
Expand Down
21 changes: 19 additions & 2 deletions 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 @@ -87,6 +87,23 @@ emulator-norelic-check:
# test the fvm package compiles with Relic library disabled (required for the emulator build)
cd ./fvm && go test ./... -run=NoTestHasThisPrefix

.SILENT: go-math-rand-check
go-math-rand-check:
# check that the insecure math/rand Go package isn't used by production code.
# `exclude` should only specify non production code (test, bench..).
# If this check fails, try updating your code by using:
# - "crypto/rand" or "flow-go/utils/rand" for non-deterministic randomness
# - "flow-go/crypto/random" for deterministic randomness
grep --include=\*.go \
--exclude=*test* --exclude=*helper* --exclude=*example* --exclude=*fixture* --exclude=*benchmark* --exclude=*profiler* \
--exclude-dir=*test* --exclude-dir=*helper* --exclude-dir=*example* --exclude-dir=*fixture* --exclude-dir=*benchmark* --exclude-dir=*profiler* -rnw '"math/rand"'; \
if [ $$? -ne 1 ]; then \
echo "[Error] Go production code should not use math/rand package"; exit 1; \
fi

.PHONY: code-sanity-check
code-sanity-check: go-math-rand-check emulator-norelic-check

.PHONY: fuzz-fvm
fuzz-fvm:
# run fuzz tests in the fvm package
Expand Down Expand Up @@ -167,7 +184,7 @@ generate-mocks: install-mock-generators
rm -rf ./fvm/environment/mock
mockery --name '.*' --dir=fvm/environment --case=underscore --output="./fvm/environment/mock" --outpkg="mock"
mockery --name '.*' --dir=ledger --case=underscore --output="./ledger/mock" --outpkg="mock"
mockery --name 'ViolationsConsumer' --dir=network/slashing --case=underscore --output="./network/mocknetwork" --outpkg="mocknetwork"
mockery --name 'ViolationsConsumer' --dir=network --case=underscore --output="./network/mocknetwork" --outpkg="mocknetwork"
mockery --name '.*' --dir=network/p2p/ --case=underscore --output="./network/p2p/mock" --outpkg="mockp2p"
mockery --name '.*' --dir=network/alsp --case=underscore --output="./network/alsp/mock" --outpkg="mockalsp"
mockery --name 'Vertex' --dir="./module/forest" --case=underscore --output="./module/forest/mock" --outpkg="mock"
Expand Down
59 changes: 26 additions & 33 deletions access/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package access
import (
"context"

"github.com/onflow/flow/protobuf/go/flow/access"
"github.com/onflow/flow/protobuf/go/flow/entities"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/onflow/flow-go/consensus/hotstuff"
"github.com/onflow/flow-go/consensus/hotstuff/signature"
"github.com/onflow/flow-go/engine/common/rpc/convert"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/module"

"github.com/onflow/flow/protobuf/go/flow/access"
"github.com/onflow/flow/protobuf/go/flow/entities"
)

type Handler struct {
Expand Down Expand Up @@ -516,7 +516,7 @@ func (h *Handler) GetEventsForHeightRange(
return nil, err
}

resultEvents, err := blockEventsToMessages(results)
resultEvents, err := convert.BlockEventsToMessages(results)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -548,7 +548,7 @@ func (h *Handler) GetEventsForBlockIDs(
return nil, err
}

resultEvents, err := blockEventsToMessages(results)
resultEvents, err := convert.BlockEventsToMessages(results)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -590,6 +590,27 @@ func (h *Handler) GetExecutionResultForBlockID(ctx context.Context, req *access.
return executionResultToMessages(result, metadata)
}

// GetExecutionResultByID returns the execution result for the given ID.
func (h *Handler) GetExecutionResultByID(ctx context.Context, req *access.GetExecutionResultByIDRequest) (*access.ExecutionResultByIDResponse, error) {
metadata := h.buildMetadataResponse()

blockID := convert.MessageToIdentifier(req.GetId())

result, err := h.api.GetExecutionResultByID(ctx, blockID)
if err != nil {
return nil, err
}

execResult, err := convert.ExecutionResultToMessage(result)
if err != nil {
return nil, err
}
return &access.ExecutionResultByIDResponse{
ExecutionResult: execResult,
Metadata: metadata,
}, nil
}

func (h *Handler) blockResponse(block *flow.Block, fullResponse bool, status flow.BlockStatus) (*access.BlockResponse, error) {
metadata := h.buildMetadataResponse()

Expand Down Expand Up @@ -659,34 +680,6 @@ func executionResultToMessages(er *flow.ExecutionResult, metadata *entities.Meta
}, nil
}

func blockEventsToMessages(blocks []flow.BlockEvents) ([]*access.EventsResponse_Result, error) {
results := make([]*access.EventsResponse_Result, len(blocks))

for i, block := range blocks {
event, err := blockEventsToMessage(block)
if err != nil {
return nil, err
}
results[i] = event
}

return results, nil
}

func blockEventsToMessage(block flow.BlockEvents) (*access.EventsResponse_Result, error) {
eventMessages := make([]*entities.Event, len(block.Events))
for i, event := range block.Events {
eventMessages[i] = convert.EventToMessage(event)
}
timestamp := timestamppb.New(block.BlockTimestamp)
return &access.EventsResponse_Result{
BlockId: block.BlockID[:],
BlockHeight: block.BlockHeight,
BlockTimestamp: timestamp,
Events: eventMessages,
}, nil
}

// WithBlockSignerDecoder configures the Handler to decode signer indices
// via the provided hotstuff.BlockSignerDecoder
func WithBlockSignerDecoder(signerIndicesDecoder hotstuff.BlockSignerDecoder) func(*Handler) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

####################################
## (1) Setup the build environment
FROM golang:1.19-bullseye AS build-setup
FROM golang:1.20-bullseye AS build-setup

RUN apt-get update
RUN apt-get -y install cmake zip
Expand Down Expand Up @@ -71,7 +71,7 @@ RUN --mount=type=ssh \
RUN chmod a+x /app/app

## (4) Add the statically linked debug binary to a distroless image configured for debugging
FROM golang:1.19-bullseye as debug
FROM golang:1.20-bullseye as debug

RUN go install github.com/go-delve/delve/cmd/dlv@latest

Expand Down
Loading