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

Update stable cadence feature branch #5290

Merged
merged 340 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
248502c
merge master and fix conflicts
Dec 12, 2023
da62ec6
Merge branch 'janez/migration-infrastructure' into janez/atree-migration
janezpodhostnik Dec 13, 2023
e136694
merge master
Dec 16, 2023
d5fec8d
remove a new usage of flow-go crypto
Dec 16, 2023
0e81492
merge master branch
Dec 22, 2023
f9a342b
insecure tidy
Dec 22, 2023
98d647f
update flow-go-sdk commit
Dec 23, 2023
50c540b
Merge branch 'master' into tarak/use-onflow-crypto
tarakby Dec 23, 2023
03c737b
minor fix
Dec 23, 2023
6059bed
Merge branch 'janez/deduplicate-contract-names' into janez/atree-migr…
janezpodhostnik Jan 2, 2024
409b0b3
add close metthod to validation migration
janezpodhostnik Jan 2, 2024
07f8723
remove one account usage migrator
janezpodhostnik Jan 3, 2024
d424177
precompile setup
ramtinms Jan 4, 2024
074e115
Validate migrated Cadence values using Equal()
fxamacker Jan 5, 2024
706b5a5
Add flag for verbose validation error logging
fxamacker Jan 9, 2024
66261ae
merge master
Jan 9, 2024
2830eaa
generate mock
Jan 9, 2024
d56df32
Check composite field count during validation
fxamacker Jan 9, 2024
00cdc35
Merge pull request #5204 from onflow/fxamacker/atree-migration-cadenc…
fxamacker Jan 9, 2024
6f25040
Merge branch 'master' into gregor/evm/event-encoding
Jan 10, 2024
11005c3
remove proofs and reorder
Jan 10, 2024
83409c3
refactors duplicate string tracker
yhassanzadeh13 Jan 10, 2024
ff71dee
refactors duplicate string tracker
yhassanzadeh13 Jan 10, 2024
9de01c8
refactors errors to reflect the number of duplicate messages
yhassanzadeh13 Jan 10, 2024
fa9f0ba
extends gossipsub rpc inspector parameters
yhassanzadeh13 Jan 10, 2024
5a2c263
refactors tracker logic in rpc tracker
yhassanzadeh13 Jan 10, 2024
6bf67e8
fixes default config
yhassanzadeh13 Jan 10, 2024
0ecaad4
add precompile package
ramtinms Jan 10, 2024
f0c44f5
expose arch handler
ramtinms Jan 10, 2024
1344791
fix address allocation
ramtinms Jan 10, 2024
0910c15
improve structure
ramtinms Jan 11, 2024
e56361a
add tests
ramtinms Jan 11, 2024
844c8ef
update arch gas
ramtinms Jan 11, 2024
1902972
add test for arch
ramtinms Jan 11, 2024
29d5c71
add test for transaction events
Jan 11, 2024
51a4b59
import lint
Jan 11, 2024
1a02a24
check for correct events emitted
Jan 11, 2024
6aa6434
fix typo
Jan 11, 2024
1c8d7d0
fixes flag names
yhassanzadeh13 Jan 11, 2024
bee18ea
fixes config name mismatch
yhassanzadeh13 Jan 11, 2024
4c6b0d8
fixes flag names
yhassanzadeh13 Jan 11, 2024
f30d441
Merge remote-tracking branch 'origin/master' into yahya/6927-duplicat…
yhassanzadeh13 Jan 11, 2024
13e6b87
lint fix
yhassanzadeh13 Jan 11, 2024
23a8f98
lint fix
yhassanzadeh13 Jan 11, 2024
d886b0b
make linter happy again
ramtinms Jan 11, 2024
1da1c5c
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 11, 2024
6a69555
switches uints to ints
yhassanzadeh13 Jan 11, 2024
b5b34da
adds tests for ihave message id duplications
yhassanzadeh13 Jan 11, 2024
807dae5
adds tests for graft and prune duplicate topic ids below threshold
yhassanzadeh13 Jan 11, 2024
e9d2e53
adds test for duplicate prune topic id above the threshold
yhassanzadeh13 Jan 11, 2024
8e3a70c
adds test for duplicate graft topic id below the threshold
yhassanzadeh13 Jan 11, 2024
ebf4b75
removes threshold for individual topic ids
yhassanzadeh13 Jan 11, 2024
bffdfec
store codes by codeHash
ramtinms Jan 11, 2024
0b40435
simplifies test messages
yhassanzadeh13 Jan 11, 2024
7991095
fixes flags
yhassanzadeh13 Jan 11, 2024
d424b03
add test
ramtinms Jan 12, 2024
f8b1a37
use big.Int for balance only
ramtinms Jan 12, 2024
833dfa4
fixes lint issues with insecure
yhassanzadeh13 Jan 12, 2024
a765531
fix order of fields in the event
Jan 12, 2024
b633a9c
fix unneeded test call
Jan 12, 2024
2863cea
Merge branch 'master' into gregor/evm/event-encoding
Jan 12, 2024
1ab6284
update master
Jan 12, 2024
f062c46
update master
Jan 12, 2024
ad1d841
revises config names and supports documents
yhassanzadeh13 Jan 12, 2024
ccb8a74
adds metrics for iwant and ihave inspections
yhassanzadeh13 Jan 15, 2024
26e0968
adds metrics for invalid topic ids
yhassanzadeh13 Jan 15, 2024
f297003
wires all invalid topic id metrics
yhassanzadeh13 Jan 15, 2024
8675cf6
adds metrics for inspection result
yhassanzadeh13 Jan 15, 2024
c0d2f42
adds metrics for publish inspection support
yhassanzadeh13 Jan 15, 2024
70940ab
adds metrics for graft and prune inspection
yhassanzadeh13 Jan 15, 2024
efe63e2
adds metrics for publish inspection
yhassanzadeh13 Jan 15, 2024
7da8f08
updates mocks
yhassanzadeh13 Jan 15, 2024
84c576a
updates noop collector
yhassanzadeh13 Jan 15, 2024
3f967c7
Merge remote-tracking branch 'origin/master' into yahya/6927-duplicat…
yhassanzadeh13 Jan 15, 2024
94fbb48
fixes merge conflicts
yhassanzadeh13 Jan 15, 2024
9f57873
Merge branch 'master' into ramtin/5198-update-evm-code-storage
ramtinms Jan 15, 2024
5602915
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 15, 2024
daf0608
bug fix
ramtinms Jan 15, 2024
6eb27cf
Merge branch 'ramtin/5198-update-evm-code-storage' of github.com:onfl…
ramtinms Jan 15, 2024
3374a26
review fixes
janezpodhostnik Jan 16, 2024
a5275dd
remove cricket moments references from atree migration
janezpodhostnik Jan 16, 2024
22dc578
fixes iwant cache miss behavior
yhassanzadeh13 Jan 16, 2024
6d20dbb
fixes valid rpc test
yhassanzadeh13 Jan 16, 2024
a95eb29
adds TestIWantInspection_DuplicateMessageIds_AboveThreshold
yhassanzadeh13 Jan 16, 2024
52cbd02
adds TestIWantInspection_DuplicateMessageIds_BelowThreshold
yhassanzadeh13 Jan 16, 2024
26adb68
adds TestIHaveInspection_DuplicateMessageIds_BelowThreshold
yhassanzadeh13 Jan 16, 2024
a22ba75
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 16, 2024
9268f70
apply PR feedback
ramtinms Jan 16, 2024
612caa0
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 16, 2024
2899b10
use flow-go-sdk v0.44.0
Jan 17, 2024
6ffd6ae
merge master
Jan 17, 2024
44abff4
update emulator version to fix crypto types issue
Jan 17, 2024
ccd0ad5
adds TestIHaveInspection_DuplicateTopicIds_BelowThreshold
yhassanzadeh13 Jan 17, 2024
8279cd9
adds TestIHaveInspection_DuplicateTopicIds_AboveThreshold
yhassanzadeh13 Jan 17, 2024
3baf643
adds TestGraftInspection_InvalidTopic
yhassanzadeh13 Jan 17, 2024
1e7d3fb
adds TestPrueInspection_DuplicateTopicIds_BelowThreshold
yhassanzadeh13 Jan 17, 2024
6f2ce0b
adds TestPruneInspection_DuplicateTopicIds_AboveThreshold
yhassanzadeh13 Jan 17, 2024
dce5bda
Merge branch 'master' into yahya/6927-duplicate-ihave-topics
yhassanzadeh13 Jan 17, 2024
2c72e3d
adds TestGraftInspection_DuplicateTopicIds_BelowThreshold
yhassanzadeh13 Jan 17, 2024
e3ed08f
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 17, 2024
d40d9f2
apply PR feedback
ramtinms Jan 17, 2024
45fb10b
Merge branch 'ramtin/5199-add-precompile' of github.com:onflow/flow-g…
ramtinms Jan 17, 2024
15922ee
Merge branch 'yahya/6927-duplicate-ihave-topics' of github.com:onflow…
yhassanzadeh13 Jan 17, 2024
176c42f
adds TestGraftInspection_DuplicateTopicIds_AboveThreshold
yhassanzadeh13 Jan 17, 2024
b107447
Merge branch 'master' into ramtin/5198-update-evm-code-storage
ramtinms Jan 17, 2024
98d1294
removes cache miss threshold
yhassanzadeh13 Jan 17, 2024
3116787
lint fix
yhassanzadeh13 Jan 17, 2024
9b7ed6a
lint fix
yhassanzadeh13 Jan 17, 2024
d9f92e1
update test monitor data
Jan 17, 2024
a8baaf3
fix more test monitor data and go imports
Jan 17, 2024
030604e
fixes metrics
yhassanzadeh13 Jan 17, 2024
bc4c41a
updates mocks
yhassanzadeh13 Jan 17, 2024
f2a14b8
updates mocks
yhassanzadeh13 Jan 17, 2024
bd0dbdb
fixes insecure package tests
yhassanzadeh13 Jan 17, 2024
f2fddf3
fixes insecure package tests
yhassanzadeh13 Jan 17, 2024
a6ae09e
relaxes inspection conditions
yhassanzadeh13 Jan 17, 2024
091b741
fix go import order
Jan 17, 2024
7bdedb2
removes debug line
yhassanzadeh13 Jan 17, 2024
119e659
replace deprecated SetGasLimit
Jan 17, 2024
6d7835a
second round of go import order
Jan 18, 2024
5be7795
generate mocks
Jan 18, 2024
21c799a
apply PR feedback
ramtinms Jan 18, 2024
ae18742
Merge branch 'ramtin/5198-update-evm-code-storage' of github.com:onfl…
ramtinms Jan 18, 2024
c1264f8
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 18, 2024
0af0871
Merge branch 'master' into ramtin/5198-update-evm-code-storage
ramtinms Jan 18, 2024
bbc4551
fix block events
ramtinms Jan 18, 2024
c761a32
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 18, 2024
772ca40
update emulator to v0.58.1-commit, keep Cadence at v0.42.7, keep core…
Jan 18, 2024
d78eebe
mod tidy
Jan 18, 2024
e537282
fix integration import order
Jan 18, 2024
8d74789
Merge pull request #5242 from onflow/janez/atree-migration-cleanup
janezpodhostnik Jan 18, 2024
4cdf146
fix insecure import order
Jan 18, 2024
3dbb05a
downgrade skds in integration to fix test issue
Jan 18, 2024
7c9c04e
Merge branch 'master' into yahya/6927-duplicate-ihave-topics
yhassanzadeh13 Jan 18, 2024
90bfcec
fixes TestGossipSubSpamMitigationIntegration
yhassanzadeh13 Jan 18, 2024
38ad17e
Merge branch 'yahya/6927-duplicate-ihave-topics' of github.com:onflow…
yhassanzadeh13 Jan 18, 2024
0b07c2b
fixes broken promises tests
yhassanzadeh13 Jan 18, 2024
c168fe4
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 18, 2024
7654a22
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 18, 2024
089c2e7
relaxes invalid message delivery conditions
yhassanzadeh13 Jan 19, 2024
20effab
empty commit
yhassanzadeh13 Jan 19, 2024
3355eca
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 19, 2024
ddf6398
Switch EVM account
janezpodhostnik Jan 19, 2024
67d06ef
Separate EVM storage account from contract account
janezpodhostnik Jan 19, 2024
ff27357
chenge the storage limit exception
janezpodhostnik Jan 19, 2024
c955a24
Merge branch 'master' into yahya/6927-duplicate-ihave-topics
yhassanzadeh13 Jan 19, 2024
5354612
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 19, 2024
7f21caf
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 19, 2024
6629002
Merge branch 'master' into ramtin/5198-update-evm-code-storage
ramtinms Jan 19, 2024
665ed3d
add util command to find block id by commitment and height range
zhangchiqing Jan 12, 2024
f0e7058
add checkpoint-trie-stats to util
zhangchiqing Jan 12, 2024
1435e7e
find block by commitments
zhangchiqing Jan 12, 2024
bd5e08a
Apply suggestions from code review
zhangchiqing Jan 18, 2024
f9bf295
fix lint
zhangchiqing Jan 19, 2024
afb8708
Merge pull request #5240 from onflow/leo/util-find-block-by-commit
zhangchiqing Jan 19, 2024
6e3e9f6
Reconcile build automation
sjonpaulbrown Jan 19, 2024
dbb54fe
Merge branch 'master' into jp/reconcile-build-changes
sjonpaulbrown Jan 19, 2024
93eaecd
Add env var to CI docker build
sjonpaulbrown Jan 20, 2024
c39bbd8
Fix CI docker builds
sjonpaulbrown Jan 20, 2024
c34c85c
Fix ghost Make target
sjonpaulbrown Jan 20, 2024
e3678cb
Fix additional builds that leverage Dockerfile
sjonpaulbrown Jan 20, 2024
ccad76a
Remove duplicate line
sjonpaulbrown Jan 20, 2024
b2a8d9e
Fix Dockerfile
sjonpaulbrown Jan 20, 2024
010094d
Merge branch 'master' into gregor/evm/event-encoding
sideninja Jan 22, 2024
420e295
Merge pull request #5091 from onflow/gregor/evm/event-encoding
sideninja Jan 22, 2024
c4c4240
Include the block hash in evm.BlockExecuted event payload
m-Peter Jan 17, 2024
93a20d4
Change EVM adress name to EVMContract
janezpodhostnik Jan 22, 2024
acea1d4
Merge pull request #5245 from m-Peter/evm-event-with-block-hash
sideninja Jan 22, 2024
e95b07c
Merge pull request #5237 from onflow/gregor/evm/parent-hash
sideninja Jan 22, 2024
f496a55
Merge pull request #5255 from onflow/janez/switch-evm-account
janezpodhostnik Jan 22, 2024
d509e71
set epoch safety threshold default in localnet
jordanschalm Jan 22, 2024
342d0c1
add safety threshold to makefile
jordanschalm Jan 22, 2024
201f380
Add comments to Dockerfile
sjonpaulbrown Jan 22, 2024
1b610ec
Update comment
sjonpaulbrown Jan 22, 2024
db64207
lint fix
yhassanzadeh13 Jan 22, 2024
fbe37a5
Merge remote-tracking branch 'origin/master' into yahya/6927-duplicat…
yhassanzadeh13 Jan 22, 2024
0915261
Merge branch 'yahya/6927-duplicate-ihave-topics' into yahya/relax-inv…
yhassanzadeh13 Jan 22, 2024
1ba5e34
[CI] Revert change to use semver build for without-netgo images
peterargue Jan 22, 2024
c7d973c
Merge branch 'master' into jp/reconcile-build-changes
sjonpaulbrown Jan 22, 2024
03f0bea
Merge branch 'master' into ramtin/5198-update-evm-code-storage
ramtinms Jan 22, 2024
eb0c184
merge master
Jan 22, 2024
2b968b4
add note about replaces
Jan 22, 2024
9240c25
update test
ramtinms Jan 22, 2024
fea272a
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 22, 2024
c403fed
mod tidy
Jan 22, 2024
9b71d82
move maxCollectionHeight to metrics
zhangchiqing Jan 16, 2024
d60cc1a
use StrictMonotonousCounter
zhangchiqing Jan 22, 2024
5573867
Merge pull request #5235 from onflow/ramtin/5198-update-evm-code-storage
ramtinms Jan 22, 2024
89594b2
Merge pull request #5234 from onflow/yahya/6927-duplicate-ihave-topics
yhassanzadeh13 Jan 22, 2024
3a26c2e
update genesis block
ramtinms Jan 22, 2024
c519905
tidy testutils
ramtinms Jan 22, 2024
a6abd9b
apply pr feedbacks
ramtinms Jan 22, 2024
5d68c75
skips a flakey test
yhassanzadeh13 Jan 22, 2024
4ce1643
Merge branch 'master' into yahya/relax-invalid-message-deliveyr
yhassanzadeh13 Jan 22, 2024
d43c664
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 22, 2024
42e05c5
Merge branch 'master' into ramtin/5222-unify-balance-representation
ramtinms Jan 22, 2024
f2e20ed
Merge pull request #5265 from onflow/yahya/relax-invalid-message-deli…
yhassanzadeh13 Jan 22, 2024
82a344e
Merge pull request #5267 from onflow/petera/revert-withoutnetgo-tag-name
peterargue Jan 22, 2024
e3f4d9c
Merge pull request #5236 from onflow/ramtin/5222-unify-balance-repres…
ramtinms Jan 22, 2024
690a250
Merge pull request #5258 from onflow/jp/reconcile-build-changes
sjonpaulbrown Jan 23, 2024
55f2a23
Merge branch 'master' into ramtin/5199-add-precompile
ramtinms Jan 23, 2024
a930a00
apply PR feedback
ramtinms Jan 23, 2024
1fe633b
Update utils/rand/rand.go
tarakby Jan 23, 2024
3dd9352
update comment
zhangchiqing Jan 23, 2024
d6d95e5
Merge branch 'master' into tarak/use-onflow-crypto
tarakby Jan 23, 2024
d2d88f2
Increase log level for cadence data validation
janezpodhostnik Jan 23, 2024
9746b7f
state payload is not found is an error
janezpodhostnik Jan 23, 2024
3107bc9
Merge pull request #5233 from onflow/ramtin/5199-add-precompile
ramtinms Jan 23, 2024
6ca1ba6
debugging
yhassanzadeh13 Jan 23, 2024
34c11b0
fixes the issue
yhassanzadeh13 Jan 23, 2024
74d2e66
Merge remote-tracking branch 'origin/master' into yahya/fix-backend-test
yhassanzadeh13 Jan 23, 2024
6df5d64
removes test from quarantining
yhassanzadeh13 Jan 23, 2024
58e24d9
removes dup
yhassanzadeh13 Jan 23, 2024
61d49dd
Merge branch 'master' into tarak/use-onflow-crypto
tarakby Jan 23, 2024
6fee996
Merge pull request #5263 from onflow/jordan/hf-localnet-safety-threshold
jordanschalm Jan 23, 2024
759ba39
re-add the --no-migration flag
janezpodhostnik Jan 23, 2024
114d556
Merge branch 'master' into tarak/use-onflow-crypto
Jan 23, 2024
0979fb2
Merge pull request #4633 from onflow/janez/atree-migration
janezpodhostnik Jan 23, 2024
6f4e72d
Merge branch 'master' into yahya/fix-backend-test
yhassanzadeh13 Jan 24, 2024
e893b21
reduce the scope of deposit to COAs only
ramtinms Jan 24, 2024
fd923d8
Merge branch 'master' into tarak/use-onflow-crypto
tarakby Jan 24, 2024
c0ae54d
Merge branch 'tarak/use-onflow-crypto' of github.com:onflow/flow-go i…
Jan 24, 2024
a6a7226
attempt to fix core-contracts version in integration
Jan 24, 2024
cf75dac
fix extra line in mod.go
Jan 24, 2024
5ea8999
Merge pull request #5121 from onflow/tarak/use-onflow-crypto
tarakby Jan 24, 2024
c6fc1d5
Merge branch 'master' into yahya/fix-backend-test
yhassanzadeh13 Jan 24, 2024
45cf91b
Merge pull request #5275 from onflow/yahya/fix-backend-test
yhassanzadeh13 Jan 24, 2024
38c825f
Merge pull request #5244 from onflow/leo/update-ingestion-metrics
zhangchiqing Jan 24, 2024
098ff23
Merge pull request #5280 from onflow/ramtin/5227-evm-reduce-the-scope…
ramtinms Jan 24, 2024
fae4a0f
remove unneded file and add capcons domain
janezpodhostnik Jan 24, 2024
7f0980e
Merge pull request #5284 from onflow/janez/atree-migration-fixes
janezpodhostnik Jan 24, 2024
2f8dfa0
Merge master to feature/stable-cadence
SupunS Jan 24, 2024
0cd0867
Update code to match API changes
SupunS Jan 24, 2024
e7c4dea
update to latest version of core-contracts and fix some tests
joshuahannan Jan 25, 2024
334456a
use correct core-contracts dependencies
joshuahannan Jan 25, 2024
ff22eed
update dependencies
turbolent Jan 25, 2024
b2f1d35
update insecure
turbolent Jan 25, 2024
2b87185
update integration
turbolent Jan 25, 2024
9218d48
Update go.mod
turbolent Jan 25, 2024
ac50fd1
tidy
turbolent Jan 25, 2024
17e756a
Merge branch 'josh/update-core-contracts' into bastian/stable-cadence…
turbolent Jan 25, 2024
bf3bdc0
update to Cadence v1.0.0-M3
turbolent Jan 25, 2024
298ef0f
add burner address
turbolent Jan 25, 2024
f3bd7a6
Merge branch 'josh/update-core-contracts' into bastian/stable-cadence…
turbolent Jan 25, 2024
370c4b9
remove replace statements
turbolent Jan 25, 2024
f8b03b3
update mocks
turbolent Jan 25, 2024
516bdef
adjust expected state commitments
turbolent Jan 25, 2024
310fb8f
adjust state commitments
turbolent Jan 25, 2024
ae016e6
adjust tests
turbolent Jan 25, 2024
90f5352
deploy new Burner contract, currently needed for FT
turbolent Jan 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ jobs:
- name: Build/Push ${{ matrix.role }} images
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
GITHUB_CREDS: "machine github.com login ${{ secrets.REPO_SYNC_USER }} password ${{ secrets.REPO_SYNC }}"
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-${{ matrix.role }} docker-push-${{ matrix.role }}

