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

Release Candidate v2023.2.2 #4437

Merged
merged 424 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
424 commits
Select commit Hold shift + click to select a range
7542ac5
fix rosetta test
Dec 28, 2022
9ea049b
add comments and refactor verify sig
Dec 28, 2022
1bd71f6
add comments, remove extra function
GheisMohammadi Dec 28, 2022
e8ef1ea
add comment
GheisMohammadi Dec 28, 2022
b33a864
refactor errors, rename metrics
GheisMohammadi Dec 29, 2022
7280ede
refactor p2p host creation
GheisMohammadi Jan 2, 2023
e6452ff
fix initsync and host creation
GheisMohammadi Jan 3, 2023
057a729
fix short range hash chain
GheisMohammadi Jan 4, 2023
8bd82bf
fix beacon node detection for p2p protocol
GheisMohammadi Jan 5, 2023
390c9f9
refactor stream peer cooldown and fix protocol beacon node field
GheisMohammadi Jan 6, 2023
905ff65
refactor p2p host and routing
GheisMohammadi Jan 11, 2023
c9c57f8
fix p2p discovery test issue
GheisMohammadi Jan 12, 2023
7950394
add MaxAdvertiseWaitTime to handle advertisements interval and addres…
GheisMohammadi Jan 13, 2023
da66405
terminal print the peer id and proto id
GheisMohammadi Jan 16, 2023
0c9fb19
fix boot complete message when node is shut down
GheisMohammadi Jan 19, 2023
5625f6e
add new config option ( ForceReachabilityPublic ) to fix local-net co…
GheisMohammadi Jan 20, 2023
9084066
fix self query issue
GheisMohammadi Jan 26, 2023
6f78ac7
fix test NewDNSSyncingPeerProvider
GheisMohammadi Jan 26, 2023
4bb360d
[testnet] disable leader rotation
MaxMustermann2 Feb 2, 2023
5361044
fix discovery issue for legacy sync
GheisMohammadi Feb 10, 2023
d46aaf5
add watermark low/high options for p2p connection manager
GheisMohammadi Feb 13, 2023
047d104
add test for new conn manager flags
GheisMohammadi Feb 13, 2023
26fd2d4
fix dedent
GheisMohammadi Feb 14, 2023
b13a5aa
add comment to inform about p2p connection manager options
GheisMohammadi Feb 14, 2023
cd86099
fix max height issue
GheisMohammadi Feb 3, 2023
f5c95a6
add a separate log for get max height error
GheisMohammadi Feb 3, 2023
267edfd
fix log
GheisMohammadi Feb 10, 2023
6dfcd51
feat: triesInMemory flag
Feb 10, 2023
b51be8b
fix: panic if TriesInMemory is 1 to 2
Feb 10, 2023
01c9aa1
in progress.
Frozen Aug 31, 2022
f636ad3
consensus check is forked
Frozen Sep 5, 2022
2706ea0
fix
Frozen Sep 10, 2022
05b423c
Cleanup and fix update pub keys.
Frozen Sep 12, 2022
cd00679
fix
Frozen Sep 12, 2022
d2c1ae6
activate epoch
Frozen Oct 17, 2022
2d68c81
EpochTBD for leader rotation epoch.
Frozen Oct 17, 2022
09d411e
295 epoch
Frozen Oct 18, 2022
d8a6fb4
Decider no longer requires public keys as a dependency. (#4289)
Frozen Oct 28, 2022
5de514d
Consensus doesn't require anymore `Node` as a circular dependency.
Frozen Oct 19, 2022
d6f8dae
Proper blockchain initialization.
Frozen Oct 27, 2022
9ddb48e
Rwlock consensus.
Frozen Nov 1, 2022
432ac56
Removed channels.
Frozen Nov 1, 2022
95ca3af
Removed view change locks.
Frozen Nov 1, 2022
3772fbe
Removed timers locks.
Frozen Nov 1, 2022
a36b8c2
Removed fbft locks.
Frozen Nov 1, 2022
240ad81
Removed multiSigMutex locks.
Frozen Nov 1, 2022
bfdd765
Removed leader locks.
Frozen Nov 1, 2022
8d4876e
Removed additional locks and isViewChange.
Frozen Nov 2, 2022
2506956
Added locks detected by race.
Frozen Nov 2, 2022
8be3607
Added locks detected by race.
Frozen Nov 2, 2022
696f1a0
Locks for start.
Frozen Nov 2, 2022
51814a5
Removed additional logs.
Frozen Nov 2, 2022
44a9f83
Removed additional locks.
Frozen Nov 2, 2022
5deedd5
Removed additional locks.
Frozen Nov 2, 2022
0f35351
Make func private.
Frozen Nov 6, 2022
a8d3e1e
Make VerifyBlock private.
Frozen Nov 6, 2022
f5e2b81
Make IsLeader private.
Frozen Nov 6, 2022
25a0655
Make ParseFBFTMessage private.
Frozen Nov 6, 2022
fb3130e
Fix remove locks.
Frozen Nov 7, 2022
c87e14b
Added additional locks.
Frozen Nov 7, 2022
70885ae
Added additional locks.
Frozen Nov 7, 2022
e581feb
Added readSignatureBitmapPayload locks.
Frozen Nov 7, 2022
ba682fc
Added HandleMessageUpdate locks.
Frozen Nov 7, 2022
9cc517d
Added LastMile locks.
Frozen Nov 7, 2022
119c256
Locks for IsValidatorInCommittee.
Frozen Nov 7, 2022
8f99311
Fixed locks.
Frozen Nov 7, 2022
183ea26
Fixed tests.
Frozen Nov 7, 2022
b281f24
Fixed tests.
Frozen Nov 7, 2022
f8a64ed
Fixed lock.
Frozen Nov 8, 2022
6883dd3
Rebased over leader rotation.
Frozen Nov 8, 2022
b9f71e3
Fix formatting.
Frozen Nov 18, 2022
192a701
Rebased onto dev.
Frozen Jan 17, 2023
07a38ac
in progress.
Frozen Aug 31, 2022
6703feb
consensus check is forked
Frozen Sep 5, 2022
2381d0a
update master
Frozen Sep 5, 2022
a34e4c8
fix leader
Frozen Sep 5, 2022
e396b4f
check leader for N blocks
Frozen Sep 7, 2022
45e9bce
fix
Frozen Sep 10, 2022
7494703
fix
Frozen Sep 12, 2022
d13ef3a
Cleanup and fix update pub keys.
Frozen Sep 12, 2022
1c190b8
Rotate leader.
Frozen Sep 12, 2022
5874c30
fix
Frozen Sep 12, 2022
37d82f9
Cleaned.
Frozen Sep 12, 2022
c52380f
Cache for `GetLeaderPubKeyFromCoinbase`, removed `NthNextHmyExt`.
Frozen Sep 19, 2022
455b8e6
comment activation
Frozen Oct 17, 2022
692b7a2
295 epoch
Frozen Oct 18, 2022
3ba619b
Fix failed tests.
Frozen Nov 8, 2022
ca20ab7
Fixed code review.
Frozen Nov 9, 2022
25fe6a2
Fix review comments.
Frozen Nov 10, 2022
5f17855
Merged leader rotation.
Frozen Jan 17, 2023
25c66d2
Rebased on dev.
Frozen Jan 21, 2023
cd97b99
Rebased on dev.
Frozen Jan 27, 2023
9dabe14
Fix usage of private methods.
Frozen Jan 27, 2023
60fc56d
Fix usage of private methods.
Frozen Jan 28, 2023
ccff38e
Fix usage of private methods.
Frozen Jan 28, 2023
268ef80
Removed deadcode, LockedFBFTPhase.
Frozen Jan 31, 2023
e9843f9
Fix review comment.
Frozen Jan 31, 2023
1ac5737
Fix review comment.
Frozen Jan 31, 2023
92add1f
Go mod tidy.
Frozen Jan 31, 2023
567c522
Set to EpochTBD.
Frozen Jan 31, 2023
e6e936e
Fix tests.
Frozen Jan 31, 2023
8811714
[core] fix state handling of self destruct
MaxMustermann2 Feb 16, 2023
2c119a6
Fixed race error.
Frozen Feb 19, 2023
bc3aec4
rpc: add configurable http and `eth_call` timeout
MaxMustermann2 Feb 23, 2023
2bd16b8
remove default timeouts
MaxMustermann2 Feb 23, 2023
77563d6
store the evm call timeout in rosetta object
MaxMustermann2 Feb 23, 2023
1d6259b
[cmd] actually apply ToRPCServerConfig
MaxMustermann2 Feb 27, 2023
8d15af1
Removed unused method.
Frozen Feb 21, 2023
09cf941
Rotate external leaders on non-beacon chains.
Frozen Feb 21, 2023
e015230
Fix nil panic.
Frozen Feb 22, 2023
5589753
Merge branch 'dev' of https://github.com/harmony-one/harmony into dev
ONECasey Mar 14, 2023
d6a3c93
in progress.
Frozen Aug 31, 2022
fc25a1a
in progress.
Frozen Aug 31, 2022
686a80a
in progress.
Frozen Aug 31, 2022
f927172
consensus check is forked
Frozen Sep 5, 2022
f3eb24c
update master
Frozen Sep 5, 2022
83aa248
fix leader
Frozen Sep 5, 2022
527bfa6
check leader for N blocks
Frozen Sep 7, 2022
1baa64c
fix
Frozen Sep 10, 2022
47706fa
fix
Frozen Sep 12, 2022
ebf0cd6
Cleanup and fix update pub keys.
Frozen Sep 12, 2022
9fc4611
Rotate leader.
Frozen Sep 12, 2022
261aa9b
fix
Frozen Sep 12, 2022
117cc2b
Cleaned.
Frozen Sep 12, 2022
f72199c
Cache for `GetLeaderPubKeyFromCoinbase`, removed `NthNextHmyExt`.
Frozen Sep 19, 2022
808c9e6
Fixed code review.
Frozen Nov 9, 2022
ce1e259
Fix review comments.
Frozen Nov 10, 2022
1c752ba
Returned locks in rotateLeader.
Frozen Nov 10, 2022
63b0064
Rebased onto dev.
Frozen Jan 17, 2023
13a85b5
staged stream sync v1.0
Dec 27, 2022
da1838a
refactor errors, rename metrics
GheisMohammadi Dec 29, 2022
f799b09
fix p2p discovery test issue
GheisMohammadi Jan 12, 2023
a65ab98
add watermark low/high options for p2p connection manager
GheisMohammadi Feb 13, 2023
b5769d7
fix dedent
GheisMohammadi Feb 14, 2023
24d3045
in progress.
Frozen Aug 31, 2022
9942839
consensus check is forked
Frozen Sep 5, 2022
b71fc85
fix
Frozen Sep 10, 2022
ab28f75
Cleanup and fix update pub keys.
Frozen Sep 12, 2022
bd12327
fix
Frozen Sep 12, 2022
f3f7f03
activate epoch
Frozen Oct 17, 2022
0a12fc6
EpochTBD for leader rotation epoch.
Frozen Oct 17, 2022
236cd86
295 epoch
Frozen Oct 18, 2022
77a55bc
Decider no longer requires public keys as a dependency. (#4289)
Frozen Oct 28, 2022
f8903ad
Consensus doesn't require anymore `Node` as a circular dependency.
Frozen Oct 19, 2022
66c6ee1
Proper blockchain initialization.
Frozen Oct 27, 2022
d20afa8
Rwlock consensus.
Frozen Nov 1, 2022
631edfe
Removed channels.
Frozen Nov 1, 2022
b2e6ee5
Removed view change locks.
Frozen Nov 1, 2022
cbcac64
Removed multiSigMutex locks.
Frozen Nov 1, 2022
a2b1fcd
Removed leader locks.
Frozen Nov 1, 2022
c83b126
Removed additional locks and isViewChange.
Frozen Nov 2, 2022
50f1c78
Added locks detected by race.
Frozen Nov 2, 2022
7db3134
Added locks detected by race.
Frozen Nov 2, 2022
5c7340c
Locks for start.
Frozen Nov 2, 2022
a0e8b19
Removed additional locks.
Frozen Nov 2, 2022
3db9efb
Removed additional locks.
Frozen Nov 2, 2022
d39fb7f
Make func private.
Frozen Nov 6, 2022
2621d31
Make VerifyBlock private.
Frozen Nov 6, 2022
ab919eb
Make IsLeader private.
Frozen Nov 6, 2022
ea0b97b
Make ParseFBFTMessage private.
Frozen Nov 6, 2022
0ec4c81
Fix remove locks.
Frozen Nov 7, 2022
9328a0a
Added additional locks.
Frozen Nov 7, 2022
cb78d53
Added additional locks.
Frozen Nov 7, 2022
e7b3b17
Added readSignatureBitmapPayload locks.
Frozen Nov 7, 2022
0369740
Added HandleMessageUpdate locks.
Frozen Nov 7, 2022
c2e1692
Added LastMile locks.
Frozen Nov 7, 2022
e08ce0a
Locks for IsValidatorInCommittee.
Frozen Nov 7, 2022
d1a0e9c
Fixed locks.
Frozen Nov 7, 2022
69ae68c
Fixed tests.
Frozen Nov 7, 2022
53dfc9d
Fixed lock.
Frozen Nov 8, 2022
31a9374
Rebased over leader rotation.
Frozen Nov 8, 2022
7dd6e46
in progress.
Frozen Aug 31, 2022
d1b3a5b
consensus check is forked
Frozen Sep 5, 2022
1b64682
update master
Frozen Sep 5, 2022
f907c70
fix leader
Frozen Sep 5, 2022
6d5753c
check leader for N blocks
Frozen Sep 7, 2022
411ec43
fix
Frozen Sep 10, 2022
e1c0e0e
fix
Frozen Sep 12, 2022
d8b64c9
Cleanup and fix update pub keys.
Frozen Sep 12, 2022
f0b72be
Rotate leader.
Frozen Sep 12, 2022
785b1ff
fix
Frozen Sep 12, 2022
7f5d465
Cleaned.
Frozen Sep 12, 2022
a735256
Cache for `GetLeaderPubKeyFromCoinbase`, removed `NthNextHmyExt`.
Frozen Sep 19, 2022
287b46c
Fix failed tests.
Frozen Nov 8, 2022
96ce60d
Fixed code review.
Frozen Nov 9, 2022
731e17f
Fix review comments.
Frozen Nov 10, 2022
661b937
Merged leader rotation.
Frozen Jan 17, 2023
900be09
Rebased on dev.
Frozen Jan 21, 2023
74c2e9b
Rebased on dev.
Frozen Jan 27, 2023
d64bfa7
Fix usage of private methods.
Frozen Jan 27, 2023
18cbe84
Fix usage of private methods.
Frozen Jan 28, 2023
eb6c946
Fix usage of private methods.
Frozen Jan 28, 2023
3af8a96
Removed deadcode, LockedFBFTPhase.
Frozen Jan 31, 2023
a1cda80
Fix review comment.
Frozen Jan 31, 2023
e87bd58
Go mod tidy.
Frozen Jan 31, 2023
adab3d6
remove default timeouts
MaxMustermann2 Feb 23, 2023
f6e5b84
Rotate external leaders on non-beacon chains.
Frozen Feb 21, 2023
e6287c1
Fix nil panic.
Frozen Feb 22, 2023
75df866
Fixes.
Frozen Mar 15, 2023
3f0a116
Update singleton.go
ONECasey Mar 15, 2023
ab4a105
evm: don't return extcode for validators
MaxMustermann2 Mar 16, 2023
d13f4d0
Fix context passing.
Frozen Mar 22, 2023
47386c0
Clean up code.
Frozen Mar 22, 2023
8c2ff80
Removed engine dependency.
Frozen Mar 21, 2023
1a70d5e
Fix possible panic.
Frozen Mar 21, 2023
15885f4
Clean up code.
Frozen Mar 22, 2023
5e1878a
Network type.
Frozen Mar 22, 2023
597ba2d
Fix tests.
Frozen Mar 22, 2023
fa84def
Revert "Removed engine dependency." (#4392)
ONECasey Mar 28, 2023
3226f31
gitignore the cache folder (#4389)
MaxMustermann2 Mar 29, 2023
49609d9
stable localnet with external validator (#4388)
sophoah Mar 29, 2023
a177546
Configurable tx pool. (#4240)
Frozen Mar 29, 2023
d21dc7f
Upgrade rawdb and statedb codes to add the latest functionalities of …
GheisMohammadi Mar 31, 2023
4760458
update all ethereum rawdb pointers to use harmony rawdb (#4395)
GheisMohammadi Mar 31, 2023
0a18d16
Fix reduce node dependencies. (#4379)
Frozen Apr 5, 2023
3ea6ebf
add prefix for contract code (#4397)
GheisMohammadi Apr 5, 2023
7d47d9e
Rotate external validators for non-beacon shards. (#4373)
Frozen Apr 5, 2023
53161ca
Add prefix for validator wrapper (#4402)
GheisMohammadi Apr 11, 2023
49e984e
add snapshot feature to state db (#4406)
GheisMohammadi Apr 24, 2023
d9bc7a8
Typed cache & Node cleanup. (#4409)
Frozen Apr 24, 2023
a2bd56e
core, internal/configs: HIP28-v2 fee collection (#4410)
MaxMustermann2 Apr 26, 2023
550a022
Minor: removed time.Sleep from tests. (#4412)
Frozen Apr 26, 2023
cb199d9
Mainnet Release Candidate 2023.1.2 (#4376) (#4414)
MaxMustermann2 Apr 26, 2023
2c7dc04
chore: merge `main` into `dev` (#4415)
MaxMustermann2 Apr 26, 2023
fb5cd83
internal/params: set validator code fix hard forks (#4413)
MaxMustermann2 Apr 26, 2023
525555d
internal/params: schedule HIP28v2 + val code fix (#4416)
MaxMustermann2 May 2, 2023
c783659
Dev fix conflicts. (#4417)
Frozen May 2, 2023
e7ed7c8
Merge branch 'main' into dev
ONECasey May 2, 2023
6203857
Remove dockerfile hardcoded version numbers (#4418)
ONECasey May 2, 2023
31d54dc
Fix concurrent map access. (#4421)
Frozen May 5, 2023
f317e53
add inspectdb to cli (#4426)
GheisMohammadi May 11, 2023
dae8215
fix beacon-ness in legacy sync (#4428)
GheisMohammadi May 11, 2023
ef171ef
Use Header instead Block. (#4424)
Frozen May 16, 2023
d2a3463
Sync dev with main branch ( v2023.2.1 hotfix ) (#4435)
sophoah May 20, 2023
a18e1e4
Feature: generating protoflles with docker. (#4427)
Frozen May 20, 2023
81c2fb0
fix stream log issue, replace print log error with warning (#4433)
GheisMohammadi May 20, 2023
c442723
hmy: Gas Price Oracle improvements (#4436)
MaxMustermann2 May 25, 2023
3d4bf3f
change cache folder in sync and move it under data folder (#4438)
GheisMohammadi May 30, 2023
78d8024
Consensus: reduce consensus initialization steps. (#4387)
Frozen May 31, 2023
10119bd
Fixed race errors in downloader & consensus (#4442)
Frozen Jun 5, 2023
6a2f9cd
Fix panic. (#4440)
Frozen Jun 6, 2023
61b8aba
Snapshot integration and add cache to statedb (#4419)
GheisMohammadi Jun 6, 2023
5cef048
Consensus: removed double initialization. (#4404)
Frozen Jun 7, 2023
8e076e6
Rebase dev to current main (#4443)
ONECasey Jun 8, 2023
cfd602b
Merge branch 'main' into dev
ONECasey Jun 8, 2023
0989002
Fix compile error. (#4444)
Frozen Jun 9, 2023
e4088f9
Fixed bug with storing already cancelled context. (#4445)
Frozen Jun 10, 2023
d1f986f
build: update base distribution in Travis (#4451)
MaxMustermann2 Jun 21, 2023
21b4988
[github action] build and push harmony proto docker image (#4453)
sophoah Jun 22, 2023
32e5913
rpc: add `net_listening` function (#4446)
MaxMustermann2 Jun 23, 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
35 changes: 35 additions & 0 deletions .github/workflows/build-docker-proto-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Push harmony proto Docker Image

on:
workflow_dispatch:

jobs:
build_and_push:
runs-on: ubuntu-latest

steps:
- name: Checkout harmony core code
uses: actions/checkout@v3
with:
path: harmony
ref: ${{ github.ref }}
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./harmony/api/service/legacysync/downloader
file: ./harmony/api/service/legacysync/downloader/Proto.Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
harmonyone/harmony-proto:latest
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
os: linux
dist: bionic
dist: jammy
language: go
go:
- 1.19.5
Expand All @@ -22,13 +22,10 @@ install:
- git clone https://github.com/harmony-one/harmony-test.git $GOPATH/src/github.com/harmony-one/harmony-test
- (cd $GOPATH/src/github.com/harmony-one/mcl; make -j4)
- (cd $GOPATH/src/github.com/harmony-one/bls; make BLS_SWAP_G=1 -j4)
- go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
- go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
- make go-get
- go install golang.org/x/tools/cmd/goimports@latest
- go install github.com/harmony-ek/gencodec@latest
- scripts/install_build_tools.sh
script:
- ${TEST}
after_success:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ go-test:

docker:
docker build --pull -t harmonyone/$(PKGNAME):latest -f scripts/docker/Dockerfile .

travis_go_checker:
bash ./scripts/travis_go_checker.sh
4 changes: 3 additions & 1 deletion api/proto/message/gen.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
protoc -I ./ message.proto --go_out=. --go-grpc_out=.
#!/bin/bash

docker run --platform linux/amd64 -v ${PWD}:/tmp ${PROTOC_IMAGE} /tmp/message.proto
2 changes: 1 addition & 1 deletion api/proto/message/message.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package message

//go:generate protoc message.proto --go_out=. --go-grpc_out=.
//go:generate ./gen.sh
82 changes: 41 additions & 41 deletions api/proto/message/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading