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
Soph
5e35d5f6ba
[cmd] update year version ( #4334 )
2 years ago
Soph
e1d443720d
[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
2 years ago
Casey Gardiner
e047f5f0cb
Merge branch 'main' into dev
2 years ago
Jason Yi
b347d1a091
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>
2 years ago
Konstantin
4c0a28d737
Fix getting epoch number. ( #4279 )
2 years ago
Gheis Mohammadi
128db236d8
fix epoch chain initialization issue ( #4331 )
2 years ago
Casey Gardiner
7ab8be3377
Release Candidate: dev -> main ( #4319 )
...
* 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>
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>
2 years ago
Casey Gardiner
a1f2e605fc
Merge branch 'dev' of https://github.com/harmony-one/harmony into dev
2 years ago
Casey Gardiner
fa9bc17013
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>
2 years ago
Casey Gardiner
63433c1597
Merge branch 'main' into dev
2 years ago
Casey Gardiner
072e08c381
Merge branch 'dev' of https://github.com/harmony-one/harmony into dev
2 years ago
dependabot[bot]
9d466b8f3b
Bump github.com/btcsuite/btcd from 0.21.0-beta to 0.23.2 ( #4327 )
...
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>
2 years ago
Casey Gardiner
8601b26470
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>
2 years ago
Casey Gardiner
444f713949
Merge branch 'main' into dev
2 years ago
dependabot[bot]
30d18c7074
Bump github.com/aws/aws-sdk-go from 1.30.1 to 1.33.0 ( #4325 )
...
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>
2 years ago
PeekPI
2574868670
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>
2 years ago
Konstantin
8ee11600ac
Feature registry ( #4324 )
...
* Registry for services.
* Test.
* Reverted comment.
* Fix.
2 years ago
Danny Willis
fde22107d1
Fix not disable cache in archival mode ( #4322 )
2 years ago
Konstantin
6ade0bfa34
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”>
2 years ago
Gheis
0104b1d623
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”>
2 years ago
Gheis
54742e73e1
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”>
2 years ago
Casey Gardiner
4f5102a12c
Merge branch 'main' into dev
2 years ago
Konstantin
c960e076d2
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.
2 years ago
Gheis
9c84332c66
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”>
2 years ago
Gheis
8d3be78cc7
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”>
2 years ago
Max
fd008c95d9
[dumpdb] ensure each cross link is dumped ( #4311 )
2 years ago
Casey Gardiner
f14d8401a1
add openssl compatibility on m2 chips using darwin ( #4302 )
...
Adds support for OpenSSL on MacOS Ventura using m2 chips.
2 years ago
Casey Gardiner
eaf5d9c701
Rebase dev branch to current main branch ( #4318 )
2 years ago
Konstantin
1c443aee45
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.
2 years ago
Konstantin
8547c8c7b8
Removed legacy syncing peer provider. ( #4260 )
...
* Removed legacy syncing peer provider.
* Fix localnet.
* Fix migrate version.
* Rebased on main.
* Fix formatting.
2 years ago
PeekPI
f75cccfe39
[hardfork] collect txns fees to a specific account ( #4265 )
...
* collect txns fees to specific account
* check ChainConfig is valid at compile time
* set feeCollector for localnet
* move some epoch check from Rules() to mustValid()
* [devnet] set fee collector
* [devnet] set fee collection epoch 574
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
PeekPI
0b342d769e
Testnet shard reduction ( #4301 )
...
* reduce shard of testnet to 2
* remove harmony inner nodes in shard2 and shard3
* check shardID in VerifyCrossLink
* get NumShards by epoch instead of hardcodeed shards
* add Localnet in NewGenesisSpec
* do mayTestnetShardReduction in the block before the last block
* fix localnet epoch calculation
* not use old committee if shard reduction happens
* fix preLastBlock calculation
* do testnet shard reduction when propose new blocks
* enable 2s block period at epoch 0
* call IntermediateRoot once in the end
* skip inactive&baned validators when testnet shard reduction happens
* update ShardReductionEpoch to epoch 486
2 years ago
Max
b11800fe3f
[rpc] query node for syncing calls ( #4309 )
...
* [rpc] query node for syncing calls
Resolves #3966
* fix(downloader): do not underflow
2 years ago
Konstantin
29bcc0c48b
Consensus accepts blockchain as a parameter. ( #4296 )
...
* Consensus doesn't require anymore `Node` as a circular dependency.
* Proper blockchain initialization.
* Removed double initialization.
2 years ago
Max
4d1709b01d
improvement(log): Log duplicate cross link number ( #4306 )
...
* improvement(log): Log duplicate cross link number
improvement(log): log hash+key on verify failure
* more logs
2 years ago
Max
01a5b5fbb3
fix: make localnet sharding structure consistent ( #4305 )
...
As a follow up to #4270 , ensure that all localnet URLs returned as part
of the sharding structure are accurate.
Signed-off-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
Signed-off-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
Max
54ca0e8fb8
[testnet] ninety percent voting power ( #4298 )
...
* [testnet] ninety percent voting power
to keep the network stable
* [testnet] 90% voting power at epoch 399
* fix: replace `testchain` with `testnetchain`
2 years ago
Soph
b1ec028031
add SECURITY.md ( #4299 )
...
* add SECURITY.md
2 years ago
Konstantin
20ee0e0404
Decider no longer requires public keys as a dependency. ( #4289 )
2 years ago
Max
f8879f5e02
[p2p] prevent dialing of private ips ( #4286 )
...
* [p2p] fix: prevent dialing of private ips
The original feature (erroneously) prevents only querying of the private
IPs. This change prevents dialing private IPs altogether when the flag
is activated.
* [p2p] do not return `nil` gater
* [p2p] remove query filter
It was overriden by connection gater
* [p2p] add test to check gater non blocking
2 years ago
Diego Nava
ab4159a1bc
fix: erpc raw transaction error handling ( #4287 )
2 years ago
Max
d216a51fa6
[rpc] fix: cascade send raw tx error ( #4281 )
...
Temporary patch to be reverted later once error checking is prioritized
on Elastic RPC level
2 years ago
Socheat KHAUV
85d54efaec
docker issue with "go get" ( #4283 )
2 years ago
Diego Nava
0425c7c1df
Fix/filter new tikv ( #4275 )
...
* fix: elastic rpc new filters fix
* fix: add a small delay to give readers time to catch up
* fix: run the subscribe in a go routine
* fix: generate the filter id before
* fix: rpl not able to marshal negative big int
* fix: use json to get the message
2 years ago
Max
44c1d52e83
fix(gpo): set percentile to 80 ( #4277 )
2 years ago
Max
205e641850
[node] fix: do not ignore tx when out of sync ( #4278 )
2 years ago
Konstantin
c5a35d2859
Removed shouldPreserve dead code. ( #4264 )
2 years ago
Max
cf5a264b15
[p2p] feat: add maximum peers limit ( #4272 )
2 years ago
Diego Nava
55eced50c6
fix: tikv graceful shutdown on close ( #4263 )
...
* fix: tikv graceful studown on close
* refactor: close the chanel before emptying it
2 years ago