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
18ba697870
[pool] make GlobalSlots configurable ( #4236 )
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
4eabc120b1
Blockchain interface. ( #4214 )
...
* Blockchain interface.
* Fix comments, remove unused.
Co-authored-by: Konstantin <k.potapov@softpro.com>
2 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
8b1d7a526a
[consensus] HIP-18: Allowlist for external leaders ( #4146 )
...
* HIP18: support allowlist
* sort allowlist by default order
* fix and add unit test
* simplified calculation of index of leader
* restore code of NthNextHmy()
* rename MaxLimit to MaxLimitPerShard and add comments
* init allowlist of testnet
* update allowlist
* change HIP18 epoch to TBD
* set HIP18 of testnet to 75840
* rename _BLS() to BLS()
* update comment
* add version of allowlist variable
* recover the travis_rpc_checker script
* update HIP18 epoch
3 years ago
Gheis
021c4db669
fix config migration issue for newly added rpc filter options ( #4183 )
...
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
Gheis
8bd76f14e1
add new config to set local accounts from harmony config ( #4177 )
...
* add new config to set local accounts from harmony config
* removed extra if for checking flag change and fix format
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
Gheis
ea96987816
Feature/rpc filter ( #4173 )
...
* fix unexpected chain id (https://github.com/harmony-one/harmony/issues/4129 )
* update epoch numbers for ChainId fix
* updated ChainID Epoch for test net
* align comment with other comments
* fix the build using goimports
* added flags to enable/disable rpc for staking and eth
* add feature to be able to feed custom configuration for each single node in testnet
* add method filter
* add rpc method filters file and one new flag for legacy APIs
* fixed tests and improved method filter and added more tests
* fix format and removed extra comments
* fix method_filter comments
* remove extra debug print
Co-authored-by: “GheisMohammadi” <“Gheis.Mohammadi@gmail.com”>
3 years ago
peekpi
e1e8b2c5dd
fixed iterator key
3 years ago
peekpi
1e77419960
fix unit test
3 years ago
peekpi
ffac26d16f
check if head block hash is match
3 years ago
peekpi
8053f87f12
record SnapdbInfo to db
3 years ago
Max
947c6ef11c
[p2p]: feat: allow disable scan of private ips ( #4151 )
...
* [p2p]: feat: allow disable scan of private ips
Add a command line flag `--p2p.no-private-ip-scan` or config file option
in P2P `DisablePrivateIPScan` to stop node operators from receiving
netscan abuse emails. Fixes #4036 , #4046 and #3788 . After this change,
node operators should not need to use `iptables` to firewall out RFC1918
traffic.
* [p2p] fix: Cascade disallow private scan
3 years ago
Jacky Wang
22e595df82
[downloader] fix explorer node get stuck when doing short range sync ( #4150 )
...
* [downloader] fix explorer node get stuck when doing short range sync
* [downloader] add log message
3 years ago
peekpi
c1fd188df0
rename variable name and add comments
3 years ago
peekpi
08bb9022e0
[consensus] HIP-16: Enforce a 6% max keys per shard limit for each validator
3 years ago
Konstantin
97eb8d972f
Go vet fixed.
3 years ago
Jacky Wang
34c42349e2
[stream] consensus set downloader only when stream downloader is active as client ( #4105 )
3 years ago
Jacky Wang
6e52ad4a88
[downloader] adjust default testnet downloader values, add sleep to unsuccessful download
3 years ago
peekpi
fac0203f90
fix bug of shardNum
3 years ago
peekpi
3963e1c1a1
get shardNum by network and epoch
3 years ago
haodi
e736473bc6
fixed test case
3 years ago
peekpi
41d940e3cc
use constant params and add cli flag for batch write size
3 years ago
haodi
9fc2b4404b
add more params for sharddb
3 years ago
haodi
f9f53fc081
fixed test case
3 years ago
haodi
a4a5c591aa
fixed test case
3 years ago
haodi
a4e05f076d
fixed test case
3 years ago
peekpi
7c1e636a07
remove debug code
3 years ago
Max
649ea56b9a
feat: Add AccountSlots flag for TxPool ( #4071 )
3 years ago
peekpi
c58a70acf3
update commd usage
3 years ago
peekpi
702b662626
dump db
3 years ago
lutty
d6d25be453
leveldb shard
3 years ago
Jacky Wang
fc94354283
[stream] change default values
3 years ago
Haodi
832658480b
fixed rosetta issues ( #4034 )
...
* rosetta test and fix bug
Co-authored-by: lutty <lutty@lutty.me>
3 years ago
Leo Chen
0de0203f60
[revert] exit after revert is done
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
54f3ef4e0e
[revert] exit after revert is done
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
LuttyYang
3bce74fdbd
add auth-ws port ( #3932 )
...
* add auth-ws port
3 years ago
yahtoo
2ecd96b948
fix: update toml config version
3 years ago
yahtoo
f7247fb7f9
fix: add new config version for p2p security config
3 years ago
yahtoo
c950b30644
change max conn per IP default to 10
3 years ago
yahtoo
aae369babc
fix: add configuration option
3 years ago
yahtoo
1133948ea9
Feat: mitigate single-Host P2P sybil attack
3 years ago
gab-nando
e08fd4199f
Add flag to allow configuring log rotation via lumberjack ( #3889 )
...
* Add flag to allow configuring log rotation via lumberjack
3 years ago
Lutty
dd31a20d32
fix ci
3 years ago
Lutty
5221838f26
support cli flag
3 years ago
MathxH Chen
af7e0dee71
Add DHT concurrency flag ( #3829 )
3 years ago
niklr
7af5cdd864
Update pprof module extension
3 years ago
niklr
9bb0e177ad
Fix pprof service related flag and config migration tests
3 years ago