- name: Build/Push ${{ matrix.role }} without_netgo images
if: ${{ inputs.include_without_netgo }}
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
GITHUB_CREDS: "machine github.com login ${{ secrets.REPO_SYNC_USER }} password ${{ secrets.REPO_SYNC }}"
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-${{ matrix.role }}-without-netgo docker-push-${{ matrix.role }}-without-netgo
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: |
gcloud auth configure-docker
- name: Docker build
env:
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-flow
make docker-build-flow-without-netgo
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ jobs:
docker-build:
name: Docker Build
runs-on: buildjet-16vcpu-ubuntu-2204
env:
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -187,6 +189,8 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Docker build
env:
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: make docker-build-flow docker-build-flow-corrupt
- name: Save Docker images
run: |
Expand Down
34 changes: 19 additions & 15 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 @@ -97,7 +97,7 @@ go-math-rand-check:
# `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
# - "onflow/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"'; \
Expand Down Expand Up @@ -277,14 +277,14 @@ docker-ci-integration:
.PHONY: docker-build-collection
docker-build-collection:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/collection --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/collection:latest" -t "$(CONTAINER_REGISTRY)/collection:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/collection:$(IMAGE_TAG)" .

.PHONY: docker-build-collection-without-netgo
docker-build-collection-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/collection --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/collection:$(IMAGE_TAG_NO_NETGO)" .

