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
Lutty
601dc166fa
temp code to find and fix problems
2 years ago
lutty
5cd4e764dd
fix travis
...
fix travis
fix travis
fix travis
2 years ago
lutty
720f9a6a02
tested tikv code
2 years ago
Soph
9df446a23d
[ops] github workflow update macos-12 ( #4248 )
...
Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
2 years ago
Soph
e5e09b725b
[ops] update github ci with go 1.18.4 ( #4247 )
...
Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
2 years ago
Konstantin
0753c94c2b
Epoch syncing - syncing only epoch blocks. ( #4070 )
...
* Epoch syncing - syncing only epoch blocks.
* Fix go test, added command to run.
* Block signature validation.
* Support getting block by height.
* Fix to compile.
* Http method.
* Generate fix.
* Install protoc-gen-go-grpc.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Added limit to avoid abuse, small fixes.
* Fix duplicate code.
* Fix isInSyn.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Add logs.
* Fix msgf call.
* Epoch syncing - syncing only epoch blocks.
* Block signature validation.
* Fix sync, additional timeouts, fix epoch.
* Chain behaviour options, optional state validation on blockchain initialization.
* Support getting block by height.
* Http method.
* Fix duplicate code.
* Fix isInSyn.
* Added limit to avoid abuse, small fixes.
* Fix method call.
* Removed additional block sending.
* Fix in sync.
* Small fix.
* Code clean up.
* Fix beacon chain func.
* Return back Beaconchain.
* Fix sending only epoch blocks.
* Fix failed startup with validator.
* Increase recv message size.
* Remove peer.
* Add logs.
* Fix msgf call.
* Sending crosslinks from beacon to non-beacon chains.
* Receiving crosslinks.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink hardbeat signal receiving.
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Updated with last crosslink heart beat signal.
* Merged crosslink signal.
* Clean up code.
* Add logs for cl debug.
* Stop iterate on receiving result.
* Add logs.
* Fix in sync check.
* Fix reconnect problems.
* Fix tests and reduce dependency.
* Updated with main.
* Fix review comments.
* Changed to compare epochs.
* Fix crosslinks usage.
* Fix initialization.
* Epoch chain implementation.
* Legacy sync by default.
* Revert "Legacy sync by default."
This reverts commit 5fa6ce002a
.
* Epoch sync for downloader.
* Build docker image while tests.
* Fix paths.
* Updated travis.
* Review improvements.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
e4d008436c
Fix usages. ( #4241 )
...
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Max
2afaeb9f94
[consensus] log block verification error ( #4243 )
2 years ago
Konstantin
8055f789a8
Move generate chain to tests. ( #4244 )
...
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
3175d8aab3
Bump go1.18. ( #4107 )
...
* Bump go1.18.
* Build tags.
* Go vet errors fix.
* Fix imports.
* Fix imports.
* Fix go vet.
* Fix protobuf.
* Fix file gen.
* Fix tools.
* Travis fix.
* Travis fix.
* Travis fix.
* Fix dependency.
* Clean up.
* Fix rosetta test.
* Add comment to run tests.
* Add comment to run tests.
* 1.18.2
* Fix rosetta script.
* Fix docker version.
* Fix imports.
* Fix formatting.
* Fix formatting.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
e56ee2e689
Build docker image while tests. ( #4233 )
...
* Build docker image while tests.
* Fix paths.
* Empty line to trigger tests.
* Empty line to trigger tests.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Max
18ba697870
[pool] make GlobalSlots configurable ( #4236 )
2 years ago
Max
32493f5b41
[txpool] log errors from sink ( #4235 )
2 years ago
PeekPI
7ae12b14b7
[txpool] fix #4215 , support allowed transaction list. ( #4218 )
...
* [txpool] fix #4215 , support allowed transaction list.
* test: fix node tests for allowlist of txs
* add error checking of tx.data
* recover test scripts
* config migration
* add tx.data to error info
* [pool] refactor: log more if `from` in denylist
* reject tx if it does not pass the allowed whiltelist check
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
Konstantin
1445223b5a
Increase suggested gas and reduce block gas limit ( #4222 )
...
* lower gas limit to 30M
* increase suggested gas to 70 percentile and increase max suggested gas to 1000
* Fix race error.
* Increase price limit to 100e9.
* Set 95 percentile.
* Fix rpc response.
* [test] adjust funds for new higher gas price
* [rosetta] use new gas price
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
Co-authored-by: Konstantin <k.potapov@softpro.com>
Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
2 years ago
Konstantin
06de7dcd6c
Fix race errors. ( #4184 )
...
* Fix data races.
* Fix block num.
* Pub key lock.
* Fixed race errors.
* Fix flag.
* Fix comments.
* Fix comments.
* Fix type.
* Fix race errors in tests.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Konstantin
4eabc120b1
Blockchain interface. ( #4214 )
...
* Blockchain interface.
* Fix comments, remove unused.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 years ago
Max
93bd74904d
Revert cross link potential fix ( #4204 )
...
* Revert "[node] fix: always broadcast cross links"
This reverts commit 21669a1105
.
* [node] broadcast crosslinks by 2% of validators
2 years ago
MaxMustermann2
51435046ad
[rpc] fix: catch ErrAddressNotPresent old block
...
The validator list is not per block, while the information being sought
is. Therefore, do not return error if validator address is not present
in state.
Fixes #4202
2 years ago
MaxMustermann2
24b093b752
[node] fix: always broadcast cross links
2 years ago
PeekPI
20edef740b
Increase voting power of harmony nodes in testnet to 0.7 ( #4200 )
...
* increase voting power of harmony nodes in testnet to 0.7
* decrease QuorumThreshold to 0.6 of testnet
* decrease QuorumThreshold of testnet to 51%
* change IsQuorumAchievedByMask
2 years ago
peekpi
a650164a44
use 'latest' instead of 'pending' as default block
2 years ago
MaxMustermann2
6ecad02686
[node] fix: broadcast cross links w/o beacon sync
2 years ago
Socheat KHAUV
e100cff674
ChainIdFixEpoch, CrossShardXferPrecompileEpoch, AllowlistEpoch : 75907 ( #4197 )
...
Co-authored-by: Senior Cyber <senior-cyber@gmail.com>
2 years ago
MaxMustermann2
f851144812
[params] testnet hard fork for cross shard xfer
3 years ago
Leo Chen
e4ea31a23e
Merge pull request #4165 from MaxMustermann2/cross-shard-xfer
...
[core] feat: Add cross shard transfer precompile
3 years ago
MaxMustermann2
4bc4cb2d3f
Merge branch 'main' into cross-shard-xfer
3 years ago
Konstantin
7a8e5d468c
Feature 4160 beacon crosslink signal. ( #4169 )
...
* Sending crosslinks from beacon to non-beacon chains.
* Sending crosslinks from beacon to non-beacon chains.
* Broadcast.
* Fix comment.
* Crosslink signal.
* Crosslink signal.
* Add comment to run tests.
* Fix comments.
* Fix comments.
* Fix review comments.
* Fix comments.
* Fix comments.
Co-authored-by: Konstantin <k.potapov@softpro.com>
3 years ago
PeekPI
9ac7866d05
recover the travis_rpc_checker script ( #4189 )
3 years ago
Gheis
4f239ae33c
changed chain-id fixes epoch number for test net ( #4190 )
...
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago