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
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
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
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
Diego Nava
db870bddd8
fix: add go-eth metrics flags ( #4269 )
2 years ago
Konstantin
3f8049f2b7
Fix race error and code style. ( #4271 )
2 years ago
PeekPI
914d7da0b6
Testnet reset ( #4207 )
...
* Revert "Increase voting power of harmony nodes in testnet to 0.7 (#4200 )"
This reverts commit 20edef740b
.
* RESET TESTNET
* fix vrf testcase
* reduce number of nodes required for reseting testnet
* use only harmony nodes before staking epoch
2 years ago
Max
309d91f889
fix: make localnet ports consistent ( #4270 )
...
Since the introduction of port 9501 for RPC Auth HTTP Port, the default
localnet config produces a conflict in ports. In other words, the HTTP
Auth Port of the node from line 1 clashes with the HTTP Port of the node
from line 2. Depending on which of the two processes starts first, the
ports chosen by `make debug` can be different for each run, producing
inconsistencies in RPC test environments.
2 years ago
Konstantin
7c1c43ecbd
Reduce cache size. ( #4268 )
2 years ago
Max
2b897bc26d
[node] nitpick: move heartbeat validation logic ( #4246 )
2 years ago
Konstantin
7a61257f24
Min bound, reconnect and additional checks. ( #4257 )
2 years ago
Leo Chen
4dfeb83704
Merge pull request #4258 from LuttyYang/tikv
...
Fix staking bug in elastic rpc mode
2 years ago
lutty
0dcfeb9488
goimports
2 years ago
Lutty
03593f1061
fix bug
2 years ago
Max
3cdd9cfab3
[rpc] hex address GetValidatorsStakeByBlockNumber ( #4256 )
2 years ago
Max
c022075771
[rpc] add GetValidatorsStakeByBlockNumber ( #4254 )
...
GetValidatorsStakeByBlockNumber calculates each validator's total
delegation at the specified block.
2 years ago
Konstantin
35d4722bb2
Fix migration version. ( #4255 )
...
* Fix migration version.
* Fix migration version.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Max
bd5a906f51
[config] change default localnet sync config... ( #4252 )
...
...to allow localnet cross shard tests to pass. It has been observed
that the epoch block from shard 0, which contains the `ShardState` does
not reach shard 1 on localnet in time. This leads to the cross shard
receipt not being validated, and thus, the block is not signed by one
node (8.5% vote power) in some cases. This change makes the sync
parameters a bit aggressive (only on localnet) to reduce the number of
times the test can fail.
2 years ago
Jason Yi
a928fe4ab7
feat: make log to console as optional ( #4208 )
...
* fix: add option for console only
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* fix: add console option for node & harmony
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* fix: add console to default config
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* fix: remove debugging code
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* fix: add log.console to cmd line options
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* fix: linting & revert back msg.pg.go
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* undo changes in go.sum
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
* update: config migration
Signed-off-by: Jason Yi <jasonhk.yi@consensys.net>
2 years ago
Leo Chen
f7cadd9db0
Merge pull request #4149 from LuttyYang/tikv
...
Add TiKV Storage On ExplorerNode
2 years ago
Diego Nava
a7190fcd45
fix typo
2 years ago
Konstantin
f8777e0c61
fix +1 ( #4251 )
...
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Diego Nava
1761a3ae64
fix go imports
2 years ago
Konstantin
93b14ddca6
Epoch chain: update reference to head block. ( #4249 )
...
* Update reference to head block.
* Fix block retrieve.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Lutty
b2fa3d0e18
rebase
2 years ago
Lutty
21bd53938d
rebase
2 years ago
Lutty
2ec4ccf9ee
rebase
2 years ago
Diego Nava
3c7b2a8766
fix go imports
2 years ago
Lutty
90d695c8fa
fix bug
2 years ago
Lutty
588cdde452
fix bug
2 years ago