Expand All @@ -296,14 +296,13 @@ docker-build-collection-debug:
.PHONY: docker-build-consensus
docker-build-consensus:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/consensus --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/consensus:latest" -t "$(CONTAINER_REGISTRY)/consensus:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/consensus:$(IMAGE_TAG)" .

.PHONY: docker-build-consensus-without-netgo
docker-build-consensus-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/consensus --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/consensus:$(IMAGE_TAG_NO_NETGO)" .

Expand All @@ -315,14 +314,14 @@ docker-build-consensus-debug:
.PHONY: docker-build-execution
docker-build-execution:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/execution --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/execution:latest" -t "$(CONTAINER_REGISTRY)/execution:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/execution:$(IMAGE_TAG)" .

.PHONY: docker-build-execution-without-netgo
docker-build-execution-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/execution --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/execution:$(IMAGE_TAG_NO_NETGO)" .

Expand All @@ -338,20 +337,21 @@ docker-build-execution-corrupt:
./insecure/cmd/mods_override.sh
docker build -f cmd/Dockerfile --build-arg TARGET=./insecure/cmd/execution --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
-t "$(CONTAINER_REGISTRY)/execution-corrupted:latest" -t "$(CONTAINER_REGISTRY)/execution-corrupted:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/execution-corrupted:$(IMAGE_TAG)" .
./insecure/cmd/mods_restore.sh

.PHONY: docker-build-verification
docker-build-verification:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/verification --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/verification:latest" -t "$(CONTAINER_REGISTRY)/verification:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/verification:$(IMAGE_TAG)" .

.PHONY: docker-build-verification-without-netgo
docker-build-verification-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/verification --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/verification:$(IMAGE_TAG_NO_NETGO)" .

Expand All @@ -367,26 +367,28 @@ docker-build-verification-corrupt:
./insecure/cmd/mods_override.sh
docker build -f cmd/Dockerfile --build-arg TARGET=./insecure/cmd/verification --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
-t "$(CONTAINER_REGISTRY)/verification-corrupted:latest" -t "$(CONTAINER_REGISTRY)/verification-corrupted:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/verification-corrupted:$(IMAGE_TAG)" .
./insecure/cmd/mods_restore.sh

.PHONY: docker-build-access
docker-build-access:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/access --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
-t "$(CONTAINER_REGISTRY)/access:latest" -t "$(CONTAINER_REGISTRY)/access:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/access:$(IMAGE_TAG)" .

.PHONY: docker-build-access-without-netgo
docker-build-access-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/access --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/access:$(IMAGE_TAG_NO_NETGO)" .

.PHONY: docker-build-access-debug
docker-build-access-debug:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/access --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target debug \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
-t "$(CONTAINER_REGISTRY)/access-debug:latest" -t "$(CONTAINER_REGISTRY)/access-debug:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/access-debug:$(IMAGE_TAG)" .

