Casey Gardiner
a32a1755b3
Release Candidate hotfix: dev -> main ( #4333 )
...
* Rebase dev branch to current main branch (#4318 )
* add openssl compatibility on m2 chips using darwin (#4302 )
Adds support for OpenSSL on MacOS Ventura using m2 chips.
* [dumpdb] ensure each cross link is dumped (#4311 )
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests (#4315 )
* Removed legacy syncing peer provider. (#4260 )
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
* Remove blockchain dependency from engine. (#4310 )
* Consensus doesn't require anymore `Node` as a circular dependency.
* Rebased upon main.
* Removed engine beacon chain dependency.
* Fixed nil error.
* Fixed error.
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests
* fix format, remove wrongly added configs
* add back wrongly deleted comment
* fix travis go checker
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests (#4315 )
* Removed legacy syncing peer provider. (#4260 )
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
* Remove blockchain dependency from engine. (#4310 )
* Consensus doesn't require anymore `Node` as a circular dependency.
* Rebased upon main.
* Removed engine beacon chain dependency.
* Fixed nil error.
* Fixed error.
* bump libp2p to version 0.24.0 and update its dependencies and relevant tests
* fix format, remove wrongly added configs
* add back wrongly deleted comment
* fix travis go checker
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Fix for consensus stuck. (#4307 )
* Added check for block validity.
* Starts new view change if block invalid.
* Revert "Starts new view change if block invalid."
This reverts commit e889fa5da2e0780f087ab7dae5106b96287706db.
* staged dns sync v1.0 (#4316 )
* staged dns sync v1.0
* enabled stream downloader for localnet
* fix code review issues
* remove extra lock
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* add description for closing client and change randomize process to ma… (#4276 )
* add description for closing client and change randomize process to make sure only online nodes are added to sync config
* fix sync test
* fix legacy limitNumPeers test
* add WaitForEachPeerToConnect to node configs to make parallel peer connection optional
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Small fixes and code cleanup for network stack. (#4320 )
* staged dns sync v1.0
* enabled stream downloader for localnet
* fix code review issues
* remove extra lock
* staged dns sync v1.0
* Fixed, code clean up and other.
* Fixed, code clean up and other.
* Fixed, code clean up and other.
* Fix config.
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
* Fix not disable cache in archival mode (#4322 )
* Feature registry (#4324 )
* Registry for services.
* Test.
* Reverted comment.
* Fix.
* Slash fix (#4284 )
* Implementation of new slashing rate calculation
* Write tests for then new slashing rate calculation
* Add engine.applySlashing tests
* fix #4059
Co-authored-by: Alex Brezas <abresas@gmail.com>
Co-authored-by: Dimitris Lamprinos <pkakelas@gmail.com>
* Bump github.com/aws/aws-sdk-go from 1.30.1 to 1.33.0 (#4325 ) (#4328 )
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.30.1 to 1.33.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.30.1...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump github.com/btcsuite/btcd from 0.21.0-beta to 0.23.2 (#4327 ) (#4329 )
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.21.0-beta to 0.23.2.
- [Release notes](https://github.com/btcsuite/btcd/releases )
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES )
- [Commits](https://github.com/btcsuite/btcd/compare/v0.21.0-beta...v0.23.2 )
---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix epoch chain initialization issue (#4331 )
* Fix getting epoch number. (#4279 )
* feat: update dockerfile with some enhacement (#4250 )
* feat: update dockerfile with some enhancement
* [docker] fix: update golang version
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
* [build] github action update (#4336 )
* [ops] update github action files
* [ops] add debug message in github action
* [ops] fix GPG action variable
* [ops] fix macos-12 build
* [ops] fix macos-12 build
* [ops] fix macos-12 build
* [ops] fix macos-12 build
* [ops] fix macos-12 build
* [ops] fix macos-12 build
* [cmd] update year version (#4334 )
* chore(build): upgrade golang to 1.19 (#4335 )
* chore(build): upgrade golang to 1.19
* chore(build): run `go mod tidy`
* chore(build): run `goimports -w -e ${file}`
* chore(build): revert github ci changes
* chore(build): pin golang version to 1.19.5
* chore(build): fix protoc version on gen files
* chore(build): fix protoc-gen-go to v1.26.0 (#4337 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Max <82761650+MaxMustermann2@users.noreply.github.com>
Co-authored-by: Gheis <36589218+GheisMohammadi@users.noreply.github.com>
Co-authored-by: Konstantin <355847+Frozen@users.noreply.github.com>
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
Co-authored-by: Danny Willis <102543677+dannyposi@users.noreply.github.com>
Co-authored-by: PeekPI <894646171@QQ.COM>
Co-authored-by: Alex Brezas <abresas@gmail.com>
Co-authored-by: Dimitris Lamprinos <pkakelas@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gheis Mohammadi <Gheis.Mohammadi@gmail.com>
Co-authored-by: Jason Yi <90701258+jasonyic@users.noreply.github.com>
Co-authored-by: Soph <35721420+sophoah@users.noreply.github.com>
2 years ago
Max
9aa484c994
chore(build): fix protoc-gen-go to v1.26.0 ( #4337 )
2 years ago
Max
b300a4ec4d
chore(build): upgrade golang to 1.19 ( #4335 )
...
* chore(build): upgrade golang to 1.19
* chore(build): run `go mod tidy`
* chore(build): run `goimports -w -e ${file}`
* chore(build): revert github ci changes
* chore(build): pin golang version to 1.19.5
* chore(build): fix protoc version on gen files
2 years ago
Konstantin
97eb8d972f
Go vet fixed.
3 years ago
Leo Chen
463ec55c51
[build] update protoc version ( #4013 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
908ea1ae2a
[ci] update generated .pb files
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
fc4dc9ff73
[ci] fix travis build
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Rongjian Lan
dc24b3ad52
Basic multi-sig logic
4 years ago
Rongjian Lan
4452b36ee4
Rollup evm to geth v1.9.9 Muir Glacier ( #3356 )
...
* Rollup evm to geth v1.9.9 Muir Glacier
* fix go gen
* update intrinsic gas for istanbul
* Update statedb.Commit
* revert go gen result
* revert protobuf version
* update protobuf
* update go gen files
* set testnet epoch for evm upgrade
4 years ago
Rongjian Lan
79cf6afd37
revert multi-sig messaging code ( #3361 )
...
* revert multi-sig messaging code
4 years ago
Leo Chen
79d43c2ce8
fix test cases
...
updated protoc version
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
7dcdbe7d2b
fix golint
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
f42338c30b
Add back multi-sig support and fix the multi-sig check for harmony nodes ( #3337 )
...
* Revert "Revert "Add multi-sig merged messaging logic (#3300 )""
This reverts commit cbd11331b4
.
* Allow harmony nodes to sign multisig from multiple accounts
4 years ago
Rongjian Lan
a5fa880ae3
Revert "Add multi-sig merged messaging logic ( #3300 )" ( #3326 )
...
This reverts commit ecf151592e
.
4 years ago
Rongjian Lan
ecf151592e
Add multi-sig merged messaging logic ( #3300 )
...
* Revert "[go.mod] version upgrade of libp2p modules"
This reverts commit ce53468e3e
.
* Add multi-sig merged messaging logic
* fix view change signature issue
* support multi-sig consensus messages
* Add multi-sig support for slashing
* Fix bls mask issue in looping
* Fix multisig aggregation issue
* Make multisig bitmap setting atomic
* Fix for PR comments
* Update pb.go
* Revert "Update pb.go"
This reverts commit be625b80c0
.
* Resolve comments and fix slashing logic
* fix test
* revert slash logic change
* Add missing field in slash moment
* Fix comment
4 years ago
Leo Chen
b560f88978
[libp2p/consensus] p2p spamming defense
...
This is a big PR merged many small commits together.
We add the message validation function in libp2p layer.
In the validation function, we check the following conditions
1) the p2p message is a valid consensus message
2) the p2p message sender has a valid public key
3) the sender's public key is in the current committee
4) log the number of invalid/valid messages
After the validation, the valid messages will be forward to the network,
while the invalid messages will be filtered out.
The messages intended for the validator will be handled in the consensus layer.
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
7c292f64be
Fix viewID issue on prepared block during view change ( #2972 )
...
* Fix viewID issue on prepared block during view change
* Add more checks and remove comments
* Fix lint
* update rlp encode pointer
* Revert go gen changes
* add go gen code
* [api] Fix proto to pass travis
Co-authored-by: Edgar Aroutiounian <edgar.factorial@gmail.com>
5 years ago
Edgar Aroutiounian
bb538ce6e7
[api] Remove discovery service ( #2947 )
...
* [accounts] Remove dead code
* [api][node] Remove discovery service
* [api] Meaningless test
5 years ago
Edgar Aroutiounian
89fe991d59
[go.mod] Bump libraries ( #2824 )
...
* [go.mod] Bump libraries
* [proto] Regen b/c upgrades protoc, now message API changes
5 years ago
Edgar Aroutiounian
6c6006be44
[project][node] bump max message handlers per topic, update deprecated/staticcheck finds ( #2821 )
...
* [rpc] Remove filter code - it is not used
* [node][project] Remove more dead code, bump max message handler to 200
* [rpc] Undo overzealous filter removal
5 years ago
Edgar Aroutiounian
520332931b
[proto] Undo protobuf change, annotate with deprecated ( #2773 )
...
* [consensus] staticcheck fixes
* [proto] Remove unused file
* [proto] Undo changes to proto, annotate fields with deprecated for future reference
* [api] Make entire dir as was a7b7961~1
* [api] Remove dead tests
* [proto] Add deprecate tags
* [api] Autogen update since add deprecation tags, it just generated comments
* [api] Remove manager test again
* [api] Remove dead functions
* [api] Whitespace
* [api] Whitespace
* [api] Whitespace
* [p2p] Remove noisy log
5 years ago
Edgar Aroutiounian
a7b79616e2
[project] More Spring Cleaning ( #2751 )
...
* [project] Remove hmyclient
* [drand] Remove dead drand
* [drand] Remove dead code in proto, more dead drand things
* [project] Remove dead demo tool
* [project] Remove dead Lottery solidity
* [project] Remove dead hmy client main
* [node] Remove unused variable in test code
* [project] Remove keygen
* [project] Remove not useful test
5 years ago
Leo Chen
3a10a9feeb
[protobuf] update pb.go after protobuf upgrade to v1.3.2
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
feceec6e38
[net] only listen to tcp4 address
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Dennis Won
5d7445ab4f
run scripts/install_build_tools.sh to make sure build tools are of correct versions
5 years ago
Dennis Won
ebf750a70d
go generate
5 years ago
Nye Liu
1499169d40
[ #1505 ] Log byte arrays as Hex Strings ( #1506 )
5 years ago
Christopher Liu
597e561b46
[Metrics] Fix Travis and undo zerolog changes
...
- Fix Travis problems
- Undo zerolog overwrite
- Fix tab errors
- Add zerolog to node_metrics
5 years ago
flicker-harmony
bbf06f901f
Add generated pb files
5 years ago
flicker-harmony
7806cd25c7
Fix travis
5 years ago
flicker-harmony
d149c0ccb1
Add metrics service
5 years ago
Kai Lee
9e87c928f1
Replace all logs in api module to use zerolog
5 years ago
chao
cad89b0a4e
change viewID from uint32 to uin64 in consensus and to big.Int in header
6 years ago
Chao Ma
4d21380604
change location of consensus message protobuf
6 years ago
chao
4ea2e34af0
move block from announce to prepared message
6 years ago
Rongjian Lan
23cdabc182
Fix consensus stability
6 years ago
Eugene Kim
a7218a999a
Log errors, mostly at warn (or fatal for UT) level
...
Warn level was chosen for the current behavior: Alert about uncaught
failures but do not alter the code path (yet). More proper error
handling will come later.
6 years ago
chao
5e3d4c110d
fix newview message payload crash; defense different sets of prepared messages attack
6 years ago
chao
7cd24dae6c
modify the naming of variables to make code cleaner
...
address pr comments
6 years ago
chao
69cfe9b633
* add view changing logic
...
* add view change message handler
* modify view change message constructor
6 years ago
chaosma
b53d8fb5bf
pbft normal path ( #851 )
...
* PBFT view change framework added
* timeout class and pbft_log class added for view change
* consensus protocol worked under PBFT normal mode
6 years ago
chaosma
e029b7e622
basic framework for view change ( #827 )
...
* factor consensus functions into consensus_utils, make consensus.go cleaner
* add minimum pbft view change structure
add timeout class for pbft view change
* add version to distinguish existing and new consensus
6 years ago
Minh Doan
24d36d2bbb
fix comments and cleanup
6 years ago
Minh Doan
f7212e8fe4
wire up client service & rest client service with harmony
6 years ago
Minh Doan
1a15ad0ed4
Fix comments server code & rebase.
6 years ago
Minh Doan
88b2269a1b
Add newclientsupport service.
6 years ago
Minh Doan
da316a88b1
introduce new message.proto to support demo app.
6 years ago
Minh Doan
41dd25e426
add logic of calling getPlayers and enter
6 years ago
Minh Doan
e87c6e7430
setup working pipeline - step 1
6 years ago
Rongjian Lan
64d6ee80d3
add public key into consensus/drand message
6 years ago