# build corrupt access node for BFT testing
Expand All @@ -395,21 +397,22 @@ docker-build-access-corrupt:
#temporarily make insecure/ a non-module to allow Docker to use corrupt builders there
./insecure/cmd/mods_override.sh
docker build -f cmd/Dockerfile --build-arg TARGET=./insecure/cmd/access --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/access-corrupted:latest" -t "$(CONTAINER_REGISTRY)/access-corrupted:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/access-corrupted:$(IMAGE_TAG)" .
./insecure/cmd/mods_restore.sh

.PHONY: docker-build-observer
docker-build-observer:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/observer --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
-t "$(CONTAINER_REGISTRY)/observer:latest" -t "$(CONTAINER_REGISTRY)/observer:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/observer:$(IMAGE_TAG)" .

.PHONY: docker-build-observer-without-netgo
docker-build-observer-without-netgo:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/observer --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG_NO_NETGO) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--secret id=git_creds,env=GITHUB_CREDS --build-arg GOPRIVATE=$(GOPRIVATE) \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
--label "git_commit=${COMMIT}" --label "git_tag=$(IMAGE_TAG_NO_NETGO)" \
-t "$(CONTAINER_REGISTRY)/observer:$(IMAGE_TAG_NO_NETGO)" .

Expand All @@ -418,6 +421,7 @@ docker-build-observer-without-netgo:
docker-build-ghost:
docker build -f cmd/Dockerfile --build-arg TARGET=./cmd/ghost --build-arg COMMIT=$(COMMIT) --build-arg VERSION=$(IMAGE_TAG) --build-arg GOARCH=$(GOARCH) --build-arg CGO_FLAG=$(CRYPTO_FLAG) --target production \
--label "git_commit=${COMMIT}" --label "git_tag=${IMAGE_TAG}" \
--secret id=cadence_deploy_key,env=CADENCE_DEPLOY_KEY --build-arg GOPRIVATE=$(GOPRIVATE) \
-t "$(CONTAINER_REGISTRY)/ghost:latest" -t "$(CONTAINER_REGISTRY)/ghost:$(SHORT_COMMIT)" -t "$(CONTAINER_REGISTRY)/ghost:$(IMAGE_TAG)" .

.PHONY: docker-build-ghost-debug
Expand Down
6 changes: 3 additions & 3 deletions access/legacy/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"errors"
"fmt"

"github.com/onflow/crypto"
"github.com/onflow/crypto/hash"
accessproto "github.com/onflow/flow/protobuf/go/flow/legacy/access"
entitiesproto "github.com/onflow/flow/protobuf/go/flow/legacy/entities"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/onflow/flow-go/access"
"github.com/onflow/flow-go/crypto"
"github.com/onflow/flow-go/crypto/hash"
"github.com/onflow/flow-go/engine/common/rpc/convert"
"github.com/onflow/flow-go/model/flow"
)
Expand Down Expand Up @@ -69,7 +69,7 @@ func MessageToTransaction(m *entitiesproto.Transaction, chain flow.Chain) (flow.
t.SetScript(m.GetScript())
t.SetArguments(m.GetArguments())
t.SetReferenceBlockID(flow.HashToID(m.GetReferenceBlockId()))
t.SetGasLimit(m.GetGasLimit())
t.SetComputeLimit(m.GetGasLimit())

return *t, nil
}
Expand Down
5 changes: 2 additions & 3 deletions access/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import (
"errors"
"fmt"

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

"github.com/onflow/cadence/runtime/parser"
"github.com/onflow/crypto"

"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/state"
"github.com/onflow/flow-go/state/protocol"
)

Expand Down
19 changes: 15 additions & 4 deletions cmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ ENV GOPRIVATE=

COPY . .

RUN --mount=type=cache,sharing=locked,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=secret,id=git_creds,dst=/root/.netrc
# Update the git config to use SSH rather than HTTPS for clones
RUN git config --global [email protected]:.insteadOf https://github.com/
RUN mkdir ~/.ssh

# Add GitHub known host to avoid prompts or failures on key check
RUN ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

####################################
## (3) Build the production app binary
Expand All @@ -43,7 +46,10 @@ ARG CGO_FLAG
# https://github.com/golang/go/issues/27719#issuecomment-514747274
RUN --mount=type=cache,sharing=locked,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=secret,id=git_creds,dst=/root/.netrc \
--mount=type=secret,id=cadence_deploy_key \
# We evaluate the SSH agent to safely pass in a key for cloning dependencies
# We explicitly use ";" rather than && as we want to safely pass if it is unavailable
eval `ssh-agent -s` && printf "%s\n" "$(cat /run/secrets/cadence_deploy_key)" | ssh-add - ; \
CGO_ENABLED=1 GOOS=linux CGO_FLAGS="${CGO_FLAG}" go build --tags "${TAGS}" -ldflags "-extldflags -static \
-X 'github.com/onflow/flow-go/cmd/build.commit=${COMMIT}' -X 'github.com/onflow/flow-go/cmd/build.semver=${VERSION}'" \
-o ./app ${TARGET}
Expand All @@ -62,9 +68,14 @@ ENTRYPOINT ["/bin/app"]
FROM build-env as build-debug
WORKDIR /app
ARG GOARCH=amd64

RUN --mount=type=ssh \
--mount=type=cache,sharing=locked,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=secret,id=cadence_deploy_key \
# We evaluate the SSH agent to safely pass in a key for cloning dependencies
# We explicitly use ";" rather than && as we want to safely pass if it is unavailable
eval `ssh-agent -s` && printf "%s\n" "$(cat /run/secrets/cadence_deploy_key)" | ssh-add - ; \
CGO_ENABLED=1 GOOS=linux CGO_FLAGS="${CGO_FLAG}" go build --tags "netgo" -ldflags "-extldflags -static \
-X 'github.com/onflow/flow-go/cmd/build.commit=${COMMIT}' -X 'github.com/onflow/flow-go/cmd/build.semver=${VERSION}'" \
-gcflags="all=-N -l" -o ./app ${TARGET}
Expand Down
2 changes: 1 addition & 1 deletion cmd/access/node_builder/access_node_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
badger "github.com/ipfs/go-ds-badger2"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/routing"
"github.com/onflow/crypto"
"github.com/onflow/flow/protobuf/go/flow/access"
"github.com/onflow/go-bitswap"
"github.com/rs/zerolog"
Expand All @@ -34,7 +35,6 @@ import (
hotstuffvalidator "github.com/onflow/flow-go/consensus/hotstuff/validator"
"github.com/onflow/flow-go/consensus/hotstuff/verification"
recovery "github.com/onflow/flow-go/consensus/recovery/protocol"
"github.com/onflow/flow-go/crypto"
"github.com/onflow/flow-go/engine"
"github.com/onflow/flow-go/engine/access/ingestion"
pingeng "github.com/onflow/flow-go/engine/access/ping"
Expand Down
2 changes: 1 addition & 1 deletion cmd/bootstrap/cmd/access_keygen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"strings"
"time"

"github.com/onflow/crypto"
"github.com/spf13/cobra"

"github.com/onflow/flow-go/crypto"
"github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/utils/grpcutils"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/bootstrap/cmd/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package cmd
import (
"fmt"

"github.com/onflow/crypto"

bootstrapDKG "github.com/onflow/flow-go/cmd/bootstrap/dkg"
"github.com/onflow/flow-go/crypto"
model "github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/dkg"
"github.com/onflow/flow-go/model/encodable"
Expand Down
10 changes: 4 additions & 6 deletions cmd/bootstrap/cmd/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ import (
"net"
"strconv"

"github.com/onflow/flow-go/cmd"
"github.com/onflow/flow-go/cmd/bootstrap/utils"
p2putils "github.com/onflow/flow-go/network/p2p/utils"

"github.com/multiformats/go-multiaddr"
"github.com/onflow/crypto"
"github.com/spf13/cobra"

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

"github.com/onflow/flow-go/cmd"
"github.com/onflow/flow-go/cmd/bootstrap/utils"
model "github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/flow"
p2putils "github.com/onflow/flow-go/network/p2p/utils"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/bootstrap/cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package cmd
import (
"fmt"

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

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

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

model "github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/encodable"
Expand Down
2 changes: 1 addition & 1 deletion cmd/bootstrap/cmd/machine_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"path/filepath"
"strings"

"github.com/onflow/crypto"
"github.com/spf13/cobra"

"github.com/onflow/flow-go/cmd"
"github.com/onflow/flow-go/crypto"
model "github.com/onflow/flow-go/model/bootstrap"
"github.com/onflow/flow-go/model/flow"
ioutils "github.com/onflow/flow-go/utils/io"
Expand Down
6 changes: 2 additions & 4 deletions cmd/bootstrap/cmd/machine_account_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import (
"fmt"
"path"

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

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

"github.com/onflow/crypto"
"github.com/spf13/cobra"

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

Expand Down
3 changes: 1 addition & 2 deletions cmd/bootstrap/cmd/observer_network_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import (
"fmt"
"os"

"github.com/onflow/crypto"
"github.com/spf13/cobra"

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

"github.com/onflow/flow-go/cmd"
"github.com/onflow/flow-go/cmd/bootstrap/utils"
)
Expand Down
Loading
